OnPointerValueCommitted

CNi

Function Group
OnPointerValueCommitted() Functions    Prev page: OnPointerValueChangedNext page: OnReadyStateChange    
Function Declared in:
NiKnobEvents.h

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

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

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

Generated when the value of a pointer has stopped changing.

Note: The control generates this event when the user releases the mouse button after clicking on the control, releases the keys used to change the value of the control, or sets the value programmatically. For some applications, it is better to handle the PointerValueCommitted event rather than the PointerValueChanged event.

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. This parameter should be used 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 OnPointerValueCommitted(long Pointer, VARIANT FAR* Value) {
   m_Knob.Value = CNiVariant(Value);
}