Hello Peter.

Let me see if I undestand you right.

You are worried about low memory situation, when
'Save Behind' doesn't work. In this case each form will
get a single frmUpdate event. You don't want to keep
window stacking order (Z-order in MS Windows terminology),
in expectation that no stacking order is needed,
if as a response to frmUpdate event only a single
rectangle has to be redrawn - right ? 

If I am wrong, please disregard all the rest of the message.

Here is my concern.
Look at the information passed by frmUpdateEvent:

struct frmUpdate {
        UInt16 formID;
        UInt16 updateCode;
} frmUpdate;

As you can see, there is no rectangle at all.
A normal human reaction would be redrawing the
whole form! Is there any difference when the overlap
is more complex ? Not as I can think of.

Consider an example:
        Form A:  (left, top, right, bottom) : 0, 80, 160, 160
calles
        Form B:   0, 100, 160, 160
which in turn calls
        Form C:   0, 120, 160, 160
which in turn calls
        Form D:   0, 60, 160, 160

All Palm requirements are met.

Form D is currently active, and no other forms are seen.
I press "Done" which makes form D disappear. Form C becomes
an active form, but A and B  also need to be redrawn.

Is the order of calling frmUpdate is insignificant ?
Can we get away without a stacking order ?
Will the situation be worse if widht+alignment requirements are not
fulfilled ?

My answer is "No" to each of those questions.
Do you really think differently ?

Regards,
Michael.

-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/tech/support/forums/

Reply via email to