我要做个权限控制功能,试了好久,不知道怎么做成带复选框的treeview?

解决方案 »

  1.   

    I have no idea about your security design, so I don't know how it may look like.
      

  2.   

    你到www.2ccc.com 看看
    好象有三方控件
      

  3.   

    to: jiangsheng(蒋晟.MSMVP2004Jan) 
    我要了解的是:
    1、如何把VT做成带复选框的treeView且可复选;
    2、如何知道某节点为checked状态;
    3、如何把各节点与某个唯一ID相联系?
      

  4.   

    看看这个控件:
    http://www.2ccc.com/article.asp?articleid=1821
      

  5.   

    1 2 
    VT有例子,smaple中寫得很清楚呀。
    3
    用data啊,sample中也有例子。既然下載了VT,把sample也下載回來看看就行了。
      

  6.   

    http://www.soft-gems.net/VirtualTreeview/Check support  
    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. 
     
      

  7.   

    to: PPower(月亮光光,照地堂) 
    在下载的控件包里没有这样搞成带复选框的例子啊,是在哪里下载呢?
      

  8.   

    带Check的TreeView太多了。自己实现一个也不难。在www.2ccc.com 今天就公布了一个Demo
      

  9.   

    to: jiangsheng(蒋晟.MSMVP2004Jan) 
    已经设了CheckImageKind property、MiscOptions property\toCheckSupport,但还是没有出现checkbox啊
      

  10.   

    放弃这个控件了,麻烦!
    又下了1stClass,好一些,不过好像没有像杀毒软件那种根据用户选择情况,自动设置父/子节点checked状态的功能。
    最后是Raize3.1,1stClass没有的功能也实现了,除了控件包太大(20多M,而我只用其中的RzCheckTree而已,遗憾啊!),就比较完美了!^O^
      

  11.   

    给你个思路:左边放图片,三种:红色打勾,灰色打勾,不打勾。click时做判断放哪一种,click的同时将click的节点写入或删除表,此表是存储设置规则用的。展开时从这张表中读出,设置相应左图标。
    对win api熟的可以用系统带的一个参数设置,记不的叫什么了