Delphi Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsProgramming Languages - MoreDelphi Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old November 29th, 2012, 05:36 AM
Murugavel Murugavel is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2012
Posts: 28 Murugavel User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 10 h 52 m 57 sec
Reputation Power: 0
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.

Reply With Quote
  #2  
Old November 29th, 2012, 09:41 AM
bummi bummi is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2012
Location: Augsburg Germany
Posts: 12 bummi User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 h 12 m 15 sec
Reputation Power: 0
procedure TForm1.AppOnMessageEv(var Msg: TMsg; var Handled: Boolean);
var
ShiftState: TShiftState;
begin
if Msg.message = WM_SYSKEYUP then
begin
if (Msg.WParam = VK_TAB) then
begin
// YOUR CODE
end;
end;
end;

Reply With Quote
  #3  
Old December 11th, 2012, 01:10 AM
Luthfi Luthfi is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2012
Posts: 141 Luthfi User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 5 h 1 m 56 sec
Reputation Power: 2
You can handle the form's OnKeyPress event and handle only for #8 (ascii code of TAB character).

Reply With Quote
  #4  
Old December 11th, 2012, 07:34 AM
EnderX EnderX is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2009
Posts: 59 EnderX User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 Days 5 h 28 m 12 sec
Reputation Power: 4
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.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreDelphi Programming > Perform operation on TAB key press ?

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap