• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 314
  • Last Modified:

Selecting a TabSheet with keyboard

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
rainbowsoftware
Asked:
rainbowsoftware
1 Solution
 
dwwangCommented:
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
 
rwilson032697Commented:
You can also use CTRL-TAB and CTRL-SHIFT-TAB when on any control in a page in a page control.

Raymond.
0
 
rpetruniCommented:
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

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now