Delphi中如何覆盖一个复合控件中的多个Button子控件的click方法?
typeTTest=class(TWinControl)privateFButton1:TButton;FButton2:TButton;FButton3:TButton...
type
TTest = class(TWinControl)
private
FButton1: TButton;
FButton2: TButton;
FButton3: TButton;//请问这三个子控件的click方法如何覆盖
{ Private declarations }
protected
procedure WMSIZE(var Message: TMessage);Message WM_SIZE;
{ Protected declarations }
public
Constructor Create(Owner: TComponent);override;
Destructor Destroy;override;
{ Public declarations }
published
{ Published declarations }
end;
如:
FButton1.click := Click1; FButton2.click := click2;
FButton3.click := click3; 展开
TTest = class(TWinControl)
private
FButton1: TButton;
FButton2: TButton;
FButton3: TButton;//请问这三个子控件的click方法如何覆盖
{ Private declarations }
protected
procedure WMSIZE(var Message: TMessage);Message WM_SIZE;
{ Protected declarations }
public
Constructor Create(Owner: TComponent);override;
Destructor Destroy;override;
{ Public declarations }
published
{ Published declarations }
end;
如:
FButton1.click := Click1; FButton2.click := click2;
FButton3.click := click3; 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询