Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   GUI-Design mit VCL / FireMonkey / Common Controls (https://www.delphipraxis.net/18-gui-design-mit-vcl-firemonkey-common-controls/)
-   -   Delphi ActivePage des PageControl mit ShortCut? (https://www.delphipraxis.net/28114-activepage-des-pagecontrol-mit-shortcut.html)

torud 19. Aug 2004 20:46


ActivePage des PageControl mit ShortCut?
 
Hallo Leute,

ich habe in einem meiner Programme mehrere PageControls und ich moechte/muss fuer eines realisieren, dass ich durch betaetigen der Taste F9 erreiche, dass der ActivePageIndex auf 4 gesetzt wird und das PageControl auch zu dieser Seite wechselt, egal wo ich mich gerade im Programm befinde.

Wie macht man so was?
Da muesste ich doch was globales erstellen, oder ???

Shaman 19. Aug 2004 21:38

Re: ActivePage des PageControl mit ShortCut?
 
Hallo

Delphi-Quellcode:
procedure TForm1.FormKeyDown(Sender: TObject; var Key: Word;
  Shift: TShiftState);
begin
  if Key = VK_F9 then PageControl1.ActivePageIndex:= 4;
end;
KeyPreview auf True setzen

Gruss
Shaman

Edit: Club-Member. Wueeeeeeeeeeh! :dp:

torud 20. Aug 2004 05:49

Re: ActivePage des PageControl mit ShortCut?
 
Genau das war es, was ich suchte! :bounce1:


Alle Zeitangaben in WEZ +1. Es ist jetzt 13:28 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz