Hi

Not sure if this will address your problem, but:

frm = FrmInitForm( ... );

// init the fields though they are not visible yet
fld = FrmGetObjectPtr( frm, ... );
FldSetTextHandle( fld, h );

idBtn = FrmDoDialog( frm );

// get field contents
if( idBtn == OK )
{
   h = FldGetTextHandle( fld );
}

FrmDeleteForm( frm );

The point is: you can initialize fields, lists, etc before the form
becomes visible. You can probably also call FrmHideObject etc
What you can NOT do is call anything that draws to the screen.

You don't receive frmOpen.
If you absolutely need to receive an event to initialize (though I
don't see why you would), you can use this little trick I do all the
time: call FrmUpdateForm just before FrmDoDialog.
This puts a frmUpdateEvent in the queue and the form receives
it as soon as it's visible.

HTH
O.Lancelot


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

Reply via email to