I believe there is a fldChangeEvent that you can trap (Check docs for actual name)  
That event only occurs when the field has changed.  I believe it isn't received until 
field has actually changed.

-----Original Message-----
From:   Luca [SMTP:[EMAIL PROTECTED]]
Sent:   Friday, February 18, 2000 10:09 AM
To:     Palm Developer Forum
Subject:        intercepting a keyDownEvent

I'm trying to dynamically keep track of the length of text in a field.  My
code is set up this way:
FormEventHandler()
{
     switch(eventType)
            case keyDownEvent:
               Word n =  FldGetTextLength(fldPtr);
                do something with n
}

Each time a character in input a keyDownEvent is intercepted by this
mechanism.  The problem is that the event reaches my code before it reaches
the field, so n gets the length of the text and then the text is changed
(Therefore n actually gets the length before the last character was input).
Is there any way to let the text field intercept the event before it gets to
my form's event handler?

Thanks in advance
Luca


-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palm.com/devzone/mailinglists.html



-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palm.com/devzone/mailinglists.html

Reply via email to