I am using the SelectDirectory
function in delphi in order to select a folder. I set the root to a default directory where the items a user is looking for should be. However if I want to be able navigate "above" where I am then I am unable to.
For example:
Lets say the default folder is C:\Program files\Default
folder and when I am in there I can view all folders and select the one I want. However if I want to return to program file to look for another folder then I do not know how I do that.
Also I had considered using TOpenDialog but I found I wan unable to select a folder and see the files that are present in the folder (a setting which is important in SelectDirectory
).
Is there a way to navigate above the root folder or possibly open the window cascaded down to the folder, as in it will display as though someone has navigated from computer to the root folder already?
Code:
SelectDirectory('Please select a directory', RootSearchLocation, ChosenDirectory,
[sdShowEdit, sdNewUI, sdShowFiles, sdValidateDir], self);
Where RootSearchLocation is C:\Program files\Default
folder and ChosenDirectory is the directory the user chooses.
Any more information needed let me know.