RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TPageSetupDialog.OnDrawMargin Event

Occurs before drawing margins.

Pascal
property OnDrawMargin: TPaintPageEvent;
C++
__property TPaintPageEvent OnDrawMargin;

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. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!