Re: Layouts not changing/keeping settings

View: New views
3 Messages — Rating Filter:   Alert me  

Re: Layouts not changing/keeping settings

by dglnz :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Anyone help?

After emailing Meinrad about a problem with getting a control to change it's width and not getting it to change on screen i have decided to put this question to the list.

I had tried changing the X,Y values within the foxGUI generated code but saw no change!

I have tonight tested and proven to myself that the change isn't put into effect on the screen.

Did this in code....

puts " current width is #{@CRlist2.width}"
@CRlist.width = 200
puts "width is #{@CRlist2.width}"

output to the Scite output screen was this
>ruby mymainwin.rb
current width is 52
now width is 200
>Exit code: 0

BUT THERE was no physical change to the control width!
any further pointers on what could be the problem?

thanks,

Dave.

Ps I do get changes in X & Y placement it's just the width & height of the listbox that cannot be changed!

--- On Wed, 9/9/09, Meinrad Recheis <meinrad.recheis@...> wrote:

> From: Meinrad Recheis <meinrad.recheis@...>
> Subject: Re: Layouts not changing/keeping settings
> To: "dave L" <dglnz@...>
> Received: Wednesday, 9 September, 2009, 3:10 AM
> This is à limitation of Fox.
> You need to solve the issue in code by resetting x y w and
> h. RegardsHenon
>
> Von meinem iPhone gesendet
> Am 01.09.2009 um 12:13 schrieb dave L <dglnz@...>:
>
> Hi again,
>
> I have from time to time had this problem....
>
> loaded a control onto the screen set the x & y
> positions then tried to change the width & height.
>
> Then when i move to another control and do something then i
> go back to the previous control i see that the width &
> height have not been kept _OR_ I change the 2 settings
> generate the source code load that file and see that the
> settings have reverted back to the old ones (even if i save
> the layout too i get the old setting appear).
>
> relevant code copied from the source file foxGUI makes
> is..
>
>            
>            
> FX::List.new(@CRhorizontalframe3){|w|
>            
>            
>      @CRlist2=w
>            
>            
>     w.wdg_name='CRlist2'
>            
>            
>    
> w.font=FX::Font.new.from_s('Tahoma|120|40|5|0|0|0').to_FXFont
>            
>            
>     w.width=52
>            
>            
>     w.numVisible=10
>            
>            
>     w.y=350
>            
>            
>    
>  w.height=230
>            
>            
>     w.layoutHints=61
>            
>            
>     w.x=2
>            
>             }
>
> if i change the w.width value to 109 and the w.height to
> 260 which are the values i want in there i get no physical
> change in the size as image attached.
>
> also tried various layout attributes to no avail.
>
> Have encountered this problem on other controls too but
> have just put up with it.
>
> thought?
>
> dave.
>
>
>
>
>
>       Email slow, clunky, unreliable? Switch
> to Yahoo!Xtra Mail, New Zealand's new email
> address.<listbox not
> fitting>

Email slow, clunky, unreliable? Switch to Yahoo!Xtra Mail, New Zealand's new email address.
_______________________________________________
fxruby-users mailing list
fxruby-users@...
http://rubyforge.org/mailman/listinfo/fxruby-users

Re: Layouts not changing/keeping settings

by Meinrad Recheis :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

try, the method Resize(x, y).


On Thu, Sep 10, 2009 at 12:57 PM, dave L <dglnz@...> wrote:
Anyone help?

After emailing Meinrad about a problem with getting a control to change it's width and not getting it to change on screen i have decided to put this question to the list.

I had tried changing the X,Y values within the foxGUI generated code but saw no change!

I have tonight tested and proven to myself that the change isn't put into effect on the screen.

Did this in code....

puts " current width is #{@CRlist2.width}"
@CRlist.width = 200
puts "width is #{@CRlist2.width}"

output to the Scite output screen was this
>ruby mymainwin.rb
current width is 52
now width is 200
>Exit code: 0

BUT THERE was no physical change to the control width!
any further pointers on what could be the problem?

thanks,

Dave.

Ps I do get changes in X & Y placement it's just the width & height of the listbox that cannot be changed!

