I am trying to create a modal dialog and display it using FrmDoDialog. The only problem is that the form has no buttons to be pressed.
I display the form when I receive a notification and do a FrmDeleteForm when I receive another notification. In the midst I save the FormPtr.
On doing a delete the screen space where the modal dialog was drawn goes blank and shows remnants of form. Using FrmEraseForm etc. does not help.
You need to make sure you don't alter form controls before the form is originally drawn. Use the pattern:
FrmInitForm FrmDrawForm ...set form controls... FrmDoDialog ...read form controls... FrmDeleteForm
the form won't be redrawn by FrmDoDialog if it's already on the screen.
-- Ben Combee, Technical Lead, Developer Services, PalmSource, Inc. "Combee on Palm OS" weblog: http://palmos.combee.net/ Developer Fourm Archives: http://news.palmos.com/read/all_forums/
-- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
