Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Win32/Win64 API (native code) (https://www.delphipraxis.net/17-win32-win64-api-native-code/)
-   -   Delphi Hotkey Control aus Resourcendatei (https://www.delphipraxis.net/8638-hotkey-control-aus-resourcendatei.html)

Zerolith 9. Sep 2003 13:02


Hotkey Control aus Resourcendatei
 
Hallo!

ich möchte ein Hotkey Control (in nem Resource Dialog) vorbelegen:

Delphi-Quellcode:
SendDlgItemMessage(hDlg, 1004, HKM_SETHOTKEY, HOTKEYF_EXT or 5, 0);

Funktioniert Prima... Habe dann in dem Hotkey Control "EINGABE" drinstehen. Super.

Aber ich möchte dass die ALT Taste auch mitdabei ist

also dacht ich mir (wie in der MSDN steht)

Delphi-Quellcode:
SendDlgItemMessage(hDlg, 1004, HKM_SETHOTKEY, HOTKEYF_ALT or HOTKEYF_EXT or 5, 0);

Aber dann steht auch nur wieder EINGABE drin... *Grr*

weiß jemand wie ich das mach?


meine zweite Frage währe wie ich eine Eingabe in das HOTKEY Control abspeicher - besser gesagt wie ich auf den Wert zugreifen kann der Drinsteht.

BEsser: Wie erhalte die Aktuelle Tastenkomination? (möchte sie in ner XML Datei abspeichern) und wie kann ich diesen wert dann wieder zum vorbelegen nehmen.


ach hab ich heut ein tolles Deutsch =)

thx
Daniel

Zerolith 11. Sep 2003 11:44

Re: Hotkey Control aus Resourcendatei
 
*nachobenpush*

Assarbad 15. Sep 2003 17:17

Re: Hotkey Control aus Resourcendatei
 
Zitat:

ach hab ich heut ein tolles Deutsch =)
Koennte dies das eigentliche Problem sein? Was meinst du mit:
Zitat:

Habe dann in dem Hotkey Control "EINGABE" drinstehen. Super.
Mir ist das nicht so gelaeufig, handelt es sich bei einem Hotkey-Control um eines, in dem man einen "Hotkey auswaehlen" kann indem man eine Taste oder Tastenkombination drueckt???

Zerolith 15. Sep 2003 17:23

Re: Hotkey Control aus Resourcendatei
 
Ja genau das

sieht aus wie n Editfeld -> nur halt für Tastenkombinationen.


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