PcExpert Posted March 12, 2009 Posted March 12, 2009 Hi all, How to select a specific item when a listbox item is clicked? I already made the event with a simple MSGBox that works, but ofcourse I need the event to select the right item of the treeview. I already looked at the _GUICtrlTReeview_setstate() and _GUICtrlTReeview_setselected(). But those functions didnt work for me because the items are loaded from an ini-file, so I dont know the ID's. Could somebody show me how I could archieve this? Thanks!
Zedna Posted March 12, 2009 Posted March 12, 2009 (edited) $tree = ControlGetHandle(...) $node = _GUICtrlTreeView_FindItem($tree, 'text of tree item', True); substring _GUICtrlTreeView_SelectItem($tree, $node) Edited March 12, 2009 by Zedna Resources UDF ResourcesEx UDF AutoIt Forum Search
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