Visual Basic: MSChart Control

AxisTitleActivated Event

See Also   Example   Applies To

Occurs when the user double clicks on an axis title.

Syntax

Private Sub object**_AxisTitleActivated** (axisIdAs Integer, axisIndexAs Integer, mouseFlagsAs Integer, cancelAs Integer )

The AxisTitleActivated event syntax has these parts:

Part Description
object An object expression that evaluates to an object in the Applies To list.
axisId Integer. An integer that identifies a specific axis.
AxisIndex Integer. An integer reserved for future use. For this version of MSChart control, 1 is the only valid value for this argument.
mouseFlags Integer. An integer that indicates whether a key is held down when the mouse button is clicked.
cancel Integer. This argument is not used at this time.

Settings

The event handler determines which axis title is activated and sets axisId to:

Constants Value Description
VtChAxisIdX 0 If the x axis is affected.
VtChAxisIdY 1 If the y axis is affected.
VtChAxisIdY2 2 If the secondary y axis is affected.
VtChAxisIdZ 3 If the z axis is affected.
VtChAxisIDNone 4 No axis.

The event handler determines if a key is held down when the mouse button is clicked and sets mouseFlags to:

Constants Description
VtChMouseFlagShiftKeyDown If the SHIFT key is held down.
VtChMouseFlagControlKeyDown If the CONTROL key is held down.