什么情况下image的onclick事件无法响应
procedure TForm1.FormCreate(Sender: TObject);
begin
image:= TImage.Create(self);
with image do
begin
Left := 100;
Top := 100;
parent:= self;
visable:= true;
enabled:= true;
width:= 20;
height:= 20;
Imagelist1.GetBitmap(0,image.Picture.Bitmap);
image.onclick:=imageonclick;
end;
procedure TForm1.imageonclick(Sender: TObject);
begin
showmessage('ok');
end;
以上点击image时,可以响应onclick事件,
当enabled为true,visiable为true时,什么情况下image的onclick事件无法响应