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

TControlBorderSpacing.InnerBorder

Space added to the preferred size for the widget.

Declaration

Source position: controls.pp line 879

published property TControlBorderSpacing.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

TControlBorderSpacing.Control

  

The control where the border spacing values are applied.

TControlBorderSpacing.Change

  

Invalidates the control and signals the OnChange event handler.

TControlBorderSpacing.OnChange

  

Event handler signalled when border spacing value(s) have been changed.

TWinControl.CalculatePreferredSize

  

Override this method to return a different preferred height and/or width for auto-sizing.


Version 4.0 Generated 2025-05-03 Home