Autor Beitrag
Andreas L.
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1703
Erhaltene Danke: 25

Windows Vista / Windows 10
Delphi 2009 Pro (JVCL, DragDrop, rmKlever, ICS, EmbeddedWB, DEC, Indy)
BeitragVerfasst: Sa 30.08.03 10:04 
Hi Leutz,
ich möchte in meinen Prog mehrere Hotkeys verwenden, die aber nicht für Buttons bestimmt sind. Ich möchte z.B. machen das bei druck von F12 der Internet explorer aufgerufen wird. Jedoch wenn STRG + F12 gedrückt wird soll sich Mozilla öffnen. ALso das war nur ien Beispiel.

Greetz
ShadowThief
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 278



BeitragVerfasst: Sa 30.08.03 10:58 
ich hab dafür ne blöde lösung, aber die funktioniert:

ich leg mir immer ein TMainMenu auf die form, mach dort einen
ober-eintrag und lauter unter-einträge, die man dann mit shortcuts
versehen kann.

dann muss man nur noch den ober-eintrag auf visible = false setzen.

shadow.
Andreas L. Threadstarter
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1703
Erhaltene Danke: 25

Windows Vista / Windows 10
Delphi 2009 Pro (JVCL, DragDrop, rmKlever, ICS, EmbeddedWB, DEC, Indy)
BeitragVerfasst: Sa 30.08.03 11:16 
An die Lösung habe ich schon gedeacht. Aber ich möchte schon eine bessere Lösung. Soll ja alles ganz sauber sein.

Greetz
FeG
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 77

Win XP Home, SuSE Linux 8.2 Prof
D3 Prof, D7 Prof
BeitragVerfasst: Sa 30.08.03 13:22 
Hi,
OnKeyDown im Formular, dort Key und ShiftState abfragen (genaueres -> F1). Unter Umständen musst du noch "KeyPreview" auf true setzen, damit das auch funzt, wenn der Focus irgendwo anderst sitzt...

MfG,
FeG