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

TCustomSplitter.ResizeAnchor

Indicates the orientation and alignment for the splitter control.

Declaration

Source position: extctrls.pp line 430

public property TCustomSplitter.ResizeAnchor : TAnchorKind
  read FResizeAnchor
  write SetResizeAnchor
  default akLeft;

Description

ResizeAnchor is a TAnchorKind property which indicates the AnchorSide (and the associated Control) used to align the splitter. The default value for the property is akLeft, and causes the splitter to align to the control for the corresponding position in AnchorSide. akLeft and akRight allow the splitter to be moved along the horizontal axis. akTop and akBottom allow the splitter to be moved along the vertical axis.

Changing the value for the property causes the UpdateCursor method to be called to set the cursor shape displayed when the splitter control is dragged.

ResizeAnchor is linked to the Align property in TCustomSplitter. Changing the value in Align causes ResizeAnchor (and Cursor) to be updated with corresponding values as needed.

ResizeAnchor is used in the MoveSplitter method to determine the size for the splitter control and the limits for the resize operation. It is used in MouseMove to determine the starting position and offset used when the control is dragged.

See also

TCustomSplitter.Align

  

Specifies the aligned edge for the splitter within its Parent and relative to ResizeControl.

TCustomSplitter.Cursor

  

The shape for the mouse pointer when the control is dragged.

TCustomSplitter.UpdateCursor

  

Updates the cursor shape to reflect the ResizeAnchor for the splitter.

TCustomSplitter.MoveSplitter

  

Moves the splitter by an amount specified in Offset.

TCustomSplitter.MouseMove

  

Applies a Shift+Drag operation for the splitter as a relative offset to the anchored control.

TAnchorKind

TControl.AnchorSide

  

Array of anchor definitions, indexed by the control sides.


Version 4.0 Generated 2025-05-03 Home