RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TPageSetupDialog Class

TPageSetupDialog displays a page setup dialog.

Pascal
TPageSetupDialog = class(TCommonDialog);
C++
class TPageSetupDialog : public TCommonDialog;

Dialogs

TPageSetupDialog displays a modal Windows dialog box for setting up the print page. The dialog does not appear at runtime until it is activated by a call to the Execute method. When the user selects a font and clicks OK, the dialog closes and the selected font is stored in the Font property. 

The page setup dialog includes a sample page that is drawn when the dialog first appears and again as the user reconfigures the page setup. Each time the sample page is drawn, the following events occur. Defining handlers for these events allows you to customize the way the sample page is drawn. Events are listed in the order they occur:

Event 
Occurs 
Before drawing begins. Use to initialize values for other event handlers.  
Before drawing full page.  
Before drawing minimum margins.  
Before drawing margins.  
Before drawing "Greek" text.  
Before drawing stamp (envelope paper types only).  
Before drawing return address (envelope paper types only).  

Most of the event handlers can prevent some or all following event handlers from being called. Refer to individual event handler topics for more information. 

 

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