Autor Beitrag
Hochhäusl
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 57



BeitragVerfasst: Di 03.08.04 16:35 
Hi,

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
procedure TForm1.FormKeyDown(Sender: TObject; var Key: Word;
  Shift: TShiftState);
begin
if (Char(Key) = 'S') then close;
end;


Mit diesem code beende ich das programm wenn ich auf S drücke. Ich weiß jedoch nicht wie die ESC-Taste bezeichnet wird.

Kann mir jemand weiterhelfen?



TH
Moderiert von user profile iconPeter Lustig: Code- durch Delphi-Tags ersetzt.
raziel
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 2453

Arch Linux
JS (WebStorm), C#, C++/CLI, C++ (VS2013)
BeitragVerfasst: Di 03.08.04 16:45 
ausblenden Delphi-Quelltext
1:
if (Key = VK_ESCAPE) then close;					

Wenn mich nicht alles täuscht, müssts das tun. Such einfach mal in der Delphi-Hilfe nach:
Virtuelle Tastencodes. Falls Du Delphi 7 besitzt musst Du nach Virtuelle Tatencodes suchen ;-)

raziel

_________________
JSXGraph
Hochhäusl Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 57



BeitragVerfasst: Di 03.08.04 16:49 
danke