[Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

How jump to next control in Tab Order?

Posted on 2000-04-13
2
Medium Priority
?
295 Views
Last Modified: 2010-04-04
Hi!

I have an TEdit and a TButton. When I press the button I want the focus to change to the control placed directly after the TEdit in the Tab Order, no matter what kind of control that is. I've tried to send a WM_KEYDOWN message to the TEdit and to the form owning it, but it doesn't work. How can I do it?
0
Comment
Question by:Dippen
2 Comments
 
LVL 17

Accepted Solution

by:
inthe earned 200 total points
ID: 2713664
Hi
set the tab order fpr your controls via the object inspector then on the buttons
OnKeyPress event do:

 If key=chr(13) //enter key
 then SendMessage(handle,WM_NEXTDLGCTL,0,0);

this will set focus to the next control in the order.
Regards Barry
0
 

Author Comment

by:Dippen
ID: 2714896
Thanks a bunch. Worked just fine!
0

Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

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…
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…
Screencast - Getting to Know the Pipeline
Suggested Courses
Course of the Month20 days, 14 hours left to enroll

864 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