那只有延迟OnClick的响应时间了,用时钟做,
把原来在OnClick中做的放到时钟里来。
var
Form1: TForm1;
clicked,dbclicked:bool;
procedure TForm1.FormClick(Sender: TObject);
begin
clicked:=true;
dbclicked:=false;
timer1.Enabled:=true;
end;
procedure TForm1.FormDblClick(Sender: TObject);
begin
clicked:=false;
dbclicked:=true;
if dbclicked then
edit2.Text:='dbclick';
end;
procedure TForm1.FormCreate(Sender: TObject);
begin
clicked:=false;
dbclicked:=false;
end;
procedure TForm1.Timer1Timer(Sender: TObject);
begin
timer1.Enabled:=false;
if clicked then
edit1.Text:='click';
end;