TopBarMenu

TopBarGetNext

Find the next selectable item after the current item

Syntax

Signature
int         TopBarGetNext( const TopBarMenu *topBar );

Return value

The one-based position of the next selectable item after the current 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. With a current position of `0`, the search starts at position `1`. The search ends at the last item.

See also