Markus Posted September 19, 2009 Share Posted September 19, 2009 (edited) How is it possible to collapse a TreeViewItem? Thank you in advance. _GUICtrlTreeView_Expand(...) doesn't help because the treeview doesn't "remember" which childs have been expanded and which childs have been collapsed, when the parent node is expanded again. I want the usual double click behavior just for a single click. Edited September 19, 2009 by Markus "It's easier to disintegrate an atom than a prejudice." (A.Einstein)---------------------------------------------------------------------------My C++ - tools:Tidy tool-->indents your c++ sourceCleanscript --> cleans autoit-code before compiling (co-author: peethebee)My tools:GUIBuilder-->build your window and get the source; german versionMy Games:OnlineGameCenter-->Online Chess and Connect4 with a rtf-chatSnake-->including a level editor to build your own levelsTetris-->the well known game, big funOther things:Tower of Hanoi-->perfect riddler with graphic output Link to comment Share on other sites More sharing options...
Mat Posted September 19, 2009 Share Posted September 19, 2009 ControlTreeView is the function you want... ControlTreeView ($hGUI, "", $hTree, "Collapse", "MyItem") Mat AutoIt Project Listing Link to comment Share on other sites More sharing options...
Markus Posted September 19, 2009 Author Share Posted September 19, 2009 (edited) ControlTreeView is the function you want... ControlTreeView ($hGUI, "", $hTree, "Collapse", "MyItem") Mat Somehow that only works for the top most nodes for me, not for child nodes, they neither expand nor collapse EDIT: found the error, i had used _GUICtrlTreeView_GetText instead of _GUICtrlTreeView_GetTree there ControlTreeView ($gui, "", $treeview, "Expand", _GUICtrlTreeView_GetTree($treeview,$idsCats[$i])) Edited September 19, 2009 by Markus "It's easier to disintegrate an atom than a prejudice." (A.Einstein)---------------------------------------------------------------------------My C++ - tools:Tidy tool-->indents your c++ sourceCleanscript --> cleans autoit-code before compiling (co-author: peethebee)My tools:GUIBuilder-->build your window and get the source; german versionMy Games:OnlineGameCenter-->Online Chess and Connect4 with a rtf-chatSnake-->including a level editor to build your own levelsTetris-->the well known game, big funOther things:Tower of Hanoi-->perfect riddler with graphic output Link to comment Share on other sites More sharing options...
Mat Posted September 19, 2009 Share Posted September 19, 2009 good to see it working! Mat AutoIt Project Listing Link to comment Share on other sites More sharing options...
Markus Posted September 19, 2009 Author Share Posted September 19, 2009 Thank you :-) "It's easier to disintegrate an atom than a prejudice." (A.Einstein)---------------------------------------------------------------------------My C++ - tools:Tidy tool-->indents your c++ sourceCleanscript --> cleans autoit-code before compiling (co-author: peethebee)My tools:GUIBuilder-->build your window and get the source; german versionMy Games:OnlineGameCenter-->Online Chess and Connect4 with a rtf-chatSnake-->including a level editor to build your own levelsTetris-->the well known game, big funOther things:Tower of Hanoi-->perfect riddler with graphic output 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