Sign in Join
FPDoc Onlineexperiment

TControlBorderSpacing.InnerBorder property

Member of TControlBorderSpacingpublishedIn unit Controls

Space added to the preferred size for the widget.

Declaration

pascal
property InnerBorder: Integer read FInnerBorder write SetInnerBorder stored IsInnerBorderStored default 0;

Description

When calculating the preferred size of the associated Control, the LCL checks the widget first.

If the widget has a preferred size, such as a TButton widget, then the InnerBorder value is added to increase the Height or Width of the control at both of the opposing borders; Top and Bottom for preferred height, Left and Right for preferred width.

If the widget does not return a preferred size, the InnerBorder has no effect.

Changing the value for the property causes the Change method to be called to recalculate the preferred size for the associated Control, and to signal the OnChange event handler (when assigned).

See also

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