PlotMouseDown, PlotMouseMove, PlotMouseUp Events

3D Graph Control

PlotMouseDown, PlotMouseMove, PlotMouseUp Events

Syntax

Sub ControlName_PlotMouseDown( Button As Integer, Shift As Integer, XData As Variant, YData As Variant, ZData As Variant, PlotIndex As Integer, PointI As Long, PointJ As Long)

Sub ControlName_PlotMouseMove( Button As Integer, Shift As Integer, XData As Variant, YData As Variant, ZData As Variant, PlotIndex As Integer, PointI As Long, PointJ As Long)

Sub ControlName_PlotMouseUp( Button As Integer, Shift As Integer, XData As Variant, YData As Variant, ZData As Variant, PlotIndex As Integer, PointI As Long, PointJ As Long)

Applies To

CWGraph3D

Purpose

Generates PlotMouseDown when you click the mouse on a plot.

Generates PlotMouseMove when you move the mouse over a plot.

Generates PlotMouseUp when you release the mouse over a plot.

Remarks

These events are generated only if CWGraph3D.TrackMode is set to cwGTrackAllEvents.

In Visual Basic, use the following constants with the Button and Shift parameters:

vbLeftButton1Left button is pressed
vbRightButton2Right button is pressed
vbMiddleButton4Middle button is pressed
vbShiftMask1 <Shift> key is pressed
vbCtrlMask2 <Ctrl> key is pressed
vbAltMask4 <Alt> key is pressed

Parameters

Button As Integer

The button that is pressed, released, or in the case of a mouse move, the buttons that are down. The Button argument is a bit field with bits corresponding to the left button (Bit 0), right button (Bit 1), and middle button (Bit 2).

Shift As Integer

The state of the <Shift> , <Ctrl> , and <Alt> keys when the button specified in the Button argument is pressed, released, or moved. The Shift argument is a bit field with the least-significant bits corresponding to the <Shift> key (Bit 0), the <Ctrl> key (Bit 1), and the <Alt> key (Bit 2 ). Some, all, or none of the bits can be set, indicating that some, all, or none of the keys are pressed.

XData As Variant

The X value of the point nearest to the mouse pointer when the event occurred.

YData As Variant

The Y value of the point nearest to the mouse pointer when the event occurred.

ZData As Variant

The Z value of the point nearest to the mouse pointer when the event occurred.

PlotIndex As Integer

The index of the plot (one-based).

PointI As Long

The i index of the point (zero-based).

PointJ As Long

The j index of the point (zero-based).

See Also

Plots

TrackMode

Mouse Events (3D Graph) Example