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

TWinControl.BorderWidth

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

Declaration

Source position: controls.pp line 2334

public property TWinControl.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

TWinControl.BorderStyle

  

Indicates the border style displayed around the control.


Version 3.2 Generated 2024-02-25 Home