Category Creo Parametric user interface, Object ProCmd

Function ProCmdRadiogrpValueSet


Description
Sets a new value for the radio group in the menu of Creo Parametric.

This function affects the top-level Creo Parametric Ribbon UI only.

This function is executed only in the set_value_cb specified by ProCmdOptionAdd().

Synopsis
#include <ProUICmd.h>
ProErrorProCmdRadiogrpValueSet(
uiCmdValue* cmd_value
/* (In)
The second argument of the set_value_cb function.
*/
ProCmdItemName selected_item
/* (In)
The name of the item in the radio group to be selected. The memory must be static or preallocated. In the second case, do not free the memory.
*/
)
Returns
PRO_TK_NO_ERRORThe function successfully set the value.
PRO_TK_GENERAL_ERRORThe function failed to set the value.

Manual References:

  1. User Interface: Menus, Commands, and Popupmenus: Adding a Radio Button Group to the Ribbon
  2. Technical Summary of Changes for Creo 11.0.0.0: Functions superseded from Creo 1.0 to Creo 11.0