Thanks again Morten,
I use this routine,
FldSetTextHandle (fldP, NULL);
FldDrawField(fldP);
Now i have problems to implement the backspace in a field.
Do u know a routine for this?
Im usin this,
MemHandle textH = FldGetTextHandle(fldP);
UInt16 intTamText = FldGetTextLength (fldP);
FldDelete (fldP, intTamText - 1, intTamText);
FldSetTextHandle (fldP, NULL);
FldSetTextHandle (fldP, textH);
FldDrawField(fldP);
if (textH != NULL)
MemHandleFree(textH);
In the first time, its function, in the second time its not function.
Do u know a solution? Or anybody...
Please.
Sergio
-----Original Message-----
From: Morten Schmidt [mailto:[EMAIL PROTECTED]
Sent: quarta-feira, 28 de abril de 2004 09:25
To: Palm Developer Forum
Subject: Re: Erase Field
I found this at:
http://www.palmos.com/dev/support/docs/palmos/Field.html#996520
[snip]
Comments
You rarely need to call this function directly. Instead, use
FrmHideObject(), which calls FldEraseField for you.
[snap]
This works fine for me...
i.e.
FrmHideObject(FrmGetFormPtr(frmMain),
FrmGetObjectIndex(FrmGetFormPtr(frmMain), edtText));
for the From frmMain and the Field edtText
/morten
"Sergio Uyeda" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
Hi people,
Im trying to erase the field contents using FldEraseField, but it not
function.
Can anyone give me a idea. Is there any other routine I can do?
Thanks.
Sergio
--
For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/