找回密码
 加入
搜索
查看: 4098|回复: 4

如何打开文件夹对话框?

[复制链接]
发表于 2008-5-29 23:50:53 | 显示全部楼层 |阅读模式


如图,选择要打开的文件夹,并返回值赋输入框


[ 本帖最后由 陌上风 于 2008-5-30 00:38 编辑 ]

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?加入

×
发表于 2008-5-30 00:14:29 | 显示全部楼层
#include <GUIConstants.au3>

#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 284, 78, 193, 125)
$Input1 = GUICtrlCreateInput("", 32, 24, 121, 21)
$Button1 = GUICtrlCreateButton("Button1", 168, 24, 75, 25, 0)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
        $nMsg = GUIGetMsg()
        Switch $nMsg
                Case $GUI_EVENT_CLOSE
                        Exit
                Case $Button1
                        $var = FileSelectFolder("请选择一个文件夹:", "")
                        If Not @error then GUICtrlSetData($Input1,$var)
        EndSwitch
WEnd
发表于 2008-5-30 00:36:12 | 显示全部楼层
$listitem = GUICtrlRead($hLIST)
$listtext = GUICtrlRead($listitem, 1)
guisetdate($input, $listtext)]
不太清楚你的树形列表是用基本库作的,还是UDF做的,刚才那个只能在基本库用,这个是UDF里的

[ 本帖最后由 netegg 于 2008-5-30 00:41 编辑 ]
 楼主| 发表于 2008-5-30 00:38:09 | 显示全部楼层
谢谢!
发表于 2011-5-5 22:50:37 | 显示全部楼层
看看。。。。。。。。。
您需要登录后才可以回帖 登录 | 加入

本版积分规则

QQ|手机版|小黑屋|AUTOIT CN ( 鲁ICP备19019924号-1 )谷歌 百度

GMT+8, 2024-10-2 06:33 , Processed in 0.100031 second(s), 21 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表