Vcl.Dialogs.TPageSetupDialog.BeforePaint

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property BeforePaint: TPageSetupBeforePaintEvent read FBeforePaint  write FBeforePaint;

C++

__property TPageSetupBeforePaintEvent BeforePaint = {read=FBeforePaint, write=FBeforePaint};

Properties

Type Visibility Source Unit Parent
event published
Vcl.Dialogs.pas
Vcl.Dialogs.hpp
Vcl.Dialogs TPageSetupDialog

Description

Occurs before dialog draws sample page.

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.