|
||
int menu_enable_item ( int item, int setting )
int item; // menu item number int setting; // new enable setting
|
|
Synopsis |
#include "silver.h"
The menu_enable_item function causes the specified custom menu item to be enabled, disabled or grayed, based on the value of setting.
|
Parameters |
item is the item number for a leaf of a custom menu which identifies the menu item. setting is the setting: 0 to disable the item; 2 to gray it. Any other value will enable it.
|
Return Value |
menu_enable_item returns the previous enable setting for the item.
|
Comments |
menu_enable_item operates on all of the menu items with number item. The value returned is that of the last menu item with that number. An item that is grayed is displayed in a light gray, and may not be selected, whereas an item that is disabled is displayed as normal, but may not be selected.
|
See Also |
|
|