RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
Dialogs.TPaintPageEvent Type

TPageSetupBeforePaintEvent defines the class method called by various TPageSetupDialog events.

Pascal
TPaintPageEvent = procedure (Sender: TObject; Canvas: TCanvas; PageRect: TRect; var DoneDrawing: Boolean) of object;
C++
(Sender: TObject; Canvas: TCanvas; PageRect: TRect; var DoneDrawing: Boolean) ( TPaintPageEvent)();

Dialogs

The TPaintPageEvent class method is called by a number of events that are involved in the painting of the Page Setup Dialog illustrative page image.  

Sender is a reference to the calling TPageSetupDialog instance. 

Canvas is a reference to the Page Setup Dialog canvas. 

PageRect gives the bounds of the item being drawn that resulted in the event. 

Set DoneDrawing to true to disable further painting. This results in a blank sample page, with none of the other event handlers being called. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!