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

TControlBorderSpacing.InnerBorder

Space added to the widget's preferred size.

Declaration

Source position: controls.pp line 769

published property TControlBorderSpacing.InnerBorder : Integer
  read FInnerBorder
  write SetInnerBorder
  stored IsInnerBorderStored
  default 0;

Description

When calculating the preferred size of control, the LCL asks the widget first.

When the widget returns a preferred size, e.g. a TButton widget, then the InnerBorder is added twice to this size - e.g. to the Height for top and bottom space.

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

The latest version of this document can be found at lazarus-ccr.sourceforge.net.