Category Creo Parametric user interface, Object ProCmd

Function ProCmdAccessFuncAdd


Description
Adds an accessibility function to the specified action or option.
Synopsis
#include <ProUICmd.h>
ProErrorProCmdAccessFuncAdd(
uiCmdCmdId cmd_id
/* (In)
The identifier of the action or option
*/
uiCmdAccessFn access_func
/* (In)
The function to be called to determine the accessibility of the action or option
*/
uiCmdAccessId* access_id
/* (Out)
The pointer to the identifier of the accessibility function
*/
)
Returns
PRO_TK_NO_ERRORThe function successfully added the accessibility function.
PRO_TK_GENERAL_ERRORThe function failed to add the accessibility function.

Manual References:

  1. User Interface: Menus, Commands, and Popupmenus: Manipulating Existing Commands
  2. User Interface: Menus, Commands, and Popupmenus: Manipulating Existing Commands

Sample Code References:

  1. pt_examples ( TestMenubar.c )