November 29th, 2012, 06:36 AM
Perform operation on TAB key press ?
Is it possible to perform some operation on TAB key press event ?
If it is, help me with sample code.
Thanks in advance.
November 29th, 2012, 10:41 AM
procedure TForm1.AppOnMessageEv(var Msg: TMsg; var Handled: Boolean);
if Msg.message = WM_SYSKEYUP then
if (Msg.WParam = VK_TAB) then
// YOUR CODE
December 11th, 2012, 02:10 AM
You can handle the form's OnKeyPress event and handle only for #8 (ascii code of TAB character).
December 11th, 2012, 08:34 AM
A fair warning to the original poster - I have tried something like this in the past, and having any components on my form with their tabstop property set to true seemed to prevent the code from running. You might want to watch out for that.