Hi team,
I can't set the mousemove_cb on matrixex, but it works on matrix.
This is when you are storing the handle in a table
--System--
Lua 5.3.4 Copyright (C) 1994-2017 Lua.org, PUC-Rio
IUP 3.25 Copyright (C) 1994-2018 Tecgraf/PUC-Rio
IUP Info
System: Win7
System Version: 6.1.7601 Service Pack 1 (x64)
Screen Size: 2560x1400
Screen Depth: 32
--Error--
string "iuplua.lua"]:139: bad argument #3 to 'SetCallback' (Invalid
function when set callback.)
stack traceback:
[C]: in function 'iuplua.SetCallback'
[string "iuplua.lua"]:139: in metamethod '__newindex'
[string "iup.dostring"]:22: in main chunk
--test program --
require( "iuplua" )
require( "iupluacontrols" )
iup.SetGlobal("UTF8MODE","YES")
mousemove_cb = function(self,l,c)
end
boxes = {}
print("Do normal")
boxes["normal"]= iup.matrix {}
boxes["normal"].mousemove_cb=mousemove_cb
print("Done normal")
print("Do ex")
boxes["ex"]= iup.matrixex {}
boxes["ex"].mousemove_cb=mousemove_cb
print("Done ex")
===
Do normal
Done normal
Do ex
===
I have had issues in the past where the workaround is to assign a local
local temp = boxes["ex"]
temp.mousemove_cb=mousemove_cb
with matrixex this doesn't work.
What is happening here?
Regards,
John
_______________________________________________
Iup-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/iup-users