EControl Syntax Editor SDK
ecPrint.TOnForceNewPage Type

TOnForceNewPage is the type for OnForceNewPage event.

TOnForceNewPage = procedure (Sender: TObject; const PrintRect: TRect; Line, LineHeight, LineTop: integer; var ForceNewPage: Boolean) of object;


OnForceNewPage event occurs for each line processing during page building. 

Write OnForceNewPage event handler to perform custom page breaking. 

PrintRect parameter is a printable area of the page. 

Line parameter is a current processed line. 

LineHeight parameter is a height of this line. 

LineTop parameter is a position of the line in the page. 

To force new page on this line you need to set ForceNewPage to True.

Copyright (c) 2004-2011. All rights reserved.
What do you think about this topic? Send feedback!