--- On Wed, 9/9/09, Meinrad Recheis <meinrad.recheis@...> wrote:

> From: Meinrad Recheis <meinrad.recheis@...>
> Subject: Re: Layouts not changing/keeping settings
> To: "dave L" <dglnz@...>
> Received: Wednesday, 9 September, 2009, 3:10 AM

> This is à limitation of Fox.
> You need to solve the issue in code by resetting x y w and
> h. RegardsHenon
>
> Von meinem iPhone gesendet
> Am 01.09.2009 um 12:13 schrieb dave L <dglnz@...>:
>
> Hi again,
>
> I have from time to time had this problem....
>
> loaded a control onto the screen set the x & y
> positions then tried to change the width & height.
>
> Then when i move to another control and do something then i
> go back to the previous control i see that the width &
> height have not been kept _OR_ I change the 2 settings
> generate the source code load that file and see that the
> settings have reverted back to the old ones (even if i save
> the layout too i get the old setting appear).
>

> relevant code copied from the source file foxGUI makes
> is..
>
>            
>            
> FX::List.new(@CRhorizontalframe3){|w|
>            
>            
>      @CRlist2=w
>            
>            
>     w.wdg_name='CRlist2'
>            
>            
>    
> w.font=FX::Font.new.from_s('Tahoma|120|40|5|0|0|0').to_FXFont
>            

>            
>     w.width=52
>            
>            
>     w.numVisible=10
>            
>            
>     w.y=350
>            
>            
>    
>  w.height=230
>            
>            
>     w.layoutHints=61
>            
>            
>     w.x=2
>            
>             }
>
> if i change the w.width value to 109 and the w.height to
> 260 which are the values i want in there i get no physical
> change in the size as image attached.
>
> also tried various layout attributes to no avail.
>
> Have encountered this problem on other controls too but
> have just put up with it.
>
> thought?
>
> dave.
>
>
>
>
>
>       Email slow, clunky, unreliable? Switch
> to Yahoo!Xtra Mail, New Zealand's new email
> address.<listbox not
> fitting>

Email slow, clunky, unreliable? Switch to Yahoo!Xtra Mail, New Zealand's new email address.

_______________________________________________
fxruby-users mailing list
fxruby-users@...
http://rubyforge.org/mailman/listinfo/fxruby-users


_______________________________________________
fxruby-users mailing list
fxruby-users@...
http://rubyforge.org/mailman/listinfo/fxruby-users

Re: Layouts not changing/keeping settings

by dglnz :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Have had some joy with getting the window set to the right size  but getting the list control that i would like to have wider hasn't changed.
 
This is how the control looks after I've generated the code from foxGUI
FX::List.new(@CRhorizontalframe3){|w|
  @CRlist2=w
  w.wdg_name='CRlist2'
  w.font=FX::Font.new.from_s('Tahoma|120|40|5|0|0|0').to_FXFont
  w.width=109
  w.numVisible=10
  w.y=350
  w.height=330
  w.layoutHints=60
  w.x=10
}
 
Now i have tried the following things as an experiment.
 
Comments out the height, widths and numVisible lines.
 
I get a square box.
 
Now....
 
No resize call within my event code and height, width commented and numVisible uncommented - get a longer box but not wider!
 
use of the resize or width height properties and the numvisible uncommented.
the control shape doesn't change! (see pasted output for evidence that i have indeed changed these values from what they where originally.
 
>ruby mymainwin.rb
current width is 52
height is 230
now width is 200
now height is 390
>Exit code: 0
 
if I uncomment the width & height (but numvisible commented out) i get a square box!!
even tho output shows that i have indeed changed it's dimensions (see above pasted sample).
 
Now i have a number of controls within a hierarchy could this be having an effect on things?
 
layout is like this...
Mainwindow
   Tab book
      Tabitem
         Verticalframe
            Horizontalframe
               Lots of controls
               then this particular list control.
   New Tab book here with similar layouts to the above.
 
for the layout properties within foxGUI i have had nothing selected to layout...
Right
Left
lay_out_right_side
lay_out_left_side
 
