SilverScreen Solid Modeler

menu_check_item

menu_check_item

Previous topic Next topic  

menu_check_item

Previous topic Next topic JavaScript is required for the print function  

SilverScreenAPI

 

int menu_check_item ( int item, int setting )

 

int item;        // menu item number

int setting;     // new check setting

 



Synopsis

#include "silver.h"

 

The menu_check_item function causes the specified custom menu item to be checked or unchecked, 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 uncheck the item, or any other value will check it.

 

Return Value

menu_check_item returns the previous check setting for the item.

 

Comments

menu_check_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 checked is displayed with a small check beside it.

 

See Also

menu, menu_persist, menu_unload, menu_enable_item