At 06:22 AM 11/4/2002 -0700, you wrote:
>--- Clifford Jones wrote:
> > The simulator will not allow a modal dialog box to be
> > displayed anywhere except at the bottom of the screen
> > without showing an error.
> >
> > This type of artifical limitation ...
>
>This is not an artificial limitation. The OS can not handle screen
>updates properly unless dialogs are at the bottom of the screen and are
>the full width. This has been discussed previously in this forum.
>Search the archives for "full width".
Inspecting the archives for "full width" leads me to ask the question:
How do we do "Please wait" indicators?
Peter alluded to Launcher doing it and that perhaps it wasn't doing it
properly, but didn't offer any solution. (Sorry Peter, don't take this the
wrong way!)
I have just done one in the middle of drawing a form, i.e. I start drawing
a form, need to calculate some stuff, pop up a "Please wait" and close it
down, then continue drawing the form (feel free to comment on the legality
of doing this). The reason is that the user doesn't get a totally blank
screen while I calculate.
I had problems with "not setting the current draw window" when executing
window functions after my popup had been cleared away. I checked out the
forum and even following the advice didn't help.
I eventually got to:
WinPushDrawState();
window = WinGetDrawWindow();
form = FrmInitForm(PleaseWaitForm);
FrmDrawForm(form);
// Do some calculations
FrmEraseForm(form);
FrmDeleteForm(form);
WinSetDrawWindow(window);
WinPopDrawState();
which does what I want and doesn't give me any warnings on POSE.
If we aren't allowed to do this anyway (since the form is not full width)
I'm thinking I should just paint a bitmap rather than using a form.
Suggestions?
Matt
PS. I know that it is against Palm's religion to have "Please wait"
indicators, but when you are pushing the pedal to the metal and still don't
have enough speed, then people will think your app has crashed...
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/