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

TCustomPanel.Paint

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

Declaration

Source position: extctrls.pp line 1088

protected procedure TCustomPanel.Paint; override;

Description

Paint is an overridden procedure which paints the panel including the bevels and caption defined for the control. Paint calls GetClientRect to get the rectangle used to draw the control. PaintBevel is called to draw both the inner and outer bevels for the control (when used).

When Caption contains a String value (other than an empty string), the Canvas for the control is used to render the text. Values in the BiDiMode, WordWrap, and Layout properties are applied to the text as needed.

Paint calls the inherited Paint method prior to exit.

See also

TCustomControl.Paint

  

Implements the default handler used to draw the control.

The latest version of this document can be found at lazarus-ccr.sourceforge.net.