I have a simple form consiting mainly of some labels, input fields, and
some buttons. The 'pilrc' definition for a typical field looks like
this:
FIELD ID EditOdoFld AT (PREVRIGHT+5 PREVTOP 40 10) EDITABLE MAXCHARS 6
When I draw the form everything seems to be OK, but in 'pose' when I tap
on the field I get an error message:
"Field.c, Line:132, Invalid insertion point position"
If my form initialization code includes a call to:
FrmSetFocus( form, FrmGetObjectIndex( form, EditOdoFld ))
I get that error during the form initialization. In either case, I can
continue and the program appears to work (other than generating more
invalid insertion point messages).
Displaying the back trace in the debugger shows that the error is coming
from 'ValidateField()'.
I downloaded the 3.5 OS source (for the ROM version that I am using) and
looked in Field.c. The line number doesn't match up (line 132 is in the
middle of the header comment for 'DrawLine()'), but I do see that error
message in 3 places in 'ECValidateField()' (a suggestion: don't use
identical error messages in multiple locations. Make them slightly
different to make it a little easier to tell exactly what condition
caused the error). I suspect the error is caused by the last test:
ErrFatalDisplayIf ( ((fld->insPtXPos > 0) || (fld->insPtYPos > 0))
I'm probably misreading this, but to me this looks like I'll always get
this error as long as the X/Y coordinates for the insertion point are
anything other than 0.
Am I completely lost here?
Thanks
/dwight
--
Dwight N. Tovey
Email: [EMAIL PROTECTED]
http://www.dtovey.net/dwight
---
Why is 'bra' singular and 'panties' plural?
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/