| Description | ||||||||
| Defines a new Creo Parametric menu by creating a menu on-the-fly. This function is executed only once during a Creo Parametric session for each menu. Subsequent calls to this function for a previously loaded menu are ignored.
This function affects Menu-Manager (mode-specific) menus only. NOTE: If short_help or alt_names is not NULL, the number of elements in the array should be the same as the number of menu items in item_names. |
||||||||
| Synopsis | ||||||||
| #include <ProMenu.h> | ||||||||
| ProError | ProMenuFromStringsRegister | ( | ||||||
| ProMenuName menu_name | ||||||||
| /* (In) | ||||||||
| The name of the menu. If alt_name is NULL, menu_name is used as the menu title when the menu is displayed. You should use menu_name to set button actions. | ||||||||
| */ | ||||||||
| ProName alt_name | ||||||||
| /* (In) | ||||||||
| An alternate name for the menu. This is used for foreign languagues. | ||||||||
| */ | ||||||||
| wchar_t* item_names[] | ||||||||
| /* (In) | ||||||||
| The menu item names. This list is terminated by a NULL string. If alt_names is NULL, the function uses item_names as menu items. | ||||||||
| */ | ||||||||
| wchar_t* alt_names[] | ||||||||
| /* (In) | ||||||||
| The alternate names for the menu items. | ||||||||
| */ | ||||||||
| wchar_t* short_help[] | ||||||||
| /* (In) | ||||||||
| The one-line help for each menu item. This list is terminated by a NULL string. This can be NULL if no short help is needed. | ||||||||
| */ | ||||||||
| int* menu_id | ||||||||
| /* (Out) | ||||||||
| The identifier of the created menu. This argument can be NULL. | ||||||||
| */ | ||||||||
| ) | ||||||||
| Returns | ||||||||
|
||||||||