Function TWPVirtPage.AddFrameRect(x:Integer; Y:Integer; w:Integer; h:Integer; Options:Pointer) : Integer
Unit: WPRTEDefs
Class: WPRTEDefs.TWPVirtPage
Parameters
x:Integer Y:Integer w:Integer h:Integer Options:Pointer
Returns
The type of the result value is Integer.
Description
Add a text frame. Must be called with OnMeasureTextPage. The usual initialization will be aborted (_AbortInit=true).
X,y,w,h measured in twips! "Options" is reserved for custom draw - it will be provided to the DrawFrameRect event.
The method returns the current count of rectangles. Hint: Pass 0 for w and h to leave the page empty.