in fact i believe i've tried almost all of them to try and get some sort of change but getting nothing!
 
maybe it's just something I have to accept - as i have but it'd be nice to try and figure out
what is causing this fault.
 
regards,
 
Dave.
 
 
 

--- On Fri, 11/9/09, Meinrad Recheis <meinrad.recheis@...> wrote:

From: Meinrad Recheis <meinrad.recheis@...>
Subject: Re: [fxruby-users] Layouts not changing/keeping settings
To: fxruby-users@...
Received: Friday, 11 September, 2009, 12:27 AM

try, the method Resize(x, y).


On Thu, Sep 10, 2009 at 12:57 PM, dave L <dglnz@...> wrote:
Anyone help?

After emailing Meinrad about a problem with getting a control to change it's width and not getting it to change on screen i have decided to put this question to the list.

I had tried changing the X,Y values within the foxGUI generated code but saw no change!

I have tonight tested and proven to myself that the change isn't put into effect on the screen.

Did this in code....

puts " current width is #{@CRlist2.width}"
@CRlist.width = 200
puts "width is #{@CRlist2.width}"

output to the Scite output screen was this
>ruby mymainwin.rb
current width is 52
now width is 200
>Exit code: 0

BUT THERE was no physical change to the control width!
any further pointers on what could be the problem?

thanks,

Dave.

Ps I do get changes in X & Y placement it's just the width & height of the listbox that cannot be changed!

--- On Wed, 9/9/09, Meinrad Recheis <meinrad.recheis@...> wrote:

> From: Meinrad Recheis <meinrad.recheis@...>
> Subject: Re: Layouts not changing/keeping settings
> To: "dave L" <dglnz@...>
> Received: Wednesday, 9 September, 2009, 3:10 AM

> This is à limitation of Fox.
> You need to solve the issue in code by resetting x y w and
> h. RegardsHenon
>
> Von meinem iPhone gesendet
> Am 01.09.2009 um 12:13 schrieb dave L <dglnz@...>:
>
> Hi again,
>
> I have from time to time had this problem....
>
> loaded a control onto the screen set the x & y
> positions then tried to change the width & height.
>
> Then when i move to another control and do something then i
> go back to the previous control i see that the width &
> height have not been kept _OR_ I change the 2 settings
> generate the source code load that file and see that the
> settings have reverted back to the old ones (even if i save
> the layout too i get the old setting appear).
>
> relevant code copied from the source file foxGUI makes
> is..
>
>            
>            
> FX::List.new(@CRhorizontalframe3){|w|
>            
>            
>      @CRlist2=w
>            
>            
>     w.wdg_name='CRlist2'
>            
>            
>    
> w.font=FX::Font.new.from_s('Tahoma|120|40|5|0|0|0').to_FXFont
>            
>            
>     w.width=52
>            
>            
>     w.numVisible=10
>            
>            
>     w.y=350
>            
>            
>    
>  w.height=230
>            
>            
>     w.layoutHints=61
>            
>            
>     w.x=2
>            
>             }
>
> if i change the w.width value to 109 and the w.height to
> 260 which are the values i want in there i get no physical
> change in the size as image attached.
>
> also tried various layout attributes to no avail.
>
> Have encountered this problem on other controls too but
> have just put up with it.
>
> thought?
>
> dave.
>
>
>
>
>
>       Email slow, clunky, unreliable? Switch
> to Yahoo!Xtra Mail, New Zealand's new email
> address.<listbox not
> fitting>

Email slow, clunky, unreliable? Switch to Yahoo!Xtra Mail, New Zealand's new email address.

_______________________________________________
fxruby-users mailing list
fxruby-users@...
http://rubyforge.org/mailman/listinfo/fxruby-users


-----Inline Attachment Follows-----

_______________________________________________
fxruby-users mailing list
fxruby-users@...
http://rubyforge.org/mailman/listinfo/fxruby-users

Email slow, clunky, unreliable? Switch to Yahoo!Xtra Mail, New Zealand's new email address.
_______________________________________________
fxruby-users mailing list
fxruby-users@...
http://rubyforge.org/mailman/listinfo/fxruby-users