I've been using IUP Lua for quite some time, at least for me. Something about 2 or 3 months, maybe, but I don't remember. I like Lua, and iuplua is really some fucking useful module, but a question about MainLoop().
I've not read any documentation on IUP Lua, just based upon the examples provided with the installation, but I think IUP.CLOSE(), when returned by any subroutine should kill the MainLoop(), am I wrong? Basically, I'd like to know something more in depth about MainLoop(), 'cause I stumbled (and I think it's not the first time) into an issue: how may I arbitrary terminate the MainLoop() function? Say, after 3 seconds it is running, I want it to die, or something around the shape. But mostly important, how may I run commands while the loop is running? For instance, I want an action to be executed for each iteration, say iup.Message. Something around multithreading might do the trick, but I really believe that Lua does not support multithreading, correct me if I'm wrong. So, yes, here are several doubts from me, but the most important thing I need to know is how can I execute actions while iup.MainLoop() runs, say per each loop iteration. Also, does MainLoop() support any argument? And if it does, how do the arguments act about the function working? How about iup.MainLoopLevel() and so on, I've found some functions like this one determining the execution of iup.MainLoop() in the IUP Lua examples. May I find anywhere the code defining the MainLoop() function? I think it might help me. I really could never find the "iuplua" module file anywhere on my HDD, but I don't think Lua would use an in-built module, it wouldn't really make sense, so the file must be already here, just I can't find it. Thank you. ------------------------------------------------------------------------------ See everything from the browser to the database with AppDynamics Get end-to-end visibility with application monitoring from AppDynamics Isolate bottlenecks and diagnose root cause in seconds. Start your free trial of AppDynamics Pro today! http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk _______________________________________________ Iup-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/iup-users
