hello

in general my problem is like that:

there i one form in background and i show another one (modal one) on the top of
it. when top form is closed then underlaying one is automatically redrawn. this
isn't good for me because in some cases i need to open this modal dialog many
times and each redrawing may take a quite annoying time and in some cases  it
may make even worse things (drawing texts from invalid pointers etc., i have
tests for all this possibilities, but there must be a lot of them and code looks
ugly and more difficult then it needs).

i can fix it by making all forms shown on top of another marked with savebehind
flag. unfortunately this has 2 drawbacks. first one is that it doesn't work with
debug roms or debug simulators (they seem to ignore savebehind flag) and second
one is that on devices with DIA it seems to make problems and forms with
savebehing cannot be moved or resized (because if they are then content of
screen is returned to wrong place and i must redraw anyway). i could disable
resizing for them but it doesn't look good. and also i would like to use extra
space when available. and even if i would forget about DIA the application would
not work with debug rom correctly

so is there any chance how to say form that it should forget about redraw until
i will allow it? i experimented with WinScreenLock but it isn't what i am
looking for (because then it disable all screen not only form)

is there any possibility how to make it? the best for me would be something i
could use like this:

 case ctlSelectEvent:
    ....
       case MainOkButton:
                LockForm(FrmGetActiveForm());
                ....
                if(...)
                        result=StartDialog1(); //big form will be redrawn
                if(...)
                        result=StartDialog2(); //big form will be redrawn again
                ...
                UnlockForm(FrmGetActiveForm());

        

thanks in advance for any idea

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

Reply via email to