Autor Beitrag
Swordooo
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 119

W2K, Windows XP Professional
Delphi 2005 Personal, Delphi 7 Personal
BeitragVerfasst: So 06.07.08 12:04 
Hi @ alle,
Ich möchte mir ein Programm proggen, dass auf Druck von "F1" geschlossen wird (Form1.Close). Jedoch finde ich nichts passendes in der Suche.

MfG Swordooo
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: So 06.07.08 12:08 
KeyPreview der Form auf True und dann das:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
procedure TForm1.FormKeyDown(Sender: TObject; var Key: Word;
  Shift: TShiftState);
begin
  case key of
    vk_f1: close;
  end;
end;

_________________
We are, we were and will not be.
Swordooo Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 119

W2K, Windows XP Professional
Delphi 2005 Personal, Delphi 7 Personal
BeitragVerfasst: So 06.07.08 12:10 
cool danke!
Blawen
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 616
Erhaltene Danke: 33

Win XP, Vista, 7
Delphi 5 Prof., BDS 2006 Prof. RAD Studio XE
BeitragVerfasst: So 06.07.08 13:44 
user profile iconSwordooo hat folgendes geschrieben:
Ich möchte mir ein Programm proggen, dass auf Druck von "F1" geschlossen wird (Form1.Close)
F1 ist im Normalfall zum aufrufen der Hilfe vorgesehen...

_________________
Es kompilert, wir können ausliefern.
Und es kompiliert wieder - das Update ist fertig - bitte 100 Euro ;-)
j.klugmann
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: So 06.07.08 15:11 
Ich würde escape vorschlagen. :P
Swordooo Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 119

W2K, Windows XP Professional
Delphi 2005 Personal, Delphi 7 Personal
BeitragVerfasst: So 06.07.08 15:59 
Jo ich progg das Programm für meinen Freund und der will das so^^