At 3:23 PM -0800 1/23/01, Jason Feinberg wrote:
>I have an app where a user will be entering text into a field, and i want
>them to be able to do a certain keystroke and have the focus go to the next
>field. I am sure this has been done, but I can find nothing on it..

There's a standard keystroke for this on the Palm, and while you're 
at it I suggest supporting tab for the same thing (both for your 
convenience in the emulator, and for folks who may have keyboards for 
their Palms). It is documented, thought I forget exactly where. Here 
a blibbet of code from one of my dialogs that will get you started, 
this goes in your form handler...

case keyDownEvent:
        if( eventP->data.keyDown.chr == vchrNextField ||
                eventP->data.keyDown.chr == vchrPrevField ||
                eventP->data.keyDown.chr == chrHorizontalTabulation )
        {
                // figure out where the current focus is,
                // find the next or previous field,
                // switch the focus and select all the text
                handled = true;
        }
        break;

Dave Johnson



-- 
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