Syntax
xBool PushButtonSetFBlock( PushButton *pushButton, PushButtonBlock fBlock );
Arguments
pushButton the push button.
fBlock a C function that receives the button 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 `PushButton *` so it can read the control's new focus state with `PushButtonGetHasFocus()` and retrieve application data with `PushButtonGetCargo()`. The xBase block takes no implicit arguments.