Wb-FreeKill Posted June 8, 2005 Share Posted June 8, 2005 As topic, how do i check if some item in a Treeview has been clicked, like: Case $msg = $TreeView? Link to comment Share on other sites More sharing options...
Lazycat Posted June 8, 2005 Share Posted June 8, 2005 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. Koda homepage ([s]Outdated Koda homepage[/s]) (Bug Tracker)My Autoit script page ([s]Outdated mirror[/s]) Link to comment Share on other sites More sharing options...
Wb-FreeKill Posted June 8, 2005 Author Share Posted June 8, 2005 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now