选择路径后怎么会不见了呢?附上部分代码供参考。
; 创建控件
GUICtrlCreateLabel("本地路径:", 350, 321, 72, 12)
$hNBSPath = GUICtrlCreateInput("", 428, 318, 222, 18)
GUICtrlSetLimit(-1, 200)
$hSelectButton = GUICtrlCreateButton("S", 650, 318, 10, 18)
GUICtrlSetData($hNBSPath, $NBSPath)
; 分支事件
Case $hSelectButton
$NBSPath = FileSelectFolder("请选择本地路径并点击“确定”按钮。", "::{20D04FE0-3AEA-1069-A2D8-08002B30309D}", 1, GUICtrlRead($hNBSPath), $hConfigWnd)
If $NBSPath <> "" Then GUICtrlSetData($hNBSPath, $NBSPath)
; 后期处理
$NBSPath = StringStripWS(GUICtrlRead($hNBSPath), 3)
While StringRight($NBSPath, 1) = "\"
$NBSPath = StringTrimRight($NBSPath, 1)
WEnd
|