Solved

Change TabOrder of Objects

Posted on 2006-07-15
1
322 Views
Last Modified: 2010-04-05
hi
i have a problem with TabOrder ,
i wanna move on my objects when i enter ENTER key , but i didn't find any way .
i wrote this codes but it doesn't do any thing

procedure TF_Registry.E_Family_NoKeyPress(Sender: TObject; var Key: Char);
begin
  if key = #13 then TabOrder := TabOrder + 1;
end;

what i must do ?

tanxfull
Mahsa
0
Comment
Question by:Mahsa60
1 Comment
 
LVL 26

Accepted Solution

by:
Russell Libby earned 50 total points
ID: 17116623

If you are looking to move focus on the enter key, the the following code can be used to move focus to the control that is next in the tab order.

Regards,
Russell

  if (Key = #13) then
  begin
     Key:=#0;
     Screen.ActiveForm.Perform(WM_NEXTDLGCTL, 0, 0);
  end;


0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now