TCustomSplitter.MoveSplitter procedure
Moves the splitter by an amount specified in
Offset.
Declaration
procedure MoveSplitter(Offset: Integer); virtualArguments
Offset | Integer value with the requested distance that the splitter is moved. |
Description
MoveSplitter is a method used to reposition the splitter control
by the amount specified in the
Offset parameter. Offset is the
distance in pixels between the current and new splitter positions.
The values in Align, ResizeAnchor, and AnchoredControls are used to determine the direction that the splitter is moved and the controls affected. ResizeControl is the control which is resized by the specified amount, and the adjacent resized control(s) are updated with the converse of the offset value.
No actions are performed in the method when Offset contains 0 (zero) or a control has not been assigned to the ResizeControl property.
MoveSplitter ensures that size constraints for both the ResizeControl and the adjacent control(s) are respected when the splitter is repositioned.
MoveSplitter is called from the SetSplitterPosition abd StopSplitterMove methods.
See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
