Re: [Fxruby-users] FXSplitterWindow move splitter programatically
Status: Inactive
Brought to you by:
lyle
From: Lyle J. <ly...@kn...> - 2004-01-12 02:37:24
|
On Jan 11, 2004, at 7:16 PM, Joel VanderWerf wrote: > Steve Tuckner wrote: >> Is there a way to programatically set the position of the splitter >> bar? > > I don't see any "setSplit" or equivalent methods in FXSplitter, either. I think Jeroen has added a setSplit() method for fox-1.2 but it's not that direct in fox-1.0. Please see my separate response to Steve for more information about how to programmatically set the split size in fox-1.0. > FWIW, FX4Splitter has methods #getVSplit, #setVSplit, #getHSplit, and > #setHSplit. > > The API doc says there should also be accessors for vSplit and hSplit, > but these aren't defined. Hmm, worse than that, it doesn't look like any of the attribute accessors for FX4Splitter are defined. I'll get this fixed. > The setters take a number representing the proportion of split. The > max is 10_000 (so 5_000 means 50% split). (This is by experimentation. > I didn't see anything in the docs that would explain this.) Yes, this appears to be how it works (looking at the FOX source code for FX4Splitter). I'll add something to the FXRuby API docs for this as well. |