T
tl_lyq
Unregistered / Unconfirmed
GUEST, unregistred user!
这样为什么也报错:
procedure MouseDown(Sender: TObject
Button: TMouseButton;
Shift: TShiftState
X, Y: Integer);
begin
if Button <> mbRight then
begin
ReleaseCapture;
(sender as tspeedbutton).Perform(WM_SysCommand, $f017, 0);
end;
end;
procedure Tjtplt1.SpeedButton1Click(Sender: TObject);
begin
(sender as tspeedbutton).OnMouseDown :=mousedown;{运行至此报错。incompatible types:"tobject" and "tmousedown"}
end;
procedure MouseDown(Sender: TObject
Button: TMouseButton;
Shift: TShiftState
X, Y: Integer);
begin
if Button <> mbRight then
begin
ReleaseCapture;
(sender as tspeedbutton).Perform(WM_SysCommand, $f017, 0);
end;
end;
procedure Tjtplt1.SpeedButton1Click(Sender: TObject);
begin
(sender as tspeedbutton).OnMouseDown :=mousedown;{运行至此报错。incompatible types:"tobject" and "tmousedown"}
end;