From: John L. <jla...@gm...> - 2008-02-01 05:21:35
|
On Feb 1, 2008 12:05 AM, A. Klingenstein <kli...@gm...> wrote: > I have a Windows app in C which can and mainly does load plugins to "do > the actual work". > > One of those plugins is a Lua interpreter allowing users to write their > scripts. I want to make Lua scripts which can do GUI stuff and not only > "backend", non-visual things. I wanted to use wxLua for that, but the > main application already has its own normal Windows event message pump. > How can I add one or possibly several (from several different Lua GUI > scripts) mainloops? > > Are threads my only solution for this problem or are there alternatives > I haven't seen yet? I am not familiar with how to replace the wxWidgets event loop, but from the messages I've seen on the wx-users mailing list I think people have been told to use the wxWidgets message loop. However, I think it would be best to search their mailing list to be sure. If you can find a way that will work it would be possible to change the wxLua module to behave differently depending on the value of some unique Lua global variable. Regards, John |