TopBarMenu

TopBarGetFirst

Find the first selectable item

Syntax

Signature
int         TopBarGetFirst( const TopBarMenu *topBar );

Return value

The one-based position of the first selectable item, or 0 if there is none or the object is NULL.

Description

The search skips disabled items and separators. Call `TopBarSelect()` to make the returned position current.

See also