Sign in Join
FPDoc Onlineexperiment

TWinControl.BorderWidth property

Member of TWinControlpublicIn unit Controls

Width of the Border around the control; default is zero.

Declaration

pascal
property BorderWidth: TBorderWidth read FBorderWidth write SetBorderWidth default 0;

Description

BorderWidth is a TBorderWidth property which contains the size for a border drawn on the control. The default value for the property is 0 (zero). Changing the value for the property causes a CM_BORDERCHANGED control message to be sent to the processing loop for the control.

BorderWidth is significant when BorderStyle is set to bsSingle. Descendent classes, which allow their borders to be drawn using a raised or lowered appearance, may use the property value when the control is drawn. It indicates the amount of space to reserve for the borders in the bounds rectangle for the control.

See also

An experiment, built from Lazarus main 2dfa93c66e of 10-22-2026. Not the official Lazarus documentation.