PopUpMenu

PopUpGetCurrent

Return the current position in the menu

Syntax

Signature
int         PopUpGetCurrent( const PopUpMenu *popUp );

Return value

The stored one-based position, or 0 if no item is current or the object is NULL.

Description

A new menu starts with the current position at `0`. Closing an open menu resets it to `0`. The caller can set the position with `PopUpSelect()` while the menu is closed.

See also