CheckBox

CheckBoxSetFBlock

Set the callback for input focus changes

Syntax

Signature
xBool         CheckBoxSetFBlock( CheckBox *checkBox, CheckBoxBlock fBlock );

Arguments

checkBox the check box.

fBlock a C function that receives the check box when it gains or loses focus, or NULL to clear the callback.

Return value

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

Description

The callback receives a `CheckBox *` so it can read the control's new focus state with `CheckBoxGetHasFocus()` and retrieve application data with `CheckBoxGetCargo()`. The xBase block takes no implicit arguments.

See also