procedure TForm1.FormMouseUp(Sender: TObject; Button: TMouseButton; Shift: TShiftState; X, Y: Integer); begin if button= MBLEFT then showmessage('left button') else if button =BMRIGHT then showmessage('right button');end;
在mousedown中 if button=mbleft then begin form1.show; end; else if button=mbright then begin form2.show; end;
Shift: TShiftState; X, Y: Integer);
begin
if button= MBLEFT then
showmessage('left button')
else if button =BMRIGHT then
showmessage('right button');end;
if button=mbleft then
begin
form1.show;
end;
else
if button=mbright then
begin
form2.show;
end;