I want to create a form with a label and close the form after some other operations (I don't want to use a timer because the time consumed by those operations is uncertain), but the label never showed up. Moreover,
The thread executing the Lua code is the same thread responsible for the GUI. Either let the thread process new messages before doing the work, or do the work asynchronously.
Code:
...
myform.show()
processMessages()
-- do stuff
myform.destroy()
_________________
I don't know where I'm going, but I'll figure it out when I get there.
The thread executing the Lua code is the same thread responsible for the GUI. Either let the thread process new messages before doing the work, or do the work asynchronously.
Code:
...
myform.show()
processMessages()
-- do stuff
myform.destroy()
Thanks, Penguin. It works perfectly now.
BTW, I tried to use the thread class to fix the problem, but it didn't work. I might have done something wrong. _________________
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum