SilverScreen Solid Modeler

menu

menu

Previous topic Next topic  

menu

Previous topic Next topic JavaScript is required for the print function  

SilverScreenAPI

 

int menu ( char *menu_name )

 

char *menu_name;   // string containing menu name

 

 



Synopsis

#include "silver.h"

 

The menu function causes the specified custom menu to be loaded, and allows the user to make a menu selection from it. A detailed description of the construction of custom menus, and the use of this function appears in Custom Menus.

 

Parameters

menu_name is a null-terminated string containing the base name of the menu to be loaded, which will be appended with ".CMF", to form the file name.

 

Return Value

menu returns the number associated with the menu item if a selection was successfully made. Otherwise, if Esc was pressed, menu returns 0. If a control key or function key was pressed, the predefined variable ich is set to the value of the key pressed, and menu returns 1.