Solved

TPageControl tabbing with Ctrl+PgUp/Down?

Posted on 2004-04-15
2
201 Views
Last Modified: 2010-04-05
Hi,

I notice in many Windows dialog boxes (eg. task manager, My Computer properties) you can switch tabs without having focus on the tabs by using Ctrl+PgUp/PgDn. How can you do this for a TPageControl?
0
Comment
Question by:nem2k4
2 Comments
 
LVL 22

Accepted Solution

by:
Ferruccio Accalai earned 50 total points
ID: 10838414
using form.onshortcut event.....

procedure TForm1.FormShortCut(var Msg: TWMKey; var Handled: Boolean);
begin
If ssctrl in KeyDataToShiftState(msg.KeyData) then
    begin
      case Msg.CharCode of
        vK_next: pagecontrol1.SelectNextPage(false);
        vk_Prior: pagecontrol1.SelectNextPage(true);
      end;
    end;
end;
0
 

Author Comment

by:nem2k4
ID: 10840948
Great! Thanks :) I thought it would be some kind of built-in functionality kinda like using Tab to switch between components, but I guess not...
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
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…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

777 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