RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TPageSetupDialog.BeforePaint Event

Occurs before dialog draws sample page.

Pascal
property BeforePaint: TPageSetupBeforePaintEvent;
C++
__property TPageSetupBeforePaintEvent BeforePaint;

Write an BeforePaint event handler to initialize data used by the other event handlers. 

PaperSize indicates a standard Windows paper size. See Paper size constants. 

Orientation indicates the paper orientation currently selected. 

PageType indicates the kind of paper currently selected. 

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) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!