[Iup-users] [Q] Find out the name of the action?

Antonio Scuri scuri at tecgraf.puc-rio.br
Sat Aug 19 17:00:57 GMT+3 2006


At 06:55 19/8/2006, Ingo Hohmann wrote:
>Hi Antonio,
>I would like to be able to find out, what action triggered a callback.
>Is this possible?
>IupGetActionName seemed to be the perfect fit, until I read the
>explanation, followed
>it to IupGetFunction, IupGetCallback. And now I am thoroughly confused ;-)

   IupSetCallback does not associates a name to a callback. It 
directly associates a function to a callback. It is faster than IupSetFunction.

   IupSetFunction associates a function to a name. And 
IupSetAttribute associates that name to a callback.

   So IupGetActionName makes sense only when IupSetFunction is used. 
If you use the new IupSetCallback then there is no name to be retreived.

Best,
scuri




More information about the iup-users mailing list