我SelectDirectory在delphi中使用该函数来选择一个文件夹.我将root设置为一个默认目录,用户正在查找的项目应该是.但是,如果我想能够在我上面的"上方"导航,那么我无法做到.
例如:
让我们说默认文件夹是C:\Program files\Default文件夹,当我在那里时,我可以查看所有文件夹并选择我想要的文件夹.但是,如果我想返回程序文件寻找另一个文件夹,那么我不知道我是怎么做的.
我也考虑过使用TOpenDialog,但我发现我无法选择文件夹并查看文件夹中存在的文件(重要的设置SelectDirectory).
有没有办法在根文件夹上方导航或者可能打开级联到文件夹的窗口,因为它会显示好像有人已经从计算机导航到根文件夹?
码:
SelectDirectory('Please select a directory', RootSearchLocation, ChosenDirectory,
[sdShowEdit, sdNewUI, sdShowFiles, sdValidateDir], self);
Run Code Online (Sandbox Code Playgroud)
RootSearchLocation是C:\Program files\Default文件夹,ChosenDirectory是用户选择的目录.
所需的更多信息让我知道.