procedure TForm1.FormCreate(Sender: TObject);
begin
self.KeyPreview := true;
end;
procedure TForm1.FormKeyPress(Sender: TObject; var Key: Char);
begin
if Key = #13 then
begin
Key := #0;
self.Perform(WM_NEXTDLGCTL, 0, 0)
end;
end;
阅读(986) | 评论(0) | 转发(0) |