Zoom Event

3D Graph Control

Zoom Event

Syntax

Sub ControlName_Zoom( NewDistance As Variant)

Applies To

CWGraph3D

Purpose

Generates the Zoom event when you zoom in or out on the plot.

Remarks

This event is generated only if CWGraph3D.TrackMode is set to cwG3DTrackZoomPanRotate.

You can zoom a graph by pressing and holding the key and the left mouse button and moving the mouse forward and backward. Zooming also can be performed by rotating the mouse wheel if your mouse is equipped with one. Press and hold the key to decrease the granularity of zooming with the mouse wheel.

Parameters

NewDistance As Variant

New distance of the viewing position from the origin.

Example

'Enables zooming, panning, and rotating the graph
CWGraph3D1.TrackMode = cwG3DTrackZoomPanRotate

See Also

ViewDistance

Pan

Rotate

TrackMode

Rotating, Panning, and Zooming (concept)

Mouse Events (3D Graph) Example