CheckBox

CheckBoxSelect

Set or toggle the checked state

Syntax

Signature
xBool         CheckBoxSelect( CheckBox *checkBox, int newState );

Arguments

checkBox the check box.

newState use T to check, F to uncheck or NIL to toggle. Other nonzero values are treated as T.

Return value

T on success, or F if the object is NULL.

Description

When the state changes, the check box redraws itself and then calls the state callback if set. The callback can read the new state with `CheckBoxGetBuffer()`. Selecting the current state also succeeds.

See also