Page 1 of 1

PostPosted: Thu Jan 26, 2006 2:12 pm
by tthkbw
I have multiple forms in my application and I generally switch between them using calls to form.domodal()

On the Palm simulator, this works fine, the forms display properly.

However, on the Palm Emulator using PalmOS 3.5, when I call domodal(), the old form is not erased from the screen. The old form's controls are still visible--all of them. They are not active, they are only there in the graphics, the new form (called with domodal()) is simply painted over the old one.

The calling form has no code in .onclose(), and in the simplest case, the modal form has no code at all--it just returns the button selected--but in all cases the same thing happens.

Any ideas?

Terry Brown

PostPosted: Thu Jan 26, 2006 2:19 pm
by nmc
When you want to *switch* between forms, then why dont you use form.load()?
Using a bunch of modal forms calling each other repeatedly cant cause several problems...

PostPosted: Thu Jan 26, 2006 2:57 pm
by tthkbw
Why does this cause problems?

The reason I use domodal() is that I have multiple forms that call the same modal form. Using domodal(), I don't have to keep track of which form the modal form was loaded from, it always returns to the loading form when closed.

I have verified that using form.load() fixes the problem. But I'd like to understand what is wrong.


Terry Brown