TrackMode Property

Measurement Studio User Interface

TrackMode Property

Syntax

CWGraph.TrackMode

Data Type

CWGraphTrackModes

You can use the following constants with this data type:

  • cwGTrackAllEvents–Generates mouse events for all objects in the plot area.
  • cwGTrackDragAnnotation–Positions annotations with the mouse.
  • cwGTrackDragCursor–Positions cursors with the mouse.
  • cwGTrackPanPlotAreaX–Sets the extent of the x axis by dragging the plot area with the mouse.
  • cwGTrackPanPlotAreaXY–Sets the extent of the x and y axes by dragging the plot area with the mouse.
  • cwGTrackPanPlotAreaY–Sets the extent of the y axis by dragging the plot area with the mouse.
  • cwGTrackPlotAreaEvents–Generates mouse events for only the plot area.
  • cwGTrackZoomRectX–Sets the extent of the x axis by selecting a region with the mouse.
  • cwGTrackZoomRectXY–Sets the extent of the x and y axes by selecting a region with the mouse.
  • cwGTrackZoomRectY–Sets the extent of the y axis by selecting a region with the mouse.

Purpose

Determines how the mouse interacts with the graph.

Remarks

If the CWGraph.Enabled property is set to False, all tracking and events are disabled. Use the TrackMode property to turn on zooming and panning for the graph.

Example

'Enable panning for the X and Y axes
CWGraph1.TrackMode = cwGTrackPanPlotAreaXY