Solved

Change TabOrder of Objects

Posted on 2006-07-15
1
327 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Ready to get started with anonymous questions?

It's easy! Check out this step-by-step guide for asking an anonymous question on Experts Exchange.

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…
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…
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
Suggested Courses
Course of the Month8 days, 9 hours left to enroll

617 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