>I changed the foreground color to something other than black (say green).
>I then drew an old style b/w bitmap and as expected it was green.  I then
>did a FrmAlert() and dismissed the form.  I again drew the bitmap and it
>was black.
>
>It seems FrmAlert (and I think FrmCustomAlert) are not called the push/pop
>API functions to save the current pallete state...


You could well be right, but I think it would be better defensive coding to
set the foreground color yourself right before drawing something.  And
based on your description, the palette isn't being changed; just the
selected foreground color.

This is the same idea as setting the current font.  You really should leave
it the way it was, but setting it again at the right time is cheap and will
prevent your app from looking bad if some hack or OS routine forgot to
restore the value.

That said, it is still a bug and I'll have someone check if it still happens.

-David Fedor
Palm Developer Support


Reply via email to