improbability_paradox Posted January 20, 2007 Share Posted January 20, 2007 (edited) I've never used TreeViews in my GUI's, but it shouldn't be any harder than creating/using any other GUI control that AutoIT supports. Look up GUICtrlCreateTreeView and GUICtrlCreateTreeViewItem in the helpfile. The example under GuiCtrlCreateTreeViewItem creates a control that looks similar to what I think you want to do, so take a look at that first. Edit - Just re-read your post. In a sense, yes. You can add each item to a treeview based on its group, and have each group be a catagory of which all clients that belong to that group are sub-items/sub-catagories. I dont have any code to do it, though, as I've never used TreeViews. But like I said, take a look at that example and see what you can pull together. (at the very least, you will be heading in the right direction) Edited January 20, 2007 by improbability_paradox Link to comment Share on other sites More sharing options...
sgufa Posted January 20, 2007 Author Share Posted January 20, 2007 the problem is how to make auto-updating treeview list? the goal is to create a loop that checks for elements in array and then put them in treeview. when 1 element is deleted from array, it must be deleted from treeview. don't know how to do this... Link to comment Share on other sites More sharing options...
improbability_paradox Posted January 20, 2007 Share Posted January 20, 2007 (edited) I would make your array $cltinfo[100][4], and use the new vector to store the ControlID of the treeviewitem as you create it. $cltinfo[$cltinfo[0][0]][3]=GUICtrlCreateTreeViewitem($cltinfo[0][1], $treeviewgroupid) oÝ÷ Ù8^^*.j·n¶ÞÞjw§¶¼®æ«¬»-ué^µè~º&¶ç¯ì.²)àjëh×6_GuiCtrlTreeViewDeleteItem($GuiCtrlID, $cltinfo[$number][3]) $number needs to be the vector of the array which corresponds to the item which needs to be deleted, and is the same number that you would pass to the function _aArray $treeviewgroupid is the controlID of the group to which you want to add the items $GuiCtrlID is the GUI that contains the treeview My syntax may not be perfect, as I have never used these functions before, but this is what you will need to work out. USE THE HELP FILE! Everything in this post I put together from information I just found in the helpfile while searching through it. If I can find it, so can you. LOOK FOR IT AND EXPERIMENT! My code here may not be perfect, but the concept in it should work. I don't mind helping you out, but I think that these are things that you could put together with enough effort. Edited January 20, 2007 by improbability_paradox 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