TCustomSplitter.SetResizeControl procedure
Sets the value for the ResizeControl property.
Declaration
procedure SetResizeControl(const AValue: TControl); virtualArguments
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.
