Sign in Join
FPDoc Onlineexperiment

TCustomPanel.BevelWidth property

Member of TCustomPanelpublicIn unit ExtCtrls

Width for a bevel on the panel in pixels.

Declaration

pascal
property 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.

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

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.