Re: Beeping EditText

new topic     » goto parent     » topic index » view thread      » older message » newer message

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

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu