Unit 'ExtCtrls' Package
[Overview][Types][Classes][Procedures and functions][Index] [#lcl]

TPaintBox.Paint

Draws the content for the control.

Declaration

Source position: extctrls.pp line 452

protected procedure TPaintBox.Paint; override;

Description

Paint is an overridden procedure used to draw the control.

At design-time, a dashed black line is drawn around the area for the control and across its opposing corners. No other actions are performed in the method at design-time.

At run-time, the OnPaint event handler is used to render the content for the control using the Font and Color properties. The inherited Paint method is called to signal the event handler.

See also

TPaintBox.OnPaint

  

Event handler signalled to paint the control.

TPaintBox.Font

  

The font to be used for text display in this control.

TPaintBox.Color

  

The background color of the control.

TPaintBox.Canvas

  

A clipped window into the parent Canvas.

TGraphicControl.Paint

  

Implements the default handler used to draw the control.



CT Web help

CodeTyphon Studio