如下,编译不能通过,说父类没有DblClick函数,但是,Panel的event处理函数里是有这个函数的。为什么?
TMyPanel = class(TPanel)
private
fMouseFlag: Boolean;
fx,fy: Integer;
protected
procedure DblClick(Sender: TObject); override;
procedure MouseDown(Button: TMouseButton; Shift: TShiftState; X: Integer;
Y: Integer); override;
procedure MouseUp(Button: TMouseButton; Shift: TShiftState; X: Integer;
Y: Integer); override;
procedure MouseMove(Shift: TShiftState; X: Integer; Y: Integer); override;
end;
如果我想,通过双击一个Panel销毁该Panel对象,该怎么做?