Vcl.Dialogs.TPageSetupDialog.OnDrawMargin

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property OnDrawMargin: TPaintPageEvent read FOnDrawMargin write FOnDrawMargin;

C++

__property TPaintPageEvent OnDrawMargin = {read=FOnDrawMargin, write=FOnDrawMargin};

Properties

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

Description

Occurs before drawing margins.

Write an OnDrawMargin event handler to customize the way the margins are drawn. The PageRect parameter indicates the current margins of the page.

If the handler sets the DoneDrawing parameter to true, default drawing for the margins and "Greek" text is suppressed and the OnDrawGreekText event handler is not called. However, this does not suppress special drawing features for envelope paper types: drawing the return address or stamp, and calling the OnDrawEnvStamp, and OnDrawRetAddress event handlers.

See Also