TPageControl tabbing with Ctrl+PgUp/Down?

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?
nem2k4Asked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
Ferruccio AccalaiConnect With a Mentor Senior developer, analyst and customer assistance Commented:
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
 
nem2k4Author Commented:
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.