OnPointerValueChanged

CNi

Function Group
OnPointerValueChanged() Functions    Prev page: OnMouseUpNext page: OnPointerValueCommitted    
Function Declared in:
NiKnobEvents.h

'Declaration' icon -- Shortcut to top of page. Declaration

void OnPointerValueChanged(
    long Pointer,
    VARIANT FAR* Value);

'Description' icon -- Shortcut to top of page. 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.

Shortcut to top of page. Parameters

long Pointer

Contains the index of the pointer that changed.

VARIANT FAR* Value

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' icon -- Shortcut to top of page. See Also

Shortcut to top of page. Example

void OnPointerValueChanged(long Pointer, VARIANT FAR* Value) {
   m_Knob.Value = CNiVariant(Value);
}