At 12:19 PM -0600 4/4/01, Vitaly_Romanishko wrote:
>I have custom bitmap where user can draw something. In OS 3.5:
>If user tryes to leave FormAlert pops up asking about saving his work. When
>user
>closes FormAlert bitmap image is gone although rest of form objects were
>restored.
>Since bitmap custom drawing was not saved into database it is gone for good.
>
>If I run my program on Palm OS 3.1 - 3.3 my bitmap is restored after popping
>up alerts
>or help forms over it.
>
>What do I have to do to make it work in 3.5 ?
Respond to the form update event by redrawing the bitmap.
No version of the Palm OS will guarantee the bits under a form can be preserved. It
has to do with the amount of available memory when a new form opens which has its
save-behind bit set. You can prove this to yourself by reducing the amount of free
memory to a level below that required to store the form's screen area bitmap, then
opening and closing a form that has its save-behind bit set over your bitmap -- the
newly uncovered form will receive a form update event.
Hope that all makes sense... there's a nicer description of this behavior in the docs
btw... and we've covered this issue in this forum many times (so check the archives).
Regards,
Jim Schram
Palm Incorporated
Partner Engineering
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/