snowman533 Posted July 18, 2011 Share Posted July 18, 2011 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 More sharing options...
AdmiralAlkex Posted July 18, 2011 Share Posted July 18, 2011 FileSelectFolder()?TVExplorer UDF?Something else? (maybe if you could be more specific) .Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC ShiftSome of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface Link to comment Share on other sites More sharing options...
snowman533 Posted July 20, 2011 Author Share Posted July 20, 2011 (edited) 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 July 22, 2011 by snowman533 Intermediate AutoIt/Autohotkey User 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