Solved

Change TabOrder of Objects

Posted on 2006-07-15
1
324 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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
error 1.1 400 Bad request idhttp delphi 18 151
Multiple image collision 13 80
update joined tables 2 55
scroll down TListBox component in Delphi 1 19
Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
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…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

828 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