这个我原来做过,
procedure TMainForm.Image1MouseMove(Sender: TObject; Shift: TShiftState; X,
Y: Integer);
begin
if (x>118) and (X<218) and (y<400) and (y>292)
then
begin
speedbutton1.Visible:=true;
end
else
if (x>128) and (X<228) and (y<156) and (y>56) then
begin
speedbutton5.Visible:=true;
end
else
if (x>312) and (X<412) and (y<156) and (y>56)
then
begin
speedbutton6.Visible:=true;
end
else
if (x>304) and (X<404) and (y<400) and (y>292) then
begin
speedbutton4.Visible:=true;
end
else
if (x>60) and (X<160) and (y<276) and (y>176) then
begin
speedbutton2.Visible:=true;
end
else if (x>368) and (X<468) and (y<276) and (y>176) then
begin
speedbutton3.Visible:=true;
end
else if (x>450) and (X<520) and (y<385) and (y>344) then
begin
image2.Visible:=true;
end
else
begin
speedbutton1.Visible:=false;
speedbutton2.Visible:=false;
speedbutton3.Visible:=false;
speedbutton4.Visible:=false;
speedbutton5.Visible:=false;
speedbutton6.Visible:=false;
image2.visible:=false;
end;