• | Menu—A menu, such as the File menu, or a sub-menu, such as the Manage File menu under the File menu. |
• | Menu button—A named item in a group or menu that is used to launch a set of instructions. |
• | Pop-up menu—A menu invoked by selection of an item in the Creo Parametric graphics window. |
• | Command—A procedure in Creo Parametric that may be activated from a button. |
|
|
|
~ Command `ProCmdModelSave`
• | pfcACCESS_REMOVE—The button is not visible and if all of the menu buttons in the containing menu possess an access function returning pfcACCESS_REMOVE, the containing menu will also be removed from the Creo Parametric user interface. |
• | pfcACCESS_INVISIBLE—The button is not visible. |
• | pfcACCESS_UNAVAILABLE—The button is visible, but gray and cannot be selected. |
• | pfcACCESS_DISALLOW—The button shows as available, but the command will not be executed when it is chosen. |
• | pfcACCESS_AVAILABLE—The button is not gray and can be selected by the user. This is the default value. |
|
|
|
1. | Define or add the command to be initiated on clicking the icon in the Creo Object TOOLKIT C++ application. |
2. | Optionally designate an icon button to be used with the command. |
3. | Designate the command to appear in the Customize Ribbon tab in the Creo Parametric Options dialog box. Note
Refer to the chapter on Ribbon Tabs, Groups, and Menu Items for more information. Also, refer to the Creo Parametric Help for more information on customizing the Ribbon User Interface.
|
4. | Save the configuration in Creo Parametric so that changes to the ribbon user interface appear when a new session of Creo Parametric is started. |
• | Small icon—<iconname.ext> |
• | Large icon—<iconname_large.ext> |
• | The legacy naming convention for icons <icon_name_icon_size.ext> will not be supported in future releases of Creo Parametric. The icon size was added as a suffix to the name of the icon. For example, the legacy naming convention for small icons was iconname16X16.ext. It is recommended to use the standard naming conventions for icons, that is, iconname.ext or iconname_large.ext. |
• | While specifying the name of the icon file, do not specify the full path to the icon names. |
• | <creo_loadpoint>\<datecode>\Common Files\text\resource |
• | <Application text dir>\resource |
• | <Application text dir>\<language>\resource The location of the application text directory is specified in the registry file.
|
• | Label—The message string that refers to the icon label. This label (stored in the message file) identifies the text seen when the button is displayed. If the command is not assigned an icon, the button label string appears on the toolbar button by default. |
• | Help—The one-line Help for the icon. This label (stored in the message file) identifies the help line seen when the mouse moves over the icon. |
• | Description—The message appears in the Customize Ribbon tab in the Creo Parametric Options dialog box and also when Description is clicked in Creo Parametric. |
• | MessageFile—The message file name. All the labels including the one-line Help labels must be present in the message file. Note
This file must be in the directory <text_path>\text or <text_path>\text\<language>.
|
• | Graphics window |
• | Model Tree |
• | Some dialog boxes |
• | Any area where you can perform an object-action operation by selecting an item and choosing a command to perform on the selected item. |
1. | Obtain the name of the existing pop-up menus to which you want to add a new menu using the trail file. |
2. | Create commands for the new pop-up menu items. |
3. | Implement access listeners to provide visibility information for the items. |
4. | Add an action listener to the session to listen for pop-up menu initialization. |
5. | In the listener method, if the pop-up menu is the correct menu to which you wish to add the button, then add it. |
|
|
|
• | Command—Specifies the command associated with the pop-up menu. |
• | Options – A pfcPopupmenuOptions object containing other options for the method. The options that may be included are:
|