Del Ventruella wrote:

I have the "about" form loading now.

I still need to know how to get a text string (char*) to load and display in
a field on a form.
This is what I use..  Bob

void mySetFieldText(FormType *frmP, UInt16 fieldID, Char *st)
{
   FieldType    *fldP;
   MemHandle    textH;
   Char        *textP;
   UInt8        fldLen=0;

   fldP = FrmGetObjectPtr (frmP, FrmGetObjectIndex (frmP, fieldID));
   FldFreeMemory(fldP);
   FldSetTextHandle (fldP , NULL);
   fldLen=FldGetMaxChars(fldP);
   textH=MemHandleNew(fldLen+1);
   if (textH){
       textP=MemHandleLock(textH);
       StrNCopy(textP,st,fldLen);
       textP[fldLen]=0;
       MemHandleUnlock(textH);
       FldSetTextHandle (fldP , textH);
   }
   //optional draw if the form is the current active form
   if (frmP==FrmGetActiveForm())
       FldDrawField(fldP);
}


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

Reply via email to