Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 209
  • Last Modified:

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?
0
nem2k4
Asked:
nem2k4
1 Solution
 
Ferruccio AccalaiSenior 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

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

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