Jump to content
Sign in to follow this  
Wb-FreeKill

Get TreeViewItemText - possible?

Recommended Posts

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()
Exit

Btw - the script in the help file under "GUICtrlRead" and the script it opens when "open this script" button is pressed ain't the same..

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...