I'm not sure what the cause of what you're seeing is, but I can provide
some more information which hopefully will help you figure it out.
About the active window not being correct: the first thing that FrmDrawForm
does, is set the form's window to be the active window (if it isn't
already). So when FrmDrawForm returns, I'd be quite surprised if you don't
have the correctly active form, or a bad clipping region. Just another
reason to not draw before calling FrmDrawForm :-)
Assuming this is happening inside a FrmEraseForm call (which it'd be when
closing the find form), the clipping region is indeed set to the bounds of
the closing form, i.e. the find slip. Why is that causing trouble for you?
If you draw outside of the bounds, no big deal, nothing will happen and the
redrawing will just complete faster for objects outside of the clipping
region since the drawing is a noop. Well, unless the display needs to
change outside of the spot that Find was covering, like if you've got a
clock. In that case, if you really need to then save the clip rectangle,
reset it, draw as you want and then restore the clip rectangle.
Or are you saying that the FrmDrawForm erases parts of the form that aren't
in the clipping region?
-David Fedor
Palm Developer Support
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palm.com/devzone/mailinglists.html