I need to be able to select folders using the native Windows 7 open dialog, ie. not by using SelectDirectory().
I currently have a procedure that calls up a dialog using TOpenFileName, which works quite well.
Is there a hidden flag that I can use to ensure the dialog only allows the selection of a folder, where the button changes to “Select Folder”?
Note: I don’t want to use Delphi’s standard TFileOpenDialog. I would prefer to stick to my own functions for this.
No there is not. You need to use
TFileOpenDialogwhich wrapsIFileDialogwhich is the system component that provides this functionality.