Solved

TPageControl tabbing with Ctrl+PgUp/Down?

Posted on 2004-04-15
2
196 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

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

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 my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

760 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

18 Experts available now in Live!

Get 1:1 Help Now