>>Hmm....So I've got an app that has mostly black screens being filled and
>>updated with bitmaps at various times and in various offscreen manners.
>>While switching between forms, I see a brief but distracting flash of
>>white. What is the best/correct way/sequence of calls to, say,
>>FrmDrawForm, or my EraseAllScreen() routine or whatever else that might
>>prevent this flashing? I'd rather not embed a full-screen bitmap or
>>something in the form, (though I guess an all-black one with compression
>>wouldn't be the end of the world)....
>
>Why not set the default background color to black when your program
>starts? Then the screen would be erased in black, and you'd not get a >flash.
Ben:
I thought that would work myself but didn't. Is this simply WinSetBackColor() or is there some other more general method for setting the "default background color?" (Isn't WinSetBackColor set on a window-by-window basis? (Meaning I can't do it till each form is initialized or I'd get a "Bad Window" err?)
Maybe I'm being particularly dense, but all variations of this that I've tried still have the flash. (I should point out I've got a custom 8-bit palette and I'm setting the display to 8-bit depth and using this palette (SetPalette()), so maybe that is affecting things in some atypical manner. Though I can't really understand why.)
Bit baffled, zane
-- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
