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;
Delphi中如何覆盖一个复合控件中的多个Button子控件的click方法?
答案:2 悬赏:40 手机版
解决时间 2021-02-12 17:27
- 提问者网友:我没有何以琛的痴心不悔
- 2021-02-12 00:30
最佳答案
- 五星知识达人网友:雾月
- 2021-02-12 01:49
FButton1.OnClick = FButton1Click;
FButton2.OnClick = FButton1Click;
FButton3.OnClick = FButton1Click;
FButton2.OnClick = FButton1Click;
FButton3.OnClick = FButton1Click;
全部回答
- 1楼网友:轻雾山林
- 2021-02-12 03:23
我不会~~~但还是要微笑~~~:)
我要举报
如以上问答信息为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
大家都在看
推荐资讯