如何在一个控件中加入自己的属性 比如在treenode中 加入一个与 text 类似的属性 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 同意qxj(小小小小小小程序员) 具体的再自己加一个属性...private YourText:string; function ReadYourText:string; procedure SetYourText(s:string);published property YourText:string read ReadYourText write SetYourText;...end;在实现部分(略写)SetYourText中 YourText:=s; ReadYourText中 result:=YourText; 参考一下:Delphi的VCL中,如何实现TCheckListBox的。当然,您的问题没有此类中实现的复杂,但是参考一下,您会受益匪浅。 求CLX程序的"跨平台"的真相 类型不匹配,真不知道哪错了??高手帮忙 dbgrideh插入时,空白行第一列自动赋值+1,怎么实现? 急求一SQL语句的写法,请帮忙。。。。。。。 如何用IDFingerServer组件得到某用户的详细信息 如何实现在两程序间共享大于256字节的字符串资源?(内存共享) delphi的难题 字符串'12354343',如何取出从第三个以后所有字符 关于动态按钮创建和如何正确释放 batchmove 的问题 在线等待!DELPHI按键的值 几个始终没有回答的问题
具体的
再自己加一个属性
...
private
YourText:string;
function ReadYourText:string;
procedure SetYourText(s:string);
published
property YourText:string read ReadYourText write SetYourText;
...
end;
在实现部分(略写)SetYourText中 YourText:=s; ReadYourText中 result:=YourText;