Wb-FreeKill Posted June 7, 2005 Share Posted June 7, 2005 Searched the forum, could'nt find anything.. can i get the text of the TreeViewItem that im clicking? Link to comment Share on other sites More sharing options...
Lazycat Posted June 7, 2005 Share Posted June 7, 2005 Yes it's possible with beta, using GUICtrlRead in advanced mode. Refer to help for it. 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 7, 2005 Author Share Posted June 7, 2005 Yes it's possible with beta, using GUICtrlRead in advanced mode. Refer to help for it.<{POST_SNAPBACK}>Then why aint this working for me?..#include <GUIConstants.au3> GUICreate("Test",200,200) $treeview = GUICtrlCreateTreeView(10,10,180,180) $item1 = GUICtrlCreateTreeViewItem("Item1",$treeview) $item2 = GUICtrlCreateTreeViewItem("Item2",$treeview) $item3 = GUICtrlCreateTreeViewItem("Item3",$treeview) GUISetState() While 1 $msg = GUIGetMsg() Select Case $msg = $GUI_EVENT_CLOSE ExitLoop Case $msg > 0 Msgbox(0,"EventID",GUICtrlread($Item1,1)) EndSelect WEnd GUIDelete() ExitBtw - the script in the help file under "GUICtrlRead" and the script it opens when "open this script" button is pressed ain't the same.. 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