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

# TBevel.Paint

Handles paint requests received from the parent control.

## Declaration

Source position: extctrls.pp line 680

`protected procedure TBevel.Paint; override;`

## Description

Paint is an overridden procedure used to perform paint requests received by the parent control.

Paint checks the value in Style to determine the Pen colors used to draw the bevel. The Shape property determines the drawing primitives used to render the bevel to its Canvas.

Remark: | No actions are performed in the method when Shape contains the value bsSpacer.

Paint calls the inherited method to trigger the OnPaint event handler (when assigned).

## See also

TBevel.Shape |  | Shape - whether a box, a frame or a line along one of the edges.
TBevel.Style |  | Indicates whether the bevel is drawn using a raised or a lowered style.
TGraphicControl.Canvas |  | A clipped window into the parent Canvas.
TGraphicControl.Paint |  | Implements the default handler used to draw the control.
TGraphicControl.OnPaint |  | Event handler signalled to paint the control.