Hi Gabriel,
    Regarding your question about character replacement, you have to Track
the keyDownEvent and replace the Key Value in the event Queue. Try the
following code in your Form event Handler method,

if((event->eType==keyDownEvent) && (event->data.keyDown.chr=='-'))
 {
   event->data.keyDown.chr='.';
 }

The code above will replace the '-' char with '.'


Thanks,
  Manikumar K
--------------------------------------------------------------------
Developers' Nation
You've got the questions; we've got the answers.
Visit Us At :http://www.devnation.net for Palm Developer Support
--------------------------------------------------------------------

"Gabriel Covert" <[EMAIL PROTECTED]> wrote in message
news:47769@palm-dev-forum...
>
> Is it possible to intercept a character and replace it with another value,
> i.e., if a user enter a period in a text field '.', replace it with a
hyphen
> '-' in the field and associated handle?  Would this be done in the
> keyDownEvent?
>
> Thanks!
>
> Gabe
>
>
>
>



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