Chris, Thanks for the tip. I did a search on "shadow" in the archives and saw that one solution might be to simply insert a new event with the desired character into the queue and absorb the old one so it doesn't get handled.
Dave -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Chris Olson Sent: Saturday, April 15, 2006 9:37 AM To: Palm Developer Forum Subject: Re: Converting from lowercase to uppercase during a keydown event Nope. In PalmOS 5.x the event structure is a 'shadow' structure, not the real event used by the system. You will probably have to handle the input to the field yourself. Look at the Fld* functions in the reference ... Chris Olson Patrick (MCC) wrote: > Not a Palm programmer, but maybe you need to display/re-display the > field after converting. > > Pat... > > > > > ----- Original Message ----- From: "David Ek" <[EMAIL PROTECTED]> > To: "Palm Developer Forum" <[email protected]> > Sent: Saturday, April 15, 2006 10:00 AM > Subject: Converting from lowercase to uppercase during a keydown event > > >> My ham radio logging software has a setting that causes all user >> input to be >> converted to uppercase and displayed that way in the input field as >> the user >> enters it. In other words, regardless of the graffiti shift state, if >> the >> user enters 'a' using graffiti, it will appear as 'A' in the input >> field. >> >> This was simple enough to do for Palm OS 4.1 and earlier--I just >> handled the >> KeyDownEvent, converted from lowercase to uppercase, and then made >> sure I >> left handled = false so the system would handle the input. No matter >> what I >> do for Palm OS 5.x, though, the character remains lowercase when it >> appears >> in the input field. I've tried using TxtTransliterate and verified >> that the >> character conversion took place. I also tried brute force: >> >> if (event->data.keyDown.chr == chrSmall_A) { >> event->data.keyDown.chr = chrCapital_A; >> FrmCustomAlert(InfoAlert, >> "Converted!", "", ""); >> } >> In each case, debug statements indicated that the logic was being >> executed >> and the character was converted, but in 5.x the lowercase character >> still >> appeared in the input field. What am I missing? >> >> Thanks - >> >> Dave Ek >> >> >> >> -- >> For information on using the PalmSource Developer Forums, or to >> unsubscribe, please see http://www.palmos.com/dev/support/forums/ >> > > -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/ -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
