Autor Beitrag
Geraldine
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 20

WIN XP, WIN 2000, WIN ME
D7
BeitragVerfasst: Do 09.11.06 13:34 
Hallöchen,

habe ein großes Problem.

Ich habe in meinem Programm ein MainMenu hinzugefügt.
Ein paar von den Items habe ich ShortCuts hinzugefügt. Jetzt starte ich das Programm
und wenn ich eine Tastenkombination testen möchte passiert nichts.
Wenn ich so auf das Item drücke, dann geschieht das was es auch machen soll.
Dem Form habe ich auch KeyPreview auf treu gesetz!

Muss ich noch was einstellen oder beachten, damit diese ShortCuts funktionieren!

Grüßle Jerry
Gausi
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 8554
Erhaltene Danke: 481

Windows 7, Windows 10
D7 PE, Delphi XE3 Prof, Delphi 10.3 CE
BeitragVerfasst: Do 09.11.06 13:37 
Das einzige, was mir dazu spontan einfällt ist, dass möglicherweise gerade eine andere Komponente den Focus hat, der ein Popup-Menü zugeordnet ist, welches wiederum auch einen Eintrag mit diesem ShortCut hat - der hat dann nämlich Vorrang, afaik auch dann wenn Keyprewiev auf true gestellt ist.

_________________
We are, we were and will not be.
Geraldine Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 20

WIN XP, WIN 2000, WIN ME
D7
BeitragVerfasst: Do 09.11.06 14:00 
Also, ich habe alles was Bei Aktivierung mit Focus zu tun hat raus genommen.
Es funktioniert nicht.
Kann ich irgendwie rausfinden, wer den aktuellen Focus hat?

Grüßle Jerry
Gausi
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 8554
Erhaltene Danke: 481

Windows 7, Windows 10
D7 PE, Delphi XE3 Prof, Delphi 10.3 CE
BeitragVerfasst: Do 09.11.06 14:04 
Mit Blick hier drauf: funktioniert es, wenn du die Exe außerhalb der IDE startest?

_________________
We are, we were and will not be.
Geraldine Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 20

WIN XP, WIN 2000, WIN ME
D7
BeitragVerfasst: Do 09.11.06 14:18 
Nein, funktioniert auch nicht außerhalb der IDE!

Habe vorher mit OnKeyPress, usw gearbeitet. Dann habe ich das mit ShortCut gefunden und wollte alles umstellen. Alles mit OnPressKey usw. gelöscht und ShortCuts eingefügt.
Seit dem funktioniert es nicht mehr.

Grüßle Jerry