vcanim.gif (8357 bytes)SAA_dialogitemAddCallback
Home ] Sales ] Products ] Services ] Support ] Downloads ]

 

Please note that it is usually much more convenient to build dialogs that perform callbacks with Tk, than to use Softimage dialogs. Callbacks are integrated into most Tk widgets. See SoftWishSliders for an example of   TK dialogs which performs callbacks.

    The SoftWish procedure SAA_dialogitemAddCallback differs from the corresponding SAAPHIRE C language routine in the definition of the callback, and the callback functions themselves are different too.In Tcl both the callback function and it's data are registered directly as a single parameter, a string of code. C can't do this, so it needs to registers 2 parameters, a pointer to a function (func), and a pointer some data to pass to this function (cbd). Also SoftWish tracks callbacks by handles and requires a parameter for the handle. SAAPHIRE C code doesnt do this. Here are the signatures of the SoftWish and SAAPHIRE versions of SAA_dialogitemAddCallback:


  • SoftWish - TCL:


    SI_Error SAA_dialogitemAddCallback

    (

    const SAA_CustomContext context,
    int dgItemId,
    const char command
    cont char handleName
    )

  • SAAPHIRE - C:
    
    SI_Error SAA_dialogitemAddCallback
    

    (

    const SAA_CustomContext context,
    int dgItemId,
    SAA_CustomDialogItemCallback func,
    void *cbd
    );

 

SAA Index ] Examples SAA calls index ]

copyright Video-Collage Inc.