Event library EvntAdd() EvntDataAdd()
Programming guideline of WinDom

EvntDataAttach()

NAME

EvntDataAttach - bind a function with data to a GEM event.

PROTOTYPAGE

int EvntDataAttach( WINDOW *win, int ev, void *proc, void *data);

PARAMETERS

win:
window targeted or NULL,

ev:
event to bind (see event list),

proc:
function address to bind,

data:
user data pointer.

DESCRIPTION

This function is similar to EvntAttach(). The difference is EvntDataAttach() binds a local pointer data to the object. This data is read by the binded function as a second parameter. The binded has the following prototype :

     	void function( WINDOW *win, void *data);
See EvntAttach() for a detailled description.

EXAMPLES

         EvntDataAttach( NULL, WM_XBUTTON, AppButton, "Button event");
SEE ALSO

EvntDataAdd(), EvntAttach(), EvntDelete(), EvntExec(), EvntFind(), EvntWindom().