Guest:
Register
|
Login
|
Member List
|
Search
|
Statistics
|
FAQ
Language
----------
Simplifed Chinese
Traditional Chinese
English
CnPack Forum
»
CnVCL 组件包
» 菜鸟求助 关于 TCnCheckTreeView组件
‹‹ Last Thread
|
Next Thread ››
Poll
Trade
Reward
Activity
Printable Version
|
Email to Friend
|
Subscription
|
Favorites
Subject: 菜鸟求助 关于 TCnCheckTreeView组件
no1xbde
新警察
UID 53065
Digest Posts 0
Credits 16
Posts 3
点点分 16
Reading Access 10
Registered 2010-10-8
Status Offline
#1
Post at 2011-1-4 16:48
Profile
|
Blog
|
P.M.
菜鸟求助 关于 TCnCheckTreeView组件
最近用了一下TCnCheckTreeView组件,刚开始看了一下Demo感觉会用了,可是到了实际中就发现问题重重
我想给TCnCheckTreeView组件的结点赋值,总是报错
例如如下的树形
-aaa
---aaa1
---aaa2
-bbb
----bbb1
--------bbb11
我用的是
ctv1.Checked[ctv1.Items[
0
]]:=True;
ctv1.Checked[ctv1.Items[
0
].Item[0]]:=False;
ctv1.Checked[ctv1.Items[
0
].Item[1]]:=True;报错了
不知道这样用对不对啊 给点例子也成
Passion
(LiuXiao)
管理员
UID 359
Digest Posts
19
Credits 6838
Posts 3591
点点分 6838
Reading Access 102
Registered 2004-3-28
Status Offline
#2
Post at 2011-1-5 20:26
Profile
|
Blog
|
P.M.
在D7下按楼主这样的节点结构与代码尝试了一下没有错误。
建议楼主在赋值Checked之前,检查一下传入的NODE是否是nil?
Poll
Trade
Reward
Activity
CnPack Forum
CnPack English Forum
> CnWizards IDE Wizards
> CVSTracNT
> Announcements & Others
All times are GMT++8, the time now is 2024-11-24 12:20
Powered by
Discuz!
5.0.0
© 2001-2006
Comsenz Inc.
Processed in 0.014814 second(s), 7 queries , Gzip enabled
TOP
Clear Cookies
-
Contact Us
-
CnPack Website
-
Archiver
-
WAP
Member's CP Home
Edit Profile
Credits Transaction
Public User Groups
Buddy List
Main
Page Views
User Agents
Posts History
Top Forums
Top Threads
Post Ranking
Credit Ranking
Online Time
Team
Moderation Stats