Just to get this into the archives...

I had several places in an app where Gremlins would sometimes trigger 
a "bad field selection" error.  I could find nothing in my code that 
I was doing, and was never able to figure out where to set a 
breakpoint to track down the problem.  So I just shipped it and 
crossed my fingers.

Today, thanks to the magic of Gremlin Minimization, I found the 
problem.  I had several input fields that were 1 line high, but did 
not have the "single-line" attribute checked in Constructor.  This 
meant that you could tap in the field, then tap the keyboard 
silk-screen icon (abc or 123), then enter one (or more) newlines. 
When you tap "Done" in the keyboard dialog, you return to your own 
form, and the handler for the keyboard dialog attempts to draw the 
new (multi-line) value into the original (single-line) field.

Ensuring that "single-line" is checked for all of my single-line 
fields has solved the problem.

Thanks for listening--I have no cubicle mate to tell this to!

H


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

Reply via email to