Re: Beeping EditText
- Posted by Derek Parnell <ddparnell at bigpond.com> Mar 02, 2003
- 539 views
On Sat, 1 Mar 2003 23:29:10 +0000, Raudaun Long <LilFreak02_ at hotmail.com> wrote: > > Any idea why w32HKeyPress works correctly but not w32HKeyDown? The body > of the handler procedure is identical to what you wrote (i'm sure you > meant returnValue(-1) though) except instead of VJ_RETURN i just tested > for 13. i know that had nothing to do with it so it must have been the > event i was trapping. I think you can use KeyDown for this, but you must also trap the corresponding KeyUp event, plus its not just a matter of calling returnValue(-1) either. You have to get Windows to ignore the keystroke by some other method. The KeyPress is a lot easier. You can also get KeyPress to substitute alternate values. This is a neat way of forcing uppercase, for example. x= find(parms[1], LowerCaseChars) if x then returnValue( UpperCaseChars[x] ) end if -- cheers, Derek Parnell