Delphi-PRAXiS
Seite 3 von 3     123   

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Object-Pascal / Delphi-Language (https://www.delphipraxis.net/32-object-pascal-delphi-language/)
-   -   Delphi Hotkey to String (https://www.delphipraxis.net/87184-hotkey-string.html)

DGL-luke 11. Apr 2007 10:33

Re: Hotkey to String
 
Liste der Anhänge anzeigen (Anzahl: 1)
Hallo,

ich schaffs jetzt selber grad nicht...

Delphi-Quellcode:
hotkey := MakeWord(Byte(Ord('X')), Byte(HOTKEYF_ALT));
SendMessage(HotKey1.Handle,HKM_SETHOTKEY,hotkey,0);
sollte eigentlich völlig reichen, um "ALT+X" im hotkey-edit erscheinen zu lassen... tuts aber nicht.
Der hotkey bleibt wie er ist.
Ich hab keine Ahnung wieso.

EDIT: MÖP! HKM_SETHOTKEY = WM_USER+1; keine ahnung wo das -2 herkommt....

ebber 11. Apr 2007 13:06

Re: Hotkey to String
 
Ich danke dir vielmals.

Es geht :-D :-D .


Alle Zeitangaben in WEZ +1. Es ist jetzt 20:13 Uhr.
Seite 3 von 3     123   

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