Help.
I noted after updating to OS 3.5 that some of my forms whould have
blank fields after returning from other forms. I found in the Palm
"common issues" document a reference to this problem, instructing me
to trap and deal with a FormUpdateEvent.
I do this on the main form of my program now, but I still get blank
fields (interestingly, different fields are blank on the actual unit
and in POSE). What am I missing?
case frmUpdateEvent:
frm=FrmGetFormPtr(APPMainForm);
fld = (FieldPtr)(FrmGetObjectPtr(frm,(FrmGetObjectIndex(frm, APPNameField))));
length = FldGetTextLength(fld);
FldSetSelection(fld, 0, length);
FldDelete(fld, 0,length);
nameH=MemHandleNew(nameLength);
nameString=MemHandleLock(nameH);
StrCopy(nameString, GetTextField1());
StrCat(nameString, ", ");
StrNCat (nameString, GetTextField2(), StrLen(nameString)+16);
length=StrLen(nameString);
FldInsert(fld,nameString, length);
FillField(fld,nameString);
FldDrawField(fld);
APPUpdateValuesOnMainForm();
FrmDrawForm(frm);
MemHandleUnlock(nameH);
handled=false;
break;
--
----------------------------------------------------------------------
Michael Hutchens PregCalc 3.0 Professional:
[EMAIL PROTECTED] http://www.thenar.com/pregcalc
FloChart:
Please quote previous http://www.thenar.com/chart
correspondence when discussing Ranson:
technical support issues. http://www.thenar.com/Ranson
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palm.com/devzone/mailinglists.html