On Wed, 22 Feb 2006 01:42:37 +0000 "Tony Pelton" <[EMAIL PROTECTED]> wrote:
> hi all, > > can someone help me out with an example or a pointer or something to > how to do keyboard processing. > > i'm using TApplication.AddOnKeyDownHandler() to catch keyboard events > in my application. > > my event fires. > > my problem is, i have no idea how to implement key handling code. > > i assume that the information i need/want is in the argument of "Type > Word" that gets passed to my event handler (along with the modifier). The key constants are defined in the LCLType unit. For example VK_RETURN for the return key. Mattias > > i don't see any "helper" classes or unit functions that help me > process those events into something that i can write some code around > for dealing with different keypresses. > > i took a look at the "Keyboard" unit, but that units looks like it is > designed/intended for doing keyboard handling "closer to the metal". > > can someone point me at a basic snippet or some doc that shows me how > to deal with the paramters in the event callback to get meaningful > keypress information ? _________________________________________________________________ To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives