![]()  | 
![]()  | 
![]()  | 
![]()  | 
Add several callback entries to a callback list
void PtAddCallbacks(
        PtWidget_t *widget,
        unsigned long callback_type,
        PtCallback_t const *callback_defs,
        unsigned int num_callbacks );
ph
This function adds the number of callbacks specified by num_callbacks to the callback list specified by callback_type (e.g. Pt_CB_ACTIVATE).
![]()  | 
Some types of callback resources have special routines that you should use instead of this one: | 
The callback_defs argument contains the address of an array of PtCallback_t structures. See the Photon Widget Reference.
PtWidget_t *widget
PtCallback_t callbacks[]={
    my_first_callback, NULL ,
    my_second_callback, "Number 2",
    my_last_callback, NULL
    };
…
PtAddCallbacks( widget, Pt_CB_ACTIVATE, callbacks, 3 );
Photon
| Safety: | |
|---|---|
| Interrupt handler | No | 
| Signal handler | No | 
| Thread | No | 
PtAddCallback(), PtAddEventHandler(), PtAddEventHandlers(), PtAddFilterCallback(), PtAddFilterCallbacks(), PtAddHotkeyHandler(), PtRemoveCallback(), PtRemoveCallbacks(),
PtCallback_t in the Photon Widget Reference
Managing Widgets in Application Code chapter of the Photon Programmer's Guide
![]()  | 
![]()  | 
![]()  | 
![]()  |