treeview控件里的state index是做什么用的?
直接双击treeview控件,会出现一个编辑窗口,但不知道state Index这个属性是做什么用的?可以用来干什么?我怎么改,TreeView好像都没有变化。

解决方案 »

  1.   

    在节点前可标示其状态的的Images之Index;若用图片表示其选择框就用其表示,三图片表示三种状态
      

  2.   

    ndicates which image from the StateImages list to display for the node. Delphi syntax:property StateIndex: Integer;C++ syntax:__property int StateIndex = {read=FStateIndex, write=SetStateIndex, nodefault};DescriptionUse StateIndex to display an additional image for the node that reflects state information. If StateIndex is -1 then no state image is drawn.意思就是说你可以指定每个节点的状态,根据不同的状态显示不同的图标
    用StadeImages属性关联ImageList.
      

  3.   

    http://www.xmflyfish.com/awind/treechk.rar看一看