Jump to content
Sign in to follow this  
faction

Default Check Status For Treeviewitem

Recommended Posts

faction

Hello All,

Quick... and hopefully easy question for you. I have a Treeview set with the TVS_CHECKBOXES style, and I want some items to be checked by default, and some to be unchecked. Is such a thing possible?

Hopefully my question makes sense. Thanks for your help.

Cheers.

Share this post


Link to post
Share on other sites
Zedna

Hello All,

Quick... and hopefully easy question for you. I have a Treeview set with the TVS_CHECKBOXES style, and I want some items to be checked by default, and some to be unchecked. Is such a thing possible?

Hopefully my question makes sense. Thanks for your help.

Cheers.

GUICtrlCreateTreeViewItem($text, $TreeView1)
If "some condition" Then GUICtrlSetState(-1, $GUI_CHECKED)

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  

×