Skip to content

OnZoomChanged - cDRToolPanelPreview

Method Type

Procedure

Arguments

Argument Description
iFactor The zoom factor.

Description

This event is sent by an object from the cDRReport class and, if not changed, it is used to display the current page number in the toolbar that is also automatically created by the cDRToolPanelPreview 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 cDRToolPanelPreview
    Procedure OnZoomChanged Integer iFactor
        Set psText of (oZoom(oDRToolBar(oCommandBars))) to (String(iFactor) + "%")
    End_Procedure
End_Object