Category External objects, Object ProExtobj

Function ProExtobjCBEnable


Description
Updates the enabled_cbs field in the data structure ProExtobjCallbacks, which governs which callbacks are active.
 If to_enable == TRUE, enabled_cbs | action_attr else enabled_cbs & ~action_attr
Synopsis
#include <ProExtobjCB.h>
ProErrorProExtobjCBEnable(
ProExtobjClass* extobjclass
/* (In)
The handle to the external object class
*/
int action_attr
/* (In)
A bitmask constructed from types of notify actions (such as PRO_EO_ALT_DISPLAY or PRO_EO_ALT_SELECT)
*/
int to_enable
/* (In)
A Boolean flag that specifies whether to perform the action
*/
)
Returns
PRO_TK_NO_ERRORThe function successfully updated the information.
PRO_BAD_INPUTSThe external class handle is invalid or you attempted to enable callback for an unsupported action.

Manual References:

  1. Event-driven Programming: External Objects: Callbacks for External Objects
  2. Event-driven Programming: External Objects: Callbacks for External Objects

Sample Code References:

  1. pt_examples ( TestExtobj.c )