Dang it! Scrap that last email.
On 1/10/2017 at 4:54 PM, Antonio Scuri <antonio.sc...@gmail.com> wrote:
Hi,
Yes, it is a permitted operation.
Best,
Scuri
On Tue, Jan 10, 2017 at 6:30 PM, john huttley <j...@mib-infotech.co.nz> wrote:
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
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Iup-users mailing list
Iup-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/iup-users