Scott Erickson wrote:
Im looking to just pop up a box over the form that says please wait, or connection to server, or something like that. Its for a task that will take 3-6 seconds if there is a good connection to the internet. Or the netsocket functions will timeout after 20 secs. I simply want to put a please wait box over the current form. I dont need to update this text in anyway, and I dont need user input (but adding a cancel button there might be a good idea, but its not needed since the network lib fucntions have a pretty low timeout value).

You can always just do it manually:

Before you start whatever it is, pick a rectangle on the screen that
you want to draw your Please Wait thingy into.  Then, save its
contents with WinSaveBits(), draw a rectangle frame around it
with WinDrawRectangleFrame(), using a frame type of dialogFrame or
something along those lines (experiment), then draw the string
"Please Wait" centered in the middle of this rectangle with
WinDrawChars().

Then, do your processing, then finally do WinRestoreBits() to
put the screen back like it was before you messed with it.

Another idea, although I haven't tried this one:  define a modal form
resource, then do FrmInitForm() on that, then do FrmDrawForm(), then
do whatever you have to do that takes time, then do FrmDeleteForm().
I'm not sure that the event handling will all work right (it may be
necessary to return to the main event handler between these calls),
but it might work without processing any events, and it would be easy
to try.

  - Logan

--
For information on using the PalmSource Developer Forums, or to unsubscribe, 
please see http://www.palmos.com/dev/support/forums/

Reply via email to