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

TCustomPanel.BevelWidth

Width for a bevel on the panel in pixels.

Declaration

Source position: extctrls.pp line 1125

public property TCustomPanel.BevelWidth : TBevelWidth
  read FBevelWidth
  write SetBevelWidth
  default 1;

Description

BevelWidth is a TBevelWidth property which indicates the width for bevels draw around the panel in pixels. The default value for the property is 1.

Changing the value for the property causes a CM_BORDERCHANGED control message to be performed for the control.

BevelWidth is used when the Paint method is called to redraw the control. The value in BevelWidth is used to draw both the outer bevel (using the style in BevelOuter) and the inner bevel (using the style in BevelInner). Each bevel is drawn by calling the Frame3D method in Canvas with BevelWidth and BevelColor passed as arguments.

Remark: For the macOS Carbon widgetset, the values bvLowered and bvSpace are not supported for the BevelInner property.

See also

TCustomPanel.Paint

  

Paints the panel including the bevels and caption defined for the control.

TCustomPanel.BevelInner

  

Determines the appearance of the Inner Bevel for the panel (whether raised, lowered, etc.).

TCustomPanel.BevelOuter

  

Determines the appearance of the Outer Bevel for the panel (whether raised, lowered, etc.).

TCustomPanel.BevelColor

  

Color used to draw bevels for the panel.

TWinControl.BorderWidth

  

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


Version 3.2 Generated 2024-02-25 Home