At 13:07 2002-12-17 -0500, you wrote:
As I understand it, these are the steps taken to launch a form as a dialogActually, two changes:
(error checking etc not shown, for clarity):
FormPtr frm = FrmInitForm(FORM_ID);
FrmSetActiveForm(frm);
/* Set fields etc here */
control = FrmDoDialog(frm);
The problem I'm having is this. If I set the text of any fields on the form
immediately before the FrmDoDialog() (marked above), these fields appear on the
_existing_ form/ window if I follow the set text with a call to
FldDrawField()). If FldDrawField() is not performed, the fields never seem to
get updated on-screen.
1) Don't call FrmSetActiveForm unless you need it for your field setting code
2) Call FrmDrawForm to draw the dialog before modifying its fields.
If you pre-draw the form, things should work just fine. It will still be erased at the conclusion of FrmDoDialog.
--
Ben Combee <[EMAIL PROTECTED]>
CodeWarrior for Palm OS technical lead
Palm OS programming help @ www.palmoswerks.com
--
For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
