> From: Keith Wolcott [mailto:[EMAIL PROTECTED]]
> I finally got around to testing my app with the 3.5 debug ROM
> I have Alert forms, CustomAlert forms and other forms that
> are all set as usable, modal, and save bits behind.
>
> When any one of the forms above is opened and then disposed
> of on the mainForm, some of the bits behind are not restored.
> Am I missing something obvious, or is this a bug in OS 3.5?
It's a debug feature of the 3.5 debug ROM, and it just did its job for you.
It deliberately doesn't restore saved bits behind dialogs and alerts.
Instead it just sends a frmUpdate event to your main form, which you must
handle if you have any custom drawn items (such as the line in your app).
By default the OS handles frmUpdate by redrawing all the standard form
objects but doesn't know to redraw your custom line.
This feature was added because normally you don't get the case where the
background bits can't be saved (due to insufficient memory) but it does
happen sometimes, usually to end users. Therefore many apps don't handle it
properly. And in 3.5, this situation can happen more often because color or
gray scale bitmaps consume more memory than black-and-white ones.
-slj-