Hi all,
I am trying to display ASCII char in the field. The code is something like
this.
MemHandle hndCmds;
Char c[2];
Char cmds[20];
c[0] = 31;
c[1] = '\0';
StrCopy(cmds,"Test");
StrCat(cmds,c);
len = StrLen(cmds);
hndCmds = MemHandleNew(500);
ptext =(char*) MemHandleLock(hndCmds);
StrCopy(ptext,cmds);
formPtr = FrmGetActiveForm();
fldPtr = (FieldPtr) FrmGetObjectPtr(formPtr, FrmGetObjectIndex(formPtr,
fldList));
FldSetTextHandle(fldPtr,hndCmds);
FldDrawField(fldPtr);
FldSendChangeNotification(fldPtr);
MemHandleUnlock(hndCmds);
FrmDrawForm(formPtr);
It should show char of ASCII value 31 at the end of string in field. But it
shows me a square block. What may be the reason and What I will need to do
for it to display the correct char for me.
Regards,
Kapil.
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/