RadioButto

RadioButtoSetSBlock

Set the callback for changes to the selection state

Syntax

Signature
xBool           RadioButtoSetSBlock( RadioButto *radioButto, RadioButtoBlock sBlock );

Arguments

radioButto the radio button.

sBlock a C function that receives the button when it becomes selected or unselected, or NULL to clear the callback.

Return value

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

Description

The callback receives a `RadioButto *` so it can read the new state with `RadioButtoGetBuffer()` and retrieve application data with `RadioButtoGetCargo()`. The xBase block takes no implicit arguments.

See also