Dana Long wrote:

I'm implementing a search on a list and want the list to scroll as the user enters characters in the search field.

If I look for a penDownEvent and then call FldGetTextPtr(), I get the text before the new character is inserted. I need it after the character is inserted. I know I can grab eventP->data.keyDown.chr and add it to the text I get back from FldGetTextPtr() but that seems like more work than I should have to do since I'd also have to figure out where the insertion point was and insert the char at that point and manage the maximum length as well.

You don't need to do all that. On the keyDownEvent { if your search field has focus { FldHandleEvent( search field ); ScrollList( FldGetTextPtr() ); return true; } return false; }


/* * Matt Graham * Palm OS Developer * www.healthramp.com */

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

Reply via email to