我要做个权限控制功能,试了好久,不知道怎么做成带复选框的treeview?
解决方案 »
- Image自己做了一条平滑曲线,如何获得这个曲线的最高点的X,Y值(在线等)
- 请教delphi+sql anywhere程序发布的问题
- 注意!谁有关于delphi怎样调用JavaScript,xml的资料!急!
- 关于错误的问题:
- 制作表格报表的问题。
- for循环
- 一个问题:重庆、成都、西安的网页设计师兼美工一般的工资是多少?
- 紧急求助!请问如何在DBGrid中移动一行的位置?
- 我有个自动规范源码的控件,在Delphi5下用,要的请留言!
- cxgrid的create问题
- 如此截获Application退出的消息
- inteter 和pointer 怎么转化???或者pointer和string 怎么转化???
好象有三方控件
我要了解的是:
1、如何把VT做成带复选框的treeView且可复选;
2、如何知道某节点为checked状态;
3、如何把各节点与某个唯一ID相联系?
http://www.2ccc.com/article.asp?articleid=1821
VT有例子,smaple中寫得很清楚呀。
3
用data啊,sample中也有例子。既然下載了VT,把sample也下載回來看看就行了。
Each node in the tree can have its own check type. This can either be check box (also tristate), radio button or node button. These types can freely be mixed so you can for instance have a node with 10 nodes of which 5 comprise a radio group (where only one of these 5 nodes can be checked) and the other 5 nodes can have a check box (or no check type at all).
Mixed (tri-state) check boxes with proper handling for partial checking of child nodes are supported (as often used in install and backup programs).
Automatic state change propagation for mixed check button type is possible (if enabled).
Check events OnChecking and OnCheck events are supplied too.
For special purposes a small flat button can be used, which is called a node button.
7 different kinds of check images are possible. Dark and light check s, dark and light tick s, flat check images, Windows XP style check images and application defined check images. For an overview see property TBaseVirtualTree.CheckImageKind.
在下载的控件包里没有这样搞成带复选框的例子啊,是在哪里下载呢?
已经设了CheckImageKind property、MiscOptions property\toCheckSupport,但还是没有出现checkbox啊
又下了1stClass,好一些,不过好像没有像杀毒软件那种根据用户选择情况,自动设置父/子节点checked状态的功能。
最后是Raize3.1,1stClass没有的功能也实现了,除了控件包太大(20多M,而我只用其中的RzCheckTree而已,遗憾啊!),就比较完美了!^O^
对win api熟的可以用系统带的一个参数设置,记不的叫什么了