Here's one I can't seem to find. This is a follow-up to the "Philosophy of
Forms VS Dialogs" thread. Dave Feddor indicated that for the situation that
a dialog would be fine.
Problem. Main Form has button that starts a Dialog. Main Form and Dialog
have their own event handlers. Main Form does not have Save Behind checked.
Dialog does have Save Behind checked. The first time the dialog is
activated from the Main Form and then released (e.g. Dialog's event handler
does not handle the "done" button - e.g. passes a handled as false), the
main form is redrawn AOK. However, on the 2nd and subsequent calls to the
dialog (from the button being pressed again on the Main Form), remnants of
the dialog screen are kept (as if it was now part of the save behind image)
and the main form is redrawn with these pieces of characters showing up in
between fields. These remnants are not from the dialog that just completed,
but rather the dialog call that occurred the time before this dialog call
(one call behind).
I have solved this problem by calling WinEraseWindow before invoking the
dialog and FrmDrawForm on the Main Form after the FrmDeleteForm for the
dialog. Also, this requires that the dialog have the Save Behind not
checked.
I have read where you can not depend on Save Behind redrawing the main form,
but that seems to be a different problem than I am getting. This happens on
POSE with debug roms 2.0 through 3.5 and on real machines with 3.2 and 3.5
roms with no exceptions.
So, is my solution the correct solution (I really don't like it) or did I
miss something.
Thanks to all that respond.
Gary Gorsline
Easy Business Software
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/