>It would be nice if you could set the form to automatically clear a
blank space the size of the form when the form initializes,
Palm OS < 3.5 does do this when the form is modal and doesn't when it's not.
There was an assumption that if the form wasn't modal, then there was only one
at a time, which meant that it was unneccessary to erase the form.
If you change your code so that there is only one non modal form at a time, by
closing the form being left, you code should work fine with all versions of Palm
OS. Note that this is how the standard FrmGotoForm mechanism works. It closes
the old form and then opens the new one, as opposed to dialogs which are modal
and temporarily obscure the current form. So try FrmGotoForm.
With color, it turns out that the background color of the form may be different
than what's on the screen, so clearing the form's area is neccessary. And that
leads to the reason behind not drawing to the screen before FrmDrawForm erases
everything.
-Roger Flores
"D. DeVecchio" <[EMAIL PROTECTED]> on 04/25/2000 05:32:01 PM
Please respond to "Palm Developer Forum" <[EMAIL PROTECTED]>
Sent by: "D. DeVecchio" <[EMAIL PROTECTED]>
To: "Palm Developer Forum" <[EMAIL PROTECTED]>
cc: (Roger Flores/HQ/3Com)
Subject: Re: Bug in OS 3.5? Would someone else please try this?
Bob Ebert,
On Tue, 25 Apr 2000 18:27:12 +0200, you said:
>
> The whole thing looks like a bug to me. What effect are you trying to make?
>
> You're erasing before anything has been drawn. That will almost always
> cause some weird bug.
I am trying to erase the screen before drawing my new form.
I have an alarm call. You have to erase the screen or the form that was
on the screen before you called "FrmInitForm" and "FrmDrawForm" is still
there. If you just call WinDrawForm by itself it just draws the form on
top of the form that is already there and you have a mess.
It would be nice if you could set the form to automatically clear a
blank space the size of the form when the form initializes, but I guess
I can understand why that isn't the standard.
Still, there should be SOME way to erase the form window before drawing
the form because
FrmDrawForm
FrmEraseFrom
FrmDrawFrom
seems kind of redundant.
What do other people do to clear the window?
derik
email: [EMAIL PROTECTED]
WWW: http://www.pobox.com/~derik
--
For information on using the Palm Developer Forums, or to unsubscribe, please
see http://www.palm.com/devzone/mailinglists.html
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palm.com/devzone/mailinglists.html