[Overview][Types][Classes][Procedures and functions][Index] Reference for unit 'ExtCtrls' (#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. Color is used to paint the background for the control. 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. Their values are assigned to the Canvas for the control, and 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 for the control.

TPaintBox.Canvas

  

A clipped window into the parent Canvas.

TGraphicControl.Paint

  

Implements the default handler used to draw the control.


Version 3.2 Generated 2024-02-25 Home