Jump to content
Sign in to follow this  
Floppy

Why this script doesn't work?

Recommended Posts

Floppy

#include <GuiConstants.au3>
#Include <GuiTreeView.au3>

$gui = GUICreate('', 200, 200)
$l=GUICtrlCreateTreeView(10,10,100,50)
GUICtrlCreateTreeViewItem('test1',$l)
GUICtrlCreateTreeViewItem('test2',$l)
GUISetState()

While 1
    $m=GUIGetMsg()
    Select
        Case $m=$GUI_EVENT_CLOSE
            ExitLoop
        Case $m=$l
            $mm=_GUICtrlTreeView_Index($l,_GUICtrlTreeView_GetSelection($l))
            MsgBox(0,'',$mm)
    EndSelect
WEnd

Why it doesn't work?

Edited by FSoft

Share this post


Link to post
Share on other sites
Floppy

$list_view3 ?

Sorry, I made a mistake during copy&paste. However, the script doesn't work!

Share this post


Link to post
Share on other sites
trancexx

You need to focus on items, not treeview.


♡♡♡

.

eMyvnE

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  

×