Thanks, but I can't find the ofPickFolders option listed here:
https://lazarus-ccr.sourceforge.io/docs/lcl/dialogs/topenoptions.html
It's in TOpenDialog.Options
Ex, but that's not documentend on that site (yet).
I don't think it's in fixes 3 (3.6 etc).
It will be in 4.0 (and should be in upcoming 4.0 RC2), it's a recent addition, exposing all Vista+ options for the dialog that were not in present in XP.
TOpenOptionEx = (
ofHidePinnedPlaces, //Windows Vista+ Hide items shown by default in the view's navigation pane.
ofForcePreviewPaneOn, //Windows Vista+ Indicates to the Open dialog box that the preview pane should always be displayed (a NARG/NARL option IMHO)
ofStrictFileTypes, //Windows Vista+ In the Save dialog, only allow the user to choose a file that has one of the file name extensions specified through Filter property
ofPickFolders, //Windows Vista+ Turns the dialog into a TSelectDirectoryDialog
ofOkButtonNeedsInteraction, //Windows Vista+ The OK button will be disabled until the user navigates the view or edits the filename (if applicable).
ofForceFileSystem, //Windows Vista+ Ensures that returned items are file system items
ofAllNonStorageItems //Windows Vista+ Enables the user to choose any item in the Shell namespace, not just those with SFGAO_STREAM or SFAGO_FILESYSTEM attributes.
// This flag cannot be combined with FOS_FORCEFILESYSTEM.
// Intentionally not supported: ofDefaultNoMiniMode, ofHideMruPlaces: these values are not supported as of Windows 7.
);
TOpenOptionsEx = set of TOpenOptionEx;
In Lazarus main, this has been extended with yet another flag.
At current they are all Windows specific, but other widgetset dependant flags (GTK, QT, Cocoa) could be implented as well.
Bart