同志们,我在treeview加上了checkedbox 我现在如何判断一个treeviewitem 的checkedbox 选中了呢

执着过客 2006-02-26 01:32:28
如题
...全文
211 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
xilonger 2006-04-04
  • 打赏
  • 举报
回复
网上有很多treeview多选的示例,很容易解决这个问题
fouryears 2006-03-31
  • 打赏
  • 举报
回复
一.设置TREEVIEW的STATE属性,选择statepictureindex
:1.custom080!2.custom038!
二:在生成树时,对结点按要求进行设置,TVI.statepictureindex=2(CHECKBOX会打勾)
TVI.statepictureindex=2(CHECKBOX会打叉)
选中时statepictureindex=2,反之=1


希望对你有帮助!!!
rocky1982 2006-03-31
  • 打赏
  • 举报
回复
statepictureindex
你可以查查这个属性的相关资料,相信对你有帮助的
wepwep 2006-03-06
  • 打赏
  • 举报
回复
StatePictureIndex Integer Identifies the state picture associated with the item. The state picture appears to the left of the regular picture. If 0, no state picture appears and no space is reserved for the picture.

604

社区成员

发帖
与我相关
我的任务
社区描述
PowerBuilder 控件与界面
社区管理员
  • 控件与界面社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