Category Creo Parametric user interface, Object uiCmdCmd

Callback uiCmdCmdActFn


Description
The callback function attached to Creo Parametric commands by calls to ProCmdOptionAdd() or ProCmdActionAdd(). The callback is called when the command is executed.

For pushbuttons, the callback must define the logic of the command.

For checkbuttons, the callback must get the value of the button with ProMenubarmenuChkbuttonvalueGet(), then define the logic of the command.

For radio groups, the callback must get the selected item with ProMenubarmenuRadiogrpValueGet(), then define the logic of the command.

Synopsis
#include <ProUICmd.h>
int(*uiCmdCmdActFn)(
uiCmdCmdId command
/* (In)
The identifier of the action or option
*/
uiCmdValue* p_value
/* (In)
For options passed to ValueGet functions. Ignored for actions.
*/
void* p_push_command_data
/* (In)
Not used
*/
)
Returns
The return value is ignored.

Manual References:

  1. User Interface: Menus, Commands, and Popupmenus: Adding a PushButton
  2. User Interface: Menus, Commands, and Popupmenus: Adding a Check Button to the Ribbon User Interface