Autor Beitrag
Fabian W.
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1766

Win 7
D7 PE
BeitragVerfasst: So 24.04.05 08:31 
Hi,

ich hab wieder mal gsucht aber nichts passendes gefunden (lag vielleicht auch an den wenigen Suchbegriffen die mir eingefallen sind).
Mein Problem ist, dass ich früher in D3 den ShortCut eines MainMenueintrags einfach auf 'Enter' setzten konnte. Ich war selbst überrascht aber es ging. In Delphi 2005 (wie soll's auch anders sein :wink: ) geht das nicht mehr. Was muss ich hier tun, damit er Enterdruck reagiert? Irgendwas mit Zeichensätzen?

Schonmla Danke im Vorraus!
Marc Walter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 40

Win98, WinXP
D2 Pers, D7 Pers
BeitragVerfasst: So 24.04.05 11:21 
also in D7 kann man einfach im objektinspektor in das feld shortcut 'Enter' reinschreiben, dann gehts

ansonsten könntesch ja n onkeydown-ereignis erzeugen, dass kuckt, ob enter gedrückt wurde:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
procedure TForm1.FormKeyDown(Sender: TObject; var Key: Word; Shift: TShiftState);
begin
  if key = 13 then Eintrag1.Click;
end;

_________________
möp
Fabian W. Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1766

Win 7
D7 PE
BeitragVerfasst: So 24.04.05 15:06 
Das ist das nächsteProblem, von dem ich gehofft habe das es sich im ZUge deises Thread erledigt. Sowohl im Objisp als auch auf OnKey.. geht 'Enter' nicht mehr...
Fabian W. Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1766

Win 7
D7 PE
BeitragVerfasst: Sa 30.04.05 07:53 
Weis vielleicht jemand wie so eine Zeichen für Enter eines Zeichensatztes aussehen würde?