Hi,

 

 Just added support for global callbacks. It is now available on CVS only.
IUP 3.7 is scheduled for November 2012.

 

  Here is an example:

 

function gbutton(but, press, x, y, status)

  print(but, press, x, y, status)

end

 

iup.SetGlobal("INPUTCALLBACKS", "Yes")

iup.SetGlobalCallback("GLOBALBUTTON_CB", gbutton)

 

Best,

Scuri

 

From: Dave Atkinson [mailto:davea...@us.ibm.com] 
Sent: terça-feira, 21 de agosto de 2012 18:21
To: iup-users@lists.sourceforge.net
Subject: [Iup-users] Global callbacks in Lua?

 

The discussion of global attribute INPUTCALLBACKS mentions that callbacks
like GLOBALKEYPRESS_CB and GLOBALBUTTON_CB can be established using
IupSetFunction. But there is no equivalent for IupSetFunction in Lua. Is
there a way to set up these global callbacks in Lua, and if so, how would
that be accomplished?

Dave Atkinson 

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Iup-users mailing list
Iup-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/iup-users

Reply via email to