> A new Lua function like iup.SetGlobalCallback("GLOBALKEYPRESS_CB",
> function_reference) sounds fine to me.
> The only other idea I came up with would be somehow to make it more like
> defining other IUP control callbacks e.g.
>   function GlobalThing:globalkeypress_cb() ... end where "GlobalThing" was
> some predefined global Lua object representing the entire IUP application.
> But I haven't seen any precedent for that sort of concept in IUP, so I
suspect
> introducing a new SetGlobalCallback function would be easier to do.

   Ok. I'll try that.

 
> Since I have not been able to play with the global callbacks, I'm just
making
> assumptions about what they do. I would assume, for instance, that
> GLOBALKEYPRESS_CB would be called for any keypress that happens when
> the application is in the foreground, and that any relevant control (such
as
> iup.text) would also have it's KEYPRESS_CB callback triggered for that
same
> keypress, assuming it had focus. Am I guessing correctly?

   Yes, you are.

Best,
Scuri



------------------------------------------------------------------------------
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