Solved

Selecting a TabSheet with keyboard

Posted on 1998-11-09
3
296 Views
Last Modified: 2010-04-03
Is it possible to select a TabSheet in a PageControl by using the keyboard?
Placing an underscore under a character on the TabSheet doesn't work.
0
Comment
Question by:rainbowsoftware
3 Comments
 
LVL 4

Expert Comment

by:dwwang
ID: 1346207
You have to use the TAB key to set the focus on the page control, and the use left/right arrow key to go through the tabsheets.

Or use MyPageControl.activePage:=myTabSheet;
0
 
LVL 12

Expert Comment

by:rwilson032697
ID: 1346208
You can also use CTRL-TAB and CTRL-SHIFT-TAB when on any control in a page in a page control.

Raymond.
0
 
LVL 1

Accepted Solution

by:
rpetruni earned 50 total points
ID: 1346209
You could use onKeydown event on the form (also form has to have KeyPreview set to true).
Here is sample code
if key=VK_F2 then PageControl1.ActivePage:=TabSheet1;

0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

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…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
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…

746 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