WinXSplitter_SetProperties


WinXSplitter_SetProperties (series, hCtrl, min, max, dock)

Sets several properties for a splitter control

Parameter Description
series The Auto Sizer series in which the splitter resides
hCtrl The handle to the control the splitter is associated with. Since splitters can be associated with Auto Sizer series, hCtrl can be the id of an Auto Sizer series.
min The minimum position of the splitter, this translates to the minimum size for hCtrl
max The maximum position of the splitter, this translates to the maximum size for hCtrl
dock $$TRUE to allow docking, $$FALSE otherwise

Returns

$$TRUE on success or $$FALSE on fail

Remarks

Splitter controls are pseudo controls created by the Auto Sizer system. They are always associated with another control or Auto Sizer series, when the user moves the splitter they change the size of this control/Auto Sizer series.

The dock parameter allows docking. A dockable splitter displays a gripper bar which when clicked moves the splitter to position 0 and disables dragging of the splitter. The user can restore the splitter to its previous position by clicking the gripper bar again, this will re-enable dragging.

Examples

' Make a splitter dockable and set the dragging range to 20-100 pixels
WinXSplitter_SetProperties (idSeries, hCtrl, 20, 100, $$TRUE)

Related Links

WinXAutoSizer_GetMainSeries
WinXAutoSizer_SetSimpleInfo