MenuItem

MenuItemSetEnabled

Set whether a regular item can be selected

Syntax

Signature
xBool         MenuItemSetEnabled( MenuItem *item, xBool enabled );

Arguments

item the menu item to change.

enabled T to allow selection or F to disable it.

Return value

T on success, or F if the object is NULL.

Description

The setter stores the flag for any item. Menu navigation skips items with the caption `MENU_SEPARATOR`.

See also