Category Notifications, Object ProNotification

Function ProNotificationSet


Description
Sets the notification function to be called for the specified action. NOTE: If you call ProNotificationSet() more than once with the same event type, the existing callback is overwritten with the one supplied in the later call.
Replacement in Object TOOLKIT: wfcWSession::AddModelRetrievePreListener
Synopsis
#include <ProNotify.h>
ProErrorProNotificationSet(
ProNotifyType type
/* (In)
The action for which you want to be notified
*/
ProFunction notify_function
/* (In)
The function to be called for the action
*/
)
Returns
PRO_TK_NO_ERRORThe function successfully set the function.
PRO_TK_GENERAL_ERRORThere was a general error.
PRO_TK_BAD_INPUTSOne or more of the arguments are invalid.

Manual References:

  1. Pro/DEVELOP to Creo Parametric TOOLKIT Function Mapping: Equivalent Pro/DEVELOP Functions
  2. Core: Parameters: Notification Functions
  3. Core: Parameters: Notification Functions
  4. Event-driven Programming: Notifications: Using Notify
  5. Event-driven Programming: Notifications: Using Notify
  6. Data Management: Windchill Operations: CheckIn
  7. Data Management: Windchill Operations: CheckIn
  8. User Interface: Ribbon Tabs, Groups, and Menu Items: Tab Switching Events
  9. User Interface: Ribbon Tabs, Groups, and Menu Items: Tab Switching Events
  10. User Interface: Menus, Commands, and Popupmenus: Registering Notifications to Create and Destroy Popup Menus
  11. User Interface: Menus, Commands, and Popupmenus: Registering Notifications to Add and Destroy Content to a New Pane
  12. User Interface: Menus, Commands, and Popupmenus: Registering Notifications to Add and Destroy Content to a New Pane
  13. Drawings: Modifying Drawing Tables
  14. Drawings: Modifying Drawing Tables

Sample Code References:

  1. pt_async ( TestAsync.c )
  2. pt_examples ( TestMultiCADFile.c )
  3. pt_examples ( TestMultiCADFile.c )
  4. pt_examples ( TestMultiCADFile.c )
  5. pt_examples ( TestMoldLayout.c )
  6. pt_examples ( TestMoldLayout.c )
  7. pt_examples ( TestMoldLayout.c )
  8. pt_examples ( TestMoldLayout.c )
  9. pt_examples ( TestMoldLayout.c )
  10. pt_examples ( TestMoldLayout.c )
  11. pt_examples ( TestMisc.c )
  12. pt_examples ( TestNotify.c )
  13. pt_examples ( TestNotify.c )
  14. pt_udf_examples ( PTUDFExMain.c )
  15. pt_udf_examples ( PTUDFExMain.c )
  16. pt_userguide ( UgPopupmenus.c )
  17. pt_userguide ( UgNcseq.c )
  18. pt_userguide ( UgNcseq.c )
  19. pt_userguide ( UgWeld.c )
  20. pt_userguide ( UgWeld.c )