I have implemented a tabbed database edit screen
for may application. It has worked properly since
OS version 2.0, but it no longer works on Cobalt.

The user launches the database edit screen(s)
via a menu item. In the frmOpenEvent handler I
initialize the other forms using FrmInitForm. I
also update the fields on all forms at this time.

When the user taps one of the tab buttons, I
display the required form by using
FrmSetActiveForm and FrmDrawForm. When the OK
button on any of the forms is tapped, I write all
of the data from all of the forms to the database
file and then close all of the forms by calling
FrmEraseForm and FrmDeleteForm.

On Cobalt, none of the forms appear.

Cobalt appears to handle form drawing quite
differently. On earlier versions of the OS, the
form is drawn as soon as FrmDrawForm is called in
the frmOpenEvent handler. On Cobalt, the form is
not drawn until the next call to EvtGetEvent. It
appears that if other forms are initialized
(via FrmInitForm) in the frmOpenEvent handler,
nothing is drawn.

Any Suggestions?


Laurie



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

Reply via email to