Hi.
I have several noneditable fields in my form.
In my func there is something like that:
Char buff[]=" ";
FrmDrawForm(form);
StrCopy(buff, smthelse);
FldSetTextPtr(fldptr,buff);
FldDrawField(fldptr);
In OS 3.3 one can select content of that
In OS 3.3 one can select content of that field, but it won't
destroy it.
In OS 3.5 one can select content and it erases it.
What can I do?
They told me to catch penDown event and check bounds...
I have editable field on form too.
Is there easy way of sorting this out?
Sure. There is a
You shouldn't have to go through so much work to keep text from being
selected in a non-editable field. Just catch the fldEnterEvent and return
with handled = true. No need to mess with bounds checking, since the field
already does this for you. If all the fields on the form are non-editable,
-Original Message-
You shouldn't have to go through so much work to keep text from being
selected in a non-editable field. Just catch the
fldEnterEvent and return
with handled = true. No need to mess with bounds checking,
since the field
already does this for you. If all the
Good point. If all the fields in the form are non-editable, then there is no
difference. Otherwise, there is this minor difference.
--
Peter Epstein
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/