SetSplitterLimits splitter,first_minimum,second_minimum

Parameters

splitter - splitter gadget returned by CreateSplitter

first_minimum - minimum width or height of pane 0; must not be negative

second_minimum - minimum width or height of pane 1; must not be negative

Description

Sets the minimum logical size of both splitter panes.

For a left/right splitter the limits are widths; for a top/bottom splitter they are heights.

The divider is moved immediately if its current position violates a limit and is constrained during subsequent dragging and window resizing. If the splitter becomes too small to satisfy both limits, the available space is divided in the same proportion as the requested minimums.

An explicit call establishes a new preferred layout from the clamped current divider. Subsequent automatic resizing respects the splitter resize mode and restores that preference when enough space becomes available:

splitter=CreateSplitter(0,0,800,600,window,2)
SetSplitterLimits splitter,220,280
previewPane=SplitterPanel(splitter,0)
inspectorPane=SplitterPanel(splitter,1)


See also: CreateSplitter, SplitterPanel, SetSplitterPosition, SetSplitterDragMode.

Index