Disable Default Tab Behavior
Posted on 2004-09-28
I am using C++ Builder 5. What I need to be able to do is to disable the default tab behavior for some controls on a form and replace it with my own handler.
The KeyDown and KeyPress events do not catch the Tab key, which is pretty annoying. The KeyUp event catches the Tab key but only after the default action has already occured. I need to be able to capture the Tab key before it is processed and replace the default behavior with some code of my own.
I am writing a huge application and will need to implement this on a lot of forms (~150) so a simple answer would be preferred.