Re: [Iup-users] Extra data on IUP objects in LUA

2017-01-10 Thread Antonio Scuri
Hi, Yes, it is a permitted operation. Best, Scuri On Tue, Jan 10, 2017 at 6:30 PM, john huttley 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{} > > bo

[Iup-users] Extra data on IUP objects in LUA

2017-01-10 Thread john huttley
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 =