Solved

How jump to next control in Tab Order?

Posted on 2000-04-13
2
282 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 50 total points
Comment Utility
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
Comment Utility
Thanks a bunch. Worked just fine!
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

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…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

763 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

13 Experts available now in Live!

Get 1:1 Help Now