IDLgrWindow::ZoomIn
Syntax | Arguments | Keywords | Example | Version History
The IDLgrWindow::ZoomIn procedure method does the following:
- Increments the value of the ZOOM_NSTEP property.
- Updates the value of the CURRENT_ZOOM property to reflect the product of the ZOOM_BASE and ZOOM_NSTEP properties.
Note
This method does not change the window contents automatically. The application is responsible for updating the window content based on the new zoom value.
Syntax
Obj->[IDLgrWindow::]ZoomIn
Arguments
None
Keywords
None
Example
While you are free to use the value of the CURRENT_ZOOM, ZOOM_BASE, and ZOOM_NSTEP properties to modify the contents of the IDLgrWindow in any way you see fit, one choice is to modify the value of the VIEWPLANE_RECT property of the IDLgrView object that contains your graphics.
First, we create an IDLgrWindow containing a simple plot:
Next, we use the ZoomIn method to change the current zoom, and then change the VIEWPLANE_RECT property by the current zoom amount:
(Another option would be to use the IDLgrModel::Scale method to modify the scale factors used by the model object.)
When you have finished with the example, destroy the IDLgrWindow and IDLgrView objects:
OBJ_DESTROY, mywindow
OBJ_DESTROY, myview
Version History