![]() |
TShortCut, wie das Aufgebaut ?
Hi,
Ich arbeite gerade mit Hotkeys. Da ich eine Komponente daraus machen mochte habe ich nun eine Frage, wie kann ich feststellen welches Hotkey in TShortCut enthalten ist? Ein HotKey zusammensetzen sieht so aus:
Delphi-Quellcode:
function THotKey.RegisterKey: boolean;
var Modifier: UINT; vKey: Word; begin Modifier := 0; // TShortCut zu Modifier und Key umwandeln //... ? if fKeyModifiers = [kmALT] then Modifier := Modifier or MOD_ALT; if fKeyModifiers = [kmShift] then Modifier := Modifier or MOD_SHIFT; if fKeyModifiers = [kmCtrl] then Modifier := Modifier or MOD_CONTROL; vKey := GetKeyFromTable; // A..Z, 0..1, F1..F11 (Ohne F12 wegen Debugger) Result := RegisterHotKey(FWinControl.Handle, 0, Modifier, Cardinal(vKey)); end; |
Re: TShortCut, wie das Aufgebaut ?
|
Re: TShortCut, wie das Aufgebaut ?
War 'ne dusseliche Frage, stimmts. THX. ;)
|
Alle Zeitangaben in WEZ +1. Es ist jetzt 10:27 Uhr. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz