...mit der Escape Taste eine Anwendung beenden?
Autor: Dr.Lutfi Baran
procedure TForm1.FormKeyPress(Sender: TObject; var Key: Char);
begin
if key = #27 { ESC } then Close;
end;
procedure TForm1.FormCreate(Sender: TObject);
begin
Form1.KeyPreview := True;
end;
printed from
www.swissdelphicenter.ch
developers knowledge base