David, I don't know if I am solving your problem, but I had a similar issue which I could not figure out for about a month as well.
I had the same type of problem that you are explaining but reversed. I was initializing a custom list control when I received the frmLoadEvent for my modal form so that when the frmOpenEvent was sent, my gadget would have everything it needed to draw. This was causing sections of my modal form to actually get drawn on the form below it (the *parent* form). I moved all of my custom drawing stuff to happen after the frmOpenEvent was received by the form's event handler. This fixed my problem. In the process of trying to figure out what I was doing wrong, I ended up doing my own *saveBehind* which also seems to work very well. All you need to do for this is do a WinSaveBits() on the rectangular region that your modal form is going to cover (you can get this once FrmInitForm() has been called ). Then do a WinRestoreBits() when you detect that your modal form is closed. Then you can just return TRUE for the frmUpdateEvent() so that your form does not then redraw itself again. One last thing you can do, if you can't figure it out is call FrmEraseForm() and FrmDrawForm(). On the m500 you cannot see any flickering, but, on the m515 you see the flicker. Just some thoughts... Brad "David Eyler" <[EMAIL PROTECTED]> wrote in message news:98145@palm-dev-forum... > > Hi everyone, I've been really unable to solve this problem for over a month > now so any help is greatly appreciated. > > I've got a non-modal form with a list on it, and then a modal form that pops > up on top of it. The modal form has a selector trigger which pops up another > modal form that lets the user enter some data. I've got Save Behind checked > for both of the modal forms. So here's what is happening. > > 1) the user brings up the first modal form. > 2) the user taps the selector trigger and brings up the second modal form > and enters some data > 3) the user taps the Done button, and when the first modal form redraws it > (incorrectly) draws the down arrow from the list from the original > *non*-modal form. > > My sequence of calls for both modal forms looks like this > > frm = FrmInitForm() > FrmDrawForm(frm) > //draw stuff here > FrmSetEventHandler(eventHandler) > FrmDoDialog() > //save user data here > FrmDeleteForm() > > And I handle frmUpdateEvents in all forms by calling > FrmDrawForm(FrmGetActiveForm()) and returning true. Thanks for any help. > > > > -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
