ButtonBar

ButtonBarGetCurrent

Return the position of the highlighted button

Syntax

Signature
int         ButtonBarGetCurrent( const ButtonBar *buttonBar );

Return value

The stored one-based position highlighted by mouse input, or 0 if no button is highlighted or the object is NULL.

Description

`ButtonBarApplyKey()` refreshes the highlight on mouse and resize events. Disabled items and separators give a highlighted position of `0`.

See also