Jump to content

Default Check Status For Treeviewitem


faction
 Share

Recommended Posts

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.

Link to comment
Share on other sites

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)
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...