我做了一个继承自TWinControl的ActiveX控件,在控件中声明了一个属性PicCount,同时在类声明中加入了FCOU:Integer;来接收该属性,其读写函数如下
function TWinControl.GetPicCount:Integer;
begin
Result:=FCou;
end;procedure TWinControl.Set_PicCount(Value :Integer);
begin
FCou:=Value;
end;
但是在应用时,直接在属性栏给属性PicCount赋值后,控件无法正确接收属性值,只有在程序中动态加入赋值如(PicCount:=3)时,控件才能正确接收,请问大侠们该如何解决?
function TWinControl.GetPicCount:Integer;
begin
Result:=FCou;
end;procedure TWinControl.Set_PicCount(Value :Integer);
begin
FCou:=Value;
end;
但是在应用时,直接在属性栏给属性PicCount赋值后,控件无法正确接收属性值,只有在程序中动态加入赋值如(PicCount:=3)时,控件才能正确接收,请问大侠们该如何解决?
解决方案 »
- C的函数定义,转换成Delphi
- 用Delphi接收C++发送的sendmessage消息,只能收到一个字符怎么办?
- 手写程序不能在WORD里面输入字符,请求帮助,在其他程序如QQ里面都可以。百思不得其解
- 我要想要在普通打印机上象票据打印机一样一行一行间断打印,谁知道吗?
- ADO连接Access数据库不能保存问题?
- xpmenu的颜色设置不起作用
- Delphi的封装?有点跌眼镜!! :)
- 奇怪的问题,来看看。
- 寻求合作
- 请问有能显示网络邻居的目录浏览对话框控件吗?第一个回答正确的给分
- 我用了 URLDownloadtoFile下载文件到本地盘,但如果没有上网就老是跳出 拔号框 ,怎么才能不跳出拨号框呢??
- 哪里有比较好的软件封面图片下载?
function TWinControl1X.GetPicCount:Integer;
begin
Result:=FCou;
end;procedure TWinControl1X.Set_PicCount(Value :Integer);
begin
FCou:=Value;
end;
csDesigning, csAncestor, csUpdating, csFixups, csFreeNotification,
csInline, csDesignInstance);
自己找;
property PicCount: integer read ... write... stored true;
to ihihonline 怎么设置运行期啊,能详细点吗?谢谢
FCou:=5;
csDesigning, csAncestor, csUpdating, csFixups, csFreeNotification,
csInline, csDesignInstance);
自己找;