WindowSplitter Xojo Plugin

WindowSplitter.AddControl Method

Use this method to add controls to a list of controls that the WindowSplitter will internally manage. Once you have told the WindowSplitter about controls that should be affected by the splitter movement then the WindowSplitter will take care of resizing and moving them when the WindowSplitter moves.

   ctrl as DesktopControl,
   beforeSplitter as Boolean)


The control to add to the WindowSplitter's list of managed controls.
Set this parameter to true if the control that you are adding is before the WindowSplitter (To the left of it for vertical splitters or above for horizontal splitters), otherwise set to false.


Using this method can in most cases eliminate the need to do size calculations in the SplitterMoved event.

Don't use this method for a TabPanel or PagePanel as there is a bug in Xojo which lets Xojo brute force destruct those controls when the window closes no mater what the reference counter says.
Use AddUnmanagedControl instead when adding a TabPanel or PagePanel control.

See Also

WindowSplitter Control