![]() |

| Function |
Declared in: NiGraph3DEvents.h |
Declaration
void OnPan(
VARIANT FAR* NewXCenter,
VARIANT FAR* NewYCenter,
VARIANT FAR* NewZCenter);
Description
Generated when you pan the graph up and down or left and right.
Notes:
1. This event is generated only if the CNiGraph.TrackMode property is set to TrackZoomPanRotate.
2. Panning is performed by holding down the <Shift> key and the left mouse button and moving the mouse.
Parameters
VARIANT FAR* NewXCenter
VARIANT FAR* NewYCenter
VARIANT FAR* NewZCenter
Variant containing the new x coordinate of the center of the view.
Note: Use CNiVariant to get to the underlying data.
Variant containing the new y coordinate of the center of the view.
Note: Use CNiVariant to get to the underlying data.
Variant containing the new z coordinate of the center of the view.
Note: Use CNiVariant to get to the underlying data.
See Also
Example
void OnPanCwgraph3d1(VARIANT FAR* NewXCenter, VARIANT FAR* NewYCenter, VARIANT FAR* NewZCenter) {
if (CNiVariant(NewXCenter) > 100) {
*newXCenter = CNiVariant(100);
}
}

