Sign in to follow this  
Followers 0
DougH

Help with TreeView

2 posts in this topic

Good day all.

I am working on a backup untility that users can select the directories they would like to backup. I am using a treeview and have the control listing and displaying the directories. I used the $TVS_CHECKBOXES option to add checkboxes next to each directory. I am having difficulty understanding how to read when a directory has a check in the checkbox.

I am using a For loop after retrieving the number of entries in the list view using _GUICtrlTreeViewGetCount.

Can anyone give me any advice on how to determine if the item read is True or False.

I figured I'd try and use the same thought to read a regular checkbox, but it does not seem to work.

$TCount = _GUICtrlTreeViewGetCount ($Tree)

For $TV = 1 to $TCount Step 1

$TVState = BitAND(_GUICtrlTreeViewGetState ($Tree1, $TCount), $GUI_CHECKED) = $GUI_Checked

Any help is appreciated.

Thanks,

Doug

Share this post


Link to post
Share on other sites



Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0