redndahead Posted September 24, 2004 Posted September 24, 2004 I need to get the text of what is selected in a tree view. How would I do that? I tried GuiRead($Handle) and it didn't work out. red
Josbe Posted September 24, 2004 Posted September 24, 2004 Maybe: "- Added: ControlCommand(): SysListView32 commands added"only that, it's undocumented... AUTOIT > AutoIt docs / Beta folder - AutoIt latest beta
Holger Posted September 24, 2004 Posted September 24, 2004 (edited) @redndahead: for what do you need the text of the treeview?, cause you know the text cause you set it.GUIGetMsg() will return the ControlID of the treeviewitem and GUIRead($item) the status:GUI_CheckedGUI_UncechkedorGUI_FocusEdit: ahhh, you mean treeview I will send the implementation to Jon, but I think the controlid would be better!?Update @redndahead: thanks for asking ... $maintree = GUICtrlCreateTreeview(10,10,150,100) $item = GUICtrlCreateTreeviewItem("Options",$maintree) ... While 1 $msg = GUIGetMsg() If GUIRead($maintree) = $item Then... ... WEnd ... Edited September 24, 2004 by Holger Old project:GUI/Tray menu with icons and colors Other old stuff:IconFileScanner, TriState/ThreeState GUI TreeView, GUI ContextMenu created out of a TreeView
redndahead Posted September 25, 2004 Author Posted September 25, 2004 Well unfortunately I don't know what I set the text to. The tree was created automatically via a script. I currently array all the return values from guiCtrlCreate so I guess at the same time I can array all the text values. It would just be a heck of alot easier to just be able to read the selected item. Truthfully what I would like best is to be able to read the whole tree in one line. =) red
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