Just off the top of my head...

I'd set a flag at keyDownEvent (flag set means "got a key")

Then at the next nilEvent, if the flag is set, do your list manipulations and
clear the flag.

- Al -



-- original message --

>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.
>
> I thought fldChangedEvent was what I wanted but I never see this event. 
>I don't see any other events that I think are what I want either.
>
>Am I doomed to do it the hard way?
>
>Thanks,
>
>Dana
>
>PS Thanks for the WinDrawTruncChars() answer. It shortened my 
>afternoon's work...


-- 
--  Alan Weiner  --  [EMAIL PROTECTED]  --  http://www.ajw.com
Palm OS Certified Developer

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

Reply via email to