AdjustObjectSize Event
Occurs just before ReportListener begins rendering layout elements of type Shape or Picture.
PROCEDURE Object.AdjustObjectSize
LPARAMETERS nFRXRecno, oObjProperties |
Parameters
Visual FoxPro passes the AdjustObjectSize event parameters in the following order:
- nFRXRecno
-
Integer data type, specifying the record number in the report or label definition file (frx or lbx) describing the layout element being rendered.
- oObjProperties
-
An object of Empty class, with members providing values relevant to adjusting the size of a Shape or Picture.
oObjProperties member Type Usage reload
Logical, defaults to .F.
Flag to alert the ReportListener if you make changes.
Set this value to True (
.T.) to notify the ReportListener of changes to height or width.height
Integer, valid values from 0 to 64000
Height of layout element, in 960ths of an inch.
If you change this value and set reload to
.T., the ReportListener renders with the revised value.width
Integer, valid values from 0 to 64000
Width of layout element, in 960ths of an inch.
If you change this value and set reload to
.T., the ReportListener renders with the revised value.top,left
Integer, readonly
Coordinates of top- and left-most point of the Shape or Picture element. Provides information about the position of the layout element on the output page, for reference in calculations.
reattempt
Logical, readonly
Indicates whether this element has been pushed to a second page because it did not fit on the previous page.
maxheightavailable
Integer, readonly
Indicates the available room on this page for this element, allowing for the height of subsequent bands (such as the page footer) for which space must be reserved.
Note Microsoft reserves the right to invoke AdjustObjectSize for additional report and label layout elements, as needed, and to add to the oObjProperties members appropriately for these additional layout element types. You can use nFRXRecno to test for layout element type, as shown in the sample code in Render Method.
Remarks
Example
See Also
© , 1996-2020 • Updated: 11/10/20
Comment or report problem with topic
Caution
Microsoft Visual FoxPro 9 SP2 Help file, VFPX Edition v1.08