[Overview][Types][Classes][Procedures and functions][Index] | Reference for unit 'ExtCtrls' (#lcl)

# TCustomSplitter.MoveSplitter

Moves the splitter by an amount specified in Offset.

## Declaration

Source position: extctrls.pp line 418

`public procedure TCustomSplitter.MoveSplitter(`
`Offset: Integer`
`); virtual;`

## Arguments

`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

TCustomSplitter.Align |  | Specifies the aligned edge for the splitter within its Parent and relative to ResizeControl.
TCustomSplitter.AutoSnap |  | AutoSnap automatically moves the splitter to the zero position when split size becomes smaller than the value in MinSize.
TCustomSplitter.ResizeControl |  | Contains the aligned control that is resized when the splitter is moved.
TCustomSplitter.ResizeAnchor |  | Indicates the orientation and alignment for the splitter control.
TCustomSplitter.GetOtherResizeControl |  | Gets the adjacent anchored control that is resized when the splitter is moved.
TCustomSplitter.SetSplitterPosition |  | Changes the position for the splitter to the specified NewPosition.
TCustomSplitter.StopSplitterMove |  | Performs actions when splitter movement is stopped at the specified mouse position.
TControl.AnchoredControls |  | Provides indexed access to controls which are anchored to the current control by their ordinal position.