Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Programmieren allgemein (https://www.delphipraxis.net/40-programmieren-allgemein/)
-   -   ShortCut Global (https://www.delphipraxis.net/193210-shortcut-global.html)

Ordnadito 5. Jul 2017 15:30

ShortCut Global
 
Guten Tag

Ich möchte einen ShortCut global kreieren, so dass man damit einen Formular (TForm) aus allen Formularen der ganzen Application öffnen kann.
Das sollte so functiionieren so in der Art wie F1 für Hilfe benutzt wird.

Ich hoffe, jemand kann mir damit helfen.

Gruss
Ordnadito

SneakyBagels 5. Jul 2017 15:34

AW: ShortCut Global
 
Global Hotkey:
http://delphidabbler.com/tips/16

Die Funktionalität, dass ein Formular deiner Anwendung geöffnet wird, musst du in WMHotKey aber selber implementieren.

RegisterHotKey kommt beispielsweise in FormCreate und UnregisterHotKey in FormDestroy.

himitsu 5. Jul 2017 16:49

AW: ShortCut Global
 
Global in der eigenen Anwendung:
TApplicationEvents z.B. auf die Hauptform und da im OnShortCut drauf reagieren.
Strg+F10 :
Delphi-Quellcode:
if (Msg.CharCode = VK_F10) and (ssCtrl in KeyDataToShiftState(Msg.KeyData)) then

bzw.
Delphi-Quellcode:
if (Msg.CharCode = VK_F10) and ([ssCtrl] = KeyDataToShiftState(Msg.KeyData)) then
Ganz Global im ganzen Windows:
MSDN-Library durchsuchenRegisterHotKey


Alle Zeitangaben in WEZ +1. Es ist jetzt 14:17 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