TopBarMenu

TopBarSetCurrent

Set or clear the current position in the menu

Syntax

Signature
xBool       TopBarSetCurrent( TopBarMenu *topBar, int current );

Arguments

topBar the top bar menu.

current the one-based position of a selectable item, or 0 to clear the selection.

Return value

T on success, or F if the object is NULL or a nonzero position is outside the item list or refers to a disabled item or a separator.

Description

This setter performs the same operation as `TopBarSelect()`. Call `TopBarDisplay()` to draw the new selection.

See also