I use non-editable fields to display dynamic text on the screen. It's nicer
than using labels, because with a label, you have to make sure that the
original label resource is at least as long as the text you're going to
display.

According to the OS 3.5 documentation:
"Noneditable fields don't accept user input"

I consistently get this error when using OS 3.5 debug roms (and earlier OS
versions as well):
"Field.c, Line 132, Invalid insertion point position"

Looking through the OS 3.5 source code, this error is only generated if the
insertion point is visible (which should not be possible on a noneditable
field...?). The insertion point is set in the routine "SetInsPtPosFromPt",
which is called from the fldEnterEvent handler within Field.c - that routine
is called whether or not the field is editable.

Even after all of that investigation, I'm still convinced that I'm doing
something wrong - I have searched the archives and knowledge base and never
come across this error in anyone else's messages...

So...

what am I doing wrong?
Here is a typical snippet of code for setting my text pointer on a
noneditable field:
//
FieldPtr myField;
myField=
    (FieldPtr)FrmGetObjectPtr(myForm,FrmGetObjectIndex(myForm,fieldNum));
FldSetTextPtr(myField, textPtr);
//

and the NONEDITABLE attribute is set in PilRC
App is built with GCC

Thanks for any help on that one,
Scott
Red Mercury, LLC
http://www.red-mercury.com




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

Reply via email to