Hi team,

I want to generalise  a call back (mouse over on a matrix)

The call back only ever gets "self". So can I add a field to self like this?


box=iup.matrix{}

box.dat= mydata   <<=== Some custom data

box.mousemove_cb = my_cb(self,l,c)



Where I can then use the one CB function.


my_cb = function (self,l,c)

self.dat  <do something>

end



Is that a permitted use of the IUP object?

Is there a better way?


Regards,

--Dad


------------------------------------------------------------------------------
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today. http://sdm.link/xeonphi
_______________________________________________
Iup-users mailing list
Iup-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/iup-users

Reply via email to