JVCL Help:TJvXPCustomContainer.OnPaint

From Project JEDI Wiki
Jump to navigationJump to search
JEDI Visual Component Library Help

Search in JVCL Help

 
Search in all projects
 

Summary

Occurs when the control needs to be painted.


Pascal

 TJvXPPaintEvent = procedure (Sender: TObject; Rect: TRect; ACanvas: TCanvas; AFont: TFont) ofobject;
propertyOnPaint: TJvXPPaintEvent;


Parameters

Parameters Description
ACanvas The canvas to draw on.
AFont The font to use for text drawing. You can change the properties of AFont to change the way the default text is drawn.
Sender The control that triggered the event.
Rect The area to draw in.


Description

Use OnPaint to perform special processing when the control is redrawn. Any special painting on the control should be done in this event. OnPaint occurs after the borders are drawn but before the image and text of the control.


About

Contribute to this help topic

This documentation wiki is based on the collaborative effort of Project JEDI users. Your edits are welcome in order to improve documentation quality: edit this page