Sign in Join
FPDoc Onlineexperiment

TCustomSplitter.SetResizeControl procedure

Member of TCustomSplitterprotectedIn unit ExtCtrls

Sets the value for the ResizeControl property.

Declaration

pascal
procedure SetResizeControl(const AValue: TControl); virtual

Arguments

AValue

New value for the ResizeControl property.

Description

SetResizeControl ensures that the splitter control is repositioned so that it is guaranteed to be closest to the new control in AValue. It updates the Left or Top coordinate in the splitter based on the following values in the Align property:

alLeft
Adjusts Left to be one pixel larger than the value in AValue.
alRight
Adjusts Left to be one pixel smaller than the value in AValue.
alTop
Adjusts Top to be one pixel larger than the value in AValue.
alBottom
Adjusts Top to be one pixel smaller than the value in AValue.
alClient
No changes are made to Left or Top. AValue is assigned as the control for the AnchorSide at the position in ResizeAnchor.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.