TrackMode Property
Syntax
CWGraph3D.TrackMode
Data Type
You can use the following constants with this data type:
- cwG3DTrackAllEvents–Generates mouse events for plots and the plot area.
- cwG3DTrackCursors–Generates cursor events.
- cwG3DTrackPlotAreaEvents–Generates mouse events only for the plot area.
- cwG3DTrackZoomPanRotate–Generates Zoom, Pan, and Rotate events.
Purpose
Determines the type of events generated and other automatic processing, such as how the mouse interacts with the graph during run time.
Remarks
Some common modes on the graph generate events for mouse interaction with plots and the plot area, as well as rotating, zooming, and panning the graph.
To rotate, pan, and zoom 3D graphs in an application that is running, set TrackMode to cwG3DZoomPanRotate. Use the following steps to rotate, zoom, and pan a 3D graph:
- To rotate the graph, press and hold the left mouse button and drag.
- To zoom on the graph, press and hold the <Alt> key and the left mouse button while dragging the mouse forward and backward. If your mouse has a wheel, you also can zoom on the graph by rotating the wheel.
- To pan the graph, press and hold the <Shift> key and the left mouse button while dragging the mouse.
If the property CWGraph3D.Enabled is set to False, all tracking and events are disabled.
Example
'Enable panning, zooming, rotating
CWGraph3D1.TrackMode = cwG3DZoomPanRotate