Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Change TabOrder of Objects

Posted on 2006-07-15
1
Medium Priority
?
330 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 200 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

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
Loops Section Overview
Look below the covers at a subform control , and the form that is inside it. Explore properties and see how easy it is to aggregate, get statistics, and synchronize results for your data. A Microsoft Access subform is used to show relevant calcul…
Suggested Courses

916 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