PopUpMenu

PopUpGetNext

Find the next selectable item after the current item

Syntax

Signature
int         PopUpGetNext( const PopUpMenu *popUp );

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 `PopUpSelect()` 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