PDA

View Full Version : Catching a <TAB> key press



masonwheeler
12-10-2007, 12:58 AM
I'm trying to catch <TAB> in a keyDown event, to do something specific in the game I'm writing. But for some reason, when I press <TAB>, the FormKeyDown procedure doesn't run. I've checked with a breakpoint at the start of the routine. Letter keys, number keys, arrows, shift, ctrl, alt, pretty much everything runs the event handler, except the one key I'm trying to trap. Anyone have any idea why this isn't working?

Mason

arthurprs
12-10-2007, 01:03 AM
tab is automaticaly managed in forms to jump to next control (visual component), not sure, but someone told me that some time ago

Brainer
12-10-2007, 04:44 AM
Try to use GetAsyncKeyState. I dunno if it works in your case, but it's a very useful function. :)