Category Creo Parametric user interface, Object ProCmd

Function ProCmdBracketFuncAdd


Description
Adds a function to be called before and after the callback function when the specified action or option is executed.
Synopsis
#include <ProUICmd.h>
ProErrorProCmdBracketFuncAdd(
uiCmdCmdId cmd_id
/* (In)
The identifier of the action or option
*/
uiCmdCmdBktFn bracket_func
/* (In)
The function to be called before and after execution
*/
char* bracket_func_name
/* (In)
The name of the function to be called before and after execution
*/
void** pp_bracket_data
/* (In)
The pointer to the data to be passed to the function
*/
)
Returns
PRO_TK_NO_ERRORThe function successfully added the bracket function.
PRO_TK_GENERAL_ERRORThe function failed to add the bracket function.

Manual References:

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

Sample Code References:

  1. pt_async ( TestAsync.c )
  2. pt_examples ( TestMenubar.c )