PopUpMenu

PopUpGetPrev

Find the previous selectable item before the current item

Syntax

Signature
int         PopUpGetPrev( const PopUpMenu *popUp );

Return value

The one-based position of the previous selectable item before 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 result is `0`. The search ends at the first item.

See also