OnValueChanged

CNi

Function Group
OnValueChanged() Functions    Prev page: OnReadyStateChangeNext page: Button Events    
Function Declared in:
NiButtonEvents.h

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

void OnValueChanged(
    BOOL Value);

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

Generated when the value of the button changes.

Note: This event is generated if the button is in switch mode (switch value when clicked on) or in command mode (switch value until released).

Shortcut to top of page. Parameters

BOOL Value

Contains the current value of the button.

'See Also' icon -- Shortcut to top of page. See Also

Shortcut to top of page. Example

void OnValueChanged(BOOL Value) {
   if (Value) {
       // Your event code here.
   }
}