Object ProMfgproctable

Function ProMfgproctablePushbuttonAdd


Description
Adds a new button to a menu in the manufacturing Process Manager dialog. The button is added to the end of the indicated menu. This should be called before the Process Manager dialog is shown.
Licensing Requirement
TOOLKIT for Advanced NC
Synopsis
#include <ProMfgproctable.h>
ProErrorProMfgproctablePushbuttonAdd(
char* menu_name
/* (In)
The menu name.
*/
char* button_name
/* (In)
The button component name.
*/
wchar_t* button_label
/* (In)
The button label.
*/
wchar_t* button_helptext
/* (In)
The button help text.
*/
ProMfgproctableItemAccessFunction access_function
/* (In)
The access function for the button.
*/
ProMfgproctableItemActionFunction action_function
/* (In)
The action function for the button.
*/
ProAppData application_data
/* (In)
Application data to pass to the access and action functions. Can be NULL.
*/
)
Returns
PRO_TK_NO_ERRORThe function succeeded.
PRO_TK_BAD_INPUTSOne or more input arguments was invalid.
PRO_TK_E_NOT_FOUNDCould not find the parent menu.
PRO_TK_E_FOUNDA button with this name already exists.

Manual References:

  1. Production Applications: NC Process Manager: Accessing the Process Manager User Interface
  2. Production Applications: NC Process Manager: Accessing the Process Manager User Interface
  3. Production Applications: NC Process Manager: Example 4: To Add a Submenu to the Manufacturing Process Table

Sample Code References:

  1. pt_mfg_proctable ( PTMfgProcTable.c )
  2. pt_mfg_proctable ( PTMfgProcTable.c )
  3. pt_mfg_proctable ( PTMfgProcTable.c )
  4. pt_mfg_proctable ( PTMfgProcTable.c )