Category Creo Parametric user interface, Object uiCmdAccess

Callback uiCmdAccessFn


Description
The callback function attached to a Creo Parametric command by passing it to either ProCmdOptionAdd, ProCmdActionAdd, or ProCmdAccessFuncAdd. uiCmdAccessFn specifies the access allowed to the command.
Synopsis
#include <ProUICmd.h>
uiCmdAccessState(*uiCmdAccessFn)(
uiCmdAccessMode access_mode
/* (In)
Whether or not to allow error messages. Can be ignored by the callback function.
*/
)
Returns
One of the values of uiCmdAccessState, showing which access is permitted.

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