同志门帮帮忙,对你们来说很简单的 TComponent不是容器有ComponentCount的属性吗???? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 to:wr960204(武稀松) 我现在是这个属性在对象管理器里不显示呀 property componentsum:integer read ActionList default 2;放在published内声明主 题:同志门帮帮忙,对你们来说很简单的作 者:wd2306所属论坛:Delphi问题点数:20回复次数:7发表时间:2002-2-5 11:26:02 我写了一个组件,可是我想显示componentcount这个属性,怎么没有啊,下面的代码什么地方有问题呀unit myComponent;interfaceuses Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs;type TmyComponent = class(TComponent) private //ComponentList:TComponent; ActionList:integer; { Private declarations } protected { Protected declarations } public constructor createIt(Aowner:Tcomponent); { Public declarations } published property componentsum:integer read ActionList default 2; { Published declarations } end;procedure Register;implementationconstructor TmyComponent.createIt(Aowner:Tcomponent);begininherited Create(Aowner);ActionList:=ComponentCount;end;procedure Register;begin RegisterComponents('Samples', [TmyComponent]);end;end. 极度郁闷 在delphi6.0中使用post方法对oracle数据库中的多主键表中存数据时会出现"多步操作产生错误"? 如何得到连接到本机的物理打印机? 非常奇怪的问题啊~~~~在线等待 如何安装 DELPHI 2005 测量字符串长度的问题 vclskin导致主菜单不能换行,显示不全 自动退出Delhpi6 如何得到richedit中光标当前所在行(line)? 帮忙解决一个简单的问题吧,谢谢!解决不了也来up一下 求解!与word和数据库相关!——我的一些思路有值得学习的地方,但还是有问题要问! 如何使消息框在1秒后自动关闭,而不用点击其上的确认按扭
我现在是这个属性在对象管理器里不显示呀
放在published内声明主 题:同志门帮帮忙,对你们来说很简单的
作 者:wd2306
所属论坛:Delphi
问题点数:20
回复次数:7
发表时间:2002-2-5 11:26:02
我写了一个组件,可是我想显示componentcount这个属性,怎么没有啊,下面的代码什么地方有问题呀
unit myComponent;interfaceuses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs;type
TmyComponent = class(TComponent)
private
//ComponentList:TComponent;
ActionList:integer;
{ Private declarations }
protected
{ Protected declarations }
public
constructor createIt(Aowner:Tcomponent);
{ Public declarations }
published
property componentsum:integer read ActionList default 2; { Published declarations }
end;procedure Register;implementation
constructor TmyComponent.createIt(Aowner:Tcomponent);
begin
inherited Create(Aowner);
ActionList:=ComponentCount;
end;
procedure Register;
begin
RegisterComponents('Samples', [TmyComponent]);
end;end.