Unit 'Controls' Package
[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] [#lcl]


Indicates the border style displayed around the control.


Source position: controls.pp line 2256

protected property TWinControl.BorderStyle : TBorderStyle
  read GetBorderStyle
  write SetBorderStyle
  default bsNone;


BorderStyle is a TBorderStyle property which indicates whether borders are drawn for the control. bsSingle indicates that borders are drawn for the control. The default value for the property is bsNone, and indicates that borders are not drawn for the control.

Changing the value for the property causes the widgetset class to be updated when the Handle has been allocated for the control.

BorderStyle is used in the CreateParams method. It causes the WS_EX_CLIENTEDGE extended window style flag to be included in the control when the property is set to bsSingle.

BorderStyle is used along with BorderWidth in descendent classes which allow their borders to be drawn with a raised or lowered appearance.

See also



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



Possible types of borders (with or without border).



Represents border styles available for a Form.

CT Web help

CodeTyphon Studio