![]() |



Function |
Declared in: NiKnobEvents.h |
Declaration
void OnPointerValueChanged( long Pointer, VARIANT FAR* Value);
Description
Generated when the value of a pointer changes.
Note: Programmatic or graphical changes to the pointer cause this event. The control generates this event every time the value of a pointer changes while it is being set. For example, if you click and hold the mouse button in the middle of the control and drag the mouse, the value changes and you get a PointerValueChanged event. As you continue to drag and the value changes again, this event is generated again.
Parameters
long Pointer
VARIANT FAR* Value
Contains the index of the pointer that changed.
Variant value that contains the new value of the pointer. National Instruments recommends you use this parameter to construct a CNiVariant to get to the variant's data.
See Also
Example
void OnPointerValueChanged(long Pointer, VARIANT FAR* Value) { m_Knob.Value = CNiVariant(Value); }