Jump to content

How to check if item in TreeView has been clicked?


Recommended Posts

You will not feel hurt if I say that example in the help exists? :(

But I can add something: method in the help not absolutely reliable, sometimes when you select new tree item, event not firing. I don't know why, it's practically impossible to reproduce, maybe even this is normal windows behaviour. So in my scripts I just read treeview by GUICtrlRead($tree) - it always safely return selected item id.

Link to comment
Share on other sites

You will not feel hurt if I say that example in the help exists? :(

But I can add something: method in the help not absolutely reliable, sometimes when you select new tree item, event not firing. I don't know why, it's practically impossible to reproduce, maybe even this is normal windows behaviour. So in my scripts I just read treeview by GUICtrlRead($tree) - it always safely return selected item id.

<{POST_SNAPBACK}>

hmm, dunno what i should be :( - it's not a particilur item, cuz i want to:

Case $msg = (treeviewpressed)
msgbox(0,"","GetselectedItemText")

currently it's:

Case $msg > 4 
$Read = GUICtrlread($MainTree,1)
        GUICtrlSetdata($CurrentPath,GUICtrlRead($DirInput) & $Read[0] & "\")
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...