RadioGroup

RadioGroupGetAccel

Find the first radio button whose accelerator matches a key

Syntax

Signature
int             RadioGroupGetAccel( const RadioGroup *radioGroup, int key );

Arguments

radioGroup the radio group.

key an input key code. Use KEY_UNICODE() from xdev-wtui-inkey.h to supply a Unicode code point as a key code.

Return value

The one-based position of the first matching button, or 0 if there is no match or the object is NULL.

Description

The search checks member captions in list order using `RadioButtoIsAccel()`. Matching ignores case and works independently of focus. Call `RadioGroupSelect()` with a nonzero result to select the button.

See also