Vcl.Dialogs.TPageSetupDialog

From RAD Studio API Documentation
Jump to: navigation, search

Vcl.Dialogs.TCommonDialogSystem.Classes.TComponentSystem.Classes.TPersistentSystem.TObjectTPageSetupDialog

Delphi

TPageSetupDialog = class(TCommonDialog)

C++

class PASCALIMPLEMENTATION TPageSetupDialog : public TCommonDialog

Properties

Type Visibility Source Unit Parent
class public
Vcl.Dialogs.pas
Vcl.Dialogs.hpp
Vcl.Dialogs Vcl.Dialogs

Description

TPageSetupDialog displays a page setup dialog.

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

BeforePaint

Before drawing begins. Use to initialize values for other event handlers.

OnDrawFullPage

Before drawing full page.

OnDrawMinMargin

Before drawing minimum margins.

OnDrawMargin

Before drawing margins.

OnDrawGreekText

Before drawing "Greek" text.

OnDrawEnvStamp

Before drawing stamp (envelope paper types only).

OnDrawRetAddress

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.

See Also