Jump to content

Help with using a treeview


Recommended Posts

topic says it all

#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#Include <Misc.au3>

$gui=GUICreate("File Maker", 500, 500)
GUISetState(@SW_SHOW, $gui)
$BtnCreate=GUICtrlCreateButton("Create", 10, 10, 50, 20)
$BtnExit=GUICtrlCreateButton("Exit", 440, 10, 50, 20)
$TreeView = GUICtrlCreateTreeView (10, 100,450, 200) 

While 1
        $msg = GUIGetMsg()
        if $msg = $BtnExit then ExitLoop
        If $msg = $GUI_EVENT_CLOSE Then ExitLoop
    WEnd
        GUIDelete()
        
Func Create($dir)
    EndFunc

all i want to do is create a treeview where someone could select where in computer to create the files

i gotta rewrite my file maker program as i lost the source, this feature is newer, if anyone remembers that Utils.exe or File Maker i posted a while back, which for some reason they longer exist on the forum :)

thanks in advance

Intermediate AutoIt/Autohotkey User

Link to comment
Share on other sites

TVExplorer UDF is what i was after, but now its not showing anything on the control, maybe i have misunderstood it

#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#Include <Misc.au3>
#Include <TreeViewConstants.au3>
#include <TVExplorer.au3>

$gui=GUICreate("File Maker", 500, 500)
GUISetState(@SW_SHOW, $gui)
$BtnCreate=GUICtrlCreateButton("Create", 10, 10, 50, 20)
$BtnExit=GUICtrlCreateButton("Exit", 440, 10, 50, 20)
$TreeView = _GUICtrlTVExplorer_Create(@SystemDir, 20, 48, 320, 310, -1, $WS_EX_CLIENTEDGE, -1, '_TVEvent')

While 1
        $msg = GUIGetMsg()
        if $msg = $BtnExit then ExitLoop
        If $msg = $GUI_EVENT_CLOSE Then ExitLoop
    WEnd
        GUIDelete()
        
Func Create($dir)
    EndFunc

edit: screw it ill just use FileSelectFolder and a textbox

Edited by snowman533

Intermediate AutoIt/Autohotkey User

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...