Make app wait
I have an app I'm making where the user presses a key and a series of events occur. The problem is that during these events I need to prevent the user from pressing another key. Is there a way to lock the program somehow until my events complete?
|
Start a separate thread to perform the processing, and put up a modal dialog, like "Processing...".
|
Thanks
Thanks for the help. I figured it out a different way before I came back and saw your response. It was an audio file I was waiting for so I put a "do/while" loop in which did nothing while the player was in the started state. Don't know if it's the best way but it seems to work fine.
|
Bad idea - this will result in the OS dumping your code out as "unresponsive" when run on the device.
|
Thanks again, you are a wealth of knowledge. I think I need to figure out this thread thing obviously.
|
All times are GMT -5. The time now is 03:58 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.