TRzCheckTree

来源:互联网 发布:农村淘宝店怎么开 编辑:程序博客网 时间:2024/06/06 18:21

TRzCheckTree 
    
  if   RzCheckTree1.Selected.StateIndex   =   2   then  
      //则为选中状态  
  else   if   RzCheckTree1.Selected.StateIndex   =   1   then  
      //则为未选中状态  
  else   if   RzCheckTree1.Selected.StateIndex   =   3   then  
      //则为未全选状态   
    
    
  if   RzCheckTree1.ItemState[I]   =   csUnchecked   then   //为未选中状态  
  if   RzCheckTree1.ItemState[I]   =   cschecked   then   //为选中状态  
   
   
  2:   设置  
   
  RzCheckTree1.ItemState[I]   :=   csUnchecked     //为未选中状态  
  RzCheckTree1.ItemState[I]   :=   cschecked     //为选中状态  

 

原创粉丝点击