Autor Beitrag
Andy DBase
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 42

win XP Home, win 98SE
D7 Prof
BeitragVerfasst: Sa 10.04.04 11:23 
Hallo,

ich möchte gern die Schaltflächen (BitBtn) in meinem Formular mit F-Tasten (z.B. "F8")- Taste verknüpfen, so dass der Anwender die Wahl hat, entweder die Schaltfläche anzuklicken oder eben die F-Taste zu drücken.

Andy
toms
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1099
Erhaltene Danke: 2



BeitragVerfasst: Sa 10.04.04 11:36 
Hi,

Mit der TActionList Komponente geht das ganz einfach, ohne viel zu schreiben:

Kannst dort eine neue Action erstellen, den Shortcut eingeben und im OnExecute der Action
folgendes schreiben:

ausblenden Delphi-Quelltext
1:
2:
3:
4:
procedure TForm1.Action1Execute(Sender: TObject);
begin
  BitBtn1.Click;
end;
Andy DBase Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 42

win XP Home, win 98SE
D7 Prof
BeitragVerfasst: Sa 10.04.04 12:13 
Hallo!

Danke für den Tip! Ich wusste doch, dass es ganz einfach sein muss. Schon eingebaut.

Andy