At 2:58 PM +0100 21-03-00, Enrico Pavesi wrote:
>Can someone explain why this code leaves hole in the calling form ??
Skip the calls to FrmSetActiveForm. FrmDoDialog does that for you.
Probably the first FrmSetActiveForm causes something to happen before the
bits are saved by the dialog. (like there's a cursor blinking problem or
something.) Then when the dialog disappears and the bits are restored, the
'hole' is restored too.
You probably don't need the call to FrmDrawForm at the end either.
FrmDoDialog should make sure to restore the bits or refresh the form when
it closes.
..unless of course something was modified in the course of running the
dialog that requires that the form underneath really be redrawn. In that
case, you could turn off the 'save behind' flag for your dialog and save
yourself some trouble.
--Bob
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palm.com/devzone/mailinglists.html