Solved

TPageControl tabbing with Ctrl+PgUp/Down?

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
indy tidtcpclient threading issue 8 63
searching for DavidI's "Mobile Summer School download" 3 128
Print Graphic and Text to Epson TM-T88v 12 182
Working with hours 3 46
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…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.
Both in life and business – not all partnerships are created equal. As the demand for cloud services increases, so do the number of self-proclaimed cloud partners. Asking the right questions up front in the partnership, will enable both parties …

920 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

16 Experts available now in Live!

Get 1:1 Help Now