09-02-2008 09:10 AM
I'm using a Mainscreen in an application for the primary screen, and have a communication thread for interaction with various servers. The problem I'm having is when the users selects an option from the menu that requires the app to communicate, I want the mainscreen to display something in the Status line at the bottom of the mainscreen. Then when the communication is complete, I want the Status line to be cleared.
My current approach has been to override paint(graphics) on one of the field managers I've added to the mainscreen so that it queries a status variable shared with the communication thread, which for the most part works except some times the paint code doesn't always seem to be called once the user has selected the menu item from the mainscreen that requires communication (or there is several seconds of lag before paint is called to realize there is a change needed).
At one point I tried having the menu item selected pop/push the mainscreen to force it to redisplay, but there is still a lag before the mainscreen displays.
Are there any suggestions how to make the Status line changes more real time? Is there a better way of doing this?
09-02-2008 09:48 AM
09-02-2008 09:56 AM
Thanks for the quick reply.
I'm using the RuntimeStore to store an instance of my communication thread so my mainscreen and interact with it, so I should do the same with my mainscreen so the communication thread can communicate with it? For some reason I thought you only wanted to do this in one direction not both, but I'll give it a try.