OnZoomChanged - cDRPreview¶
Method Type¶
Procedure (event)
Arguments¶
| Argument | Description |
|---|---|
iFactor |
The zoom factor. |
Description¶
This event is sent by an object from the cDRReport class and is used to display the current page number in the toolbar that is also automatically created by the cDRPreview class.
The value of iFactor can be one of:
| Value | Description |
|---|---|
25-500 |
Percentage of the original size. |
-1 |
Zoom to page width. |
-2 |
Zoom to full (whole) page. |
Sample¶
Object oView is a cDRPreview
Procedure OnZoomChanged Integer iFactor
Set psText of (oZoom (oDRToolBar (oCommandBars))) to (String (iFactor) + "%")
End_Procedure
End_Object