Thanks Keith and Ben, that's what I was afraid of. OK, so FrmEraseForm does more than the documentation says, and FrmDrawForm doesn't undo it. It'd be really great to say so in the documentation.
And there's not a single call anywhere to clear the current form? I need local variables and at least 2 OS calls to clear a form safely? Ouch. Thanks for the enlightenment, and again, it'd be great to have this clearly documented in the reference. Dave Johnson In article <66178@palm-dev-forum>, "Ben Combee" <[EMAIL PROTECTED]> wrote: > "Keith Wolcott" <[EMAIL PROTECTED]> wrote in message > news:66168@palm-dev-forum... > > > > Dave, > > > > My guess is that you are not clear about what FrmEraseForm() does. It > > does not erase the pixels on the form, but erases the form itself so > > that there would then be no valid draw window. You do not want to > > call FrmEraseForm() before FrmDrawForm(). > > Exactly. If you just want to clear the window, get the dimensions of > the form, then use WinEraseRectangle to clear it to the background > color. -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/
