RE: [Fxruby-users] FXSplitterWindow move splitter programatically
Status: Inactive
Brought to you by:
lyle
From: Steve T. <STU...@MU...> - 2004-01-13 15:07:06
|
So here is my test program to try to do as your link says. What am I doing wrong? Steve Tuckner ------------------------------------------------------------------ require "fox" include Fox class FxTestWindow < FXMainWindow TIMER_INTERVAL = 20 def initialize(app) # Invoke base class initialize first super(app, "FxSplitterTest", nil, nil, DECOR_ALL, 0, 0, 600, 600) splitter = FXSplitter.new(self, LAYOUT_SIDE_TOP|LAYOUT_FILL_X|LAYOUT_FILL_Y|SPLITTER_TRACKING|SPLITTER_VERTI CAL) frame1 = FXVerticalFrame.new(splitter, FRAME_SUNKEN|FRAME_THICK|LAYOUT_FILL_X|LAYOUT_FILL_Y) text1 = FXText.new(frame1, nil, 0, LAYOUT_FILL_X|LAYOUT_FILL_Y, 0, 0, 600, 50) text1.setHeight 500 frame2 = FXVerticalFrame.new(splitter, FRAME_SUNKEN|FRAME_THICK|LAYOUT_FILL_X|LAYOUT_FILL_Y) text2 = FXText.new(frame2, nil, 0, LAYOUT_FILL_X|LAYOUT_FILL_Y, 0, 0, 600, 50) end # Start def create super show(PLACEMENT_SCREEN) end end def runGUI $application = FXApp.new("Dialog", "FxSplitterTest") $application.init(ARGV) FxTestWindow.new($application) $application.create $application.run end runGUI > -----Original Message----- > From: Lyle Johnson [mailto:ly...@kn...] > Sent: Sunday, January 11, 2004 8:26 PM > To: Steve Tuckner > Cc: fxr...@li... > Subject: Re: [Fxruby-users] FXSplitterWindow move splitter > programatically > > > > > On Jan 11, 2004, at 3:32 PM, Steve Tuckner wrote: > > > > Is there a way to programatically set the position of the splitter > > bar? > > > > Thanks in advance (and also for all your work on this framework) > > > > Steve Tuckner > > > > > > > Steve, > > Please see the note on this page: > > > http://www.fifthplanet.net/cgi-bin/wiki.pl?Cookbook/Setting_Th e_Relative _Sizes_Of_Panes_In_An_FXSplitter about how to set the split sizes programmatically. Hope this helps, Lyle |