Category Creo Parametric user interface, Object ProCmd

Function ProCmdCmdIdFind


Description
Finds the identifier of the specified action or option.
Replacement in Object TOOLKIT: pfcSession::UIGetCommand
Synopsis
#include <ProUICmd.h>
ProErrorProCmdCmdIdFind(
char* cmd_name
/* (In)
The name of the action or option.
*/
uiCmdCmdId* cmd_id
/* (Out)
The address of the identifier of an action or option. This can be a null pointer.
*/
)
Returns
PRO_TK_NO_ERRORThe function successfully found the identifier.
PRO_TK_GENERAL_ERRORThe function failed to find the identifier.

Manual References:

  1. User Interface: Menus, Commands, and Popupmenus: Using the Trail File to Determine UI Names
  2. User Interface: Menus, Commands, and Popupmenus: Manipulating Existing Commands
  3. User Interface: Menus, Commands, and Popupmenus: Manipulating Existing Commands
  4. User Interface: Menus, Commands, and Popupmenus: Creating Commands for the New Popup Menu Buttons

Sample Code References:

  1. pt_async ( TestAsync.c )
  2. pt_examples ( TestMenubar.c )
  3. pt_userguide ( UgPopupmenus.c )
  4. pt_userguide ( UgPopupmenus.c )
  5. pt_userguide ( UgPopupmenus.c )
  6. pt_userguide ( UgPopupmenus.c )
  7. pt_userguide ( UgPopupmenus.c )
  8. pt_userguide ( UgPopupmenus.c )
  9. pt_userguide ( UgPopupmenus.c )
  10. pt_userguide ( UgPopupmenus.c )
  11. pt_userguide ( UgPopupmenus.c )