Murga-Projects Forums
LuaApplication with GUI - Printable Version

+- Murga-Projects Forums (http://www.murga-projects.com/forum)
+-- Forum: Project Forums (/forumdisplay.php?fid=1)
+--- Forum: MurgaLua - General (/forumdisplay.php?fid=2)
+--- Thread: LuaApplication with GUI (/showthread.php?tid=25)


LuaApplication with GUI - chrimo - 05-24-2007 05:05 AM

Hi,

it's my first time trying to create Luaprograms with graphic-features... ;-)

I've created a simple GUI with nice sliders and button. I have a long running native
Lua application.
Now I'm missing the glue of both ;-(

When application is running , the GUI freezes and I lose control. Application should
update the GUI.

Where is the trick when using graphics ?
Must the application running as coroutine or is there something special ?

Thanks for some ideas or tricks how professionals are realizing this
Bye
Christian


RE: LuaApplication with GUI - sk2007 - 05-24-2007 05:09 PM

can you post your sample code here so I can know what wrong?


RE: LuaApplication with GUI - chrimo - 05-24-2007 10:36 PM

Hi,

I found my problem and solved it Big Grin

The long running application has to call Fl:check() periodically!
Now the GUI is updated and works fine for me Big Grin

After a cleanup of my code I publish it for a testing

Thanks for all help
Bye
Christian