![]() |
Leertaste & co. als hotkey
Hi,
wie kann ich z.B. die Leertaste oder die back-taste als hotkey benutzen? (vielleicht sogar in nem THotKey) |
Re: Leertaste & co. als hotkey
Zitat:
Man kann diesen Wert nicht im Objektinspektor auswählen, sondern muss ihn eintippen (zumindest bei D5). Wahrscheinlich wollte Borland verhindern, dass man allzublöde Kombinationen als Shortcut verwendet. In Unit Consts.pas befinden sich die speziellen Tasten:
Code:
SmkcBkSp = 'Rück';
SmkcTab = 'Tab'; SmkcEsc = 'Esc'; SmkcEnter = 'Enter'; SmkcSpace = 'Leertaste'; SmkcPgUp = 'BildAuf'; SmkcPgDn = 'BildAb'; SmkcEnd = 'Ende'; SmkcHome = 'Pos1'; SmkcLeft = 'Left'; SmkcUp = 'Nach oben'; SmkcRight = 'Rechts'; SmkcDown = 'Nach unten'; SmkcIns = 'Einfg'; SmkcDel = 'Entf'; SmkcShift = 'Umsch+'; SmkcCtrl = 'Strg+'; SmkcAlt = 'Alt+'; |
Re: Leertaste & co. als hotkey
so?
Code:
oder wie? wie ist das denn mit dem umwandeln? strtohotkey, oder wie geht das?
hotkey27.HotKey := 'SmkcSpace';
|
Re: Leertaste & co. als hotkey
Delphi-Quellcode:
// ungetestet, aber logisch ;-)
// uses Consts wird benötigt hotkey27.HotKey := TextToShortCut(SmkcAlt+SmkcSpace); // oder besser so (TextToShortCut ist langsam) hotkey27.HotKey := ShortCut(VK_Space, [ssAlt]); |
Re: Leertaste & co. als hotkey
nur gibt es texttoshortcut nicht... :gruebel:
strtoshortcut auch nicht und ShortCut() wird auch nicht akzeptiert :( |
Re: Leertaste & co. als hotkey
Ich habs...hab einfach VK_space genommen...danke
|
Alle Zeitangaben in WEZ +1. Es ist jetzt 16:56 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-2025 by Thomas Breitkreuz