JVCL Help:TJvCustomPreviewControl.OnAddPage
From Project JEDI Wiki
Jump to navigationJump to searchJVCL Help: TJvCustomPreviewControl.OnAddPage Event
[+] TJvCustomPreviewControl Events
[+] TJvCustomPreviewControl Methods
[+] TJvCustomPreviewControl Properties
Search in JVCL Help
Search in all projectsSummary
Occurs when Add is called.
Pascal
TJvDrawPageEvent = procedure (Sender: TObject; PageIndex: Integer; Canvas: TCanvas; PageRect, PrintRect: TRect; var NeedMorePages: Boolean) ofobject;
propertyOnAddPage: TJvDrawPageEvent;
Parameters
Parameters | Description |
PageRect | The coordinates of the entire page. |
PrintRect | The coordinates of the printable area of the page. |
NeedMorePages | Set this to true to automatically add more pages (OnAddPage is called repeatedly until NeedMorePages is set to false). |
Sender | The object that called the event. |
PageIndex | The index of the new page. |
Canvas | The canvas to draw to. |
Description
Write a handler for the OnAddPage event to draw the content of a newly added page. If you don't assign a handler to this event, nothing will be drawn on the page that was added by Add.
See Also
TJvCustomPreviewControl.Add, TJvCustomPreviewControl.OnDrawPreviewPage
About
Contribute to this help topic
This documentation wiki is based on the collaborative effort of Project JEDI users. Your edits are welcome in order to improve documentation quality: edit this page