Where is the "Modern looking SelectDirectory function"?

Viewed 310

This documentation page keep insisting that there is a "modern looking" SelectDirectory function.

https://www.embarcadero.com/products/rad-studio/windows-development?aldSet=en-GB

New in 10 Seattle! Modern looking SelectDirectory function.

Where I can find that?

If I invoke FileCtrl.SelectDirectory a Win3.1-like dialog pop-ups: enter image description here

Is this the new modern? Or am I missing "the other" SelectDirectory function?

1 Answers

Since Delphi 10 Seattle there is a third overload of SelectDirectory with the following comment:

Shows a select directory dialog using IFileDialog (recommended in Windows Vista or later).

The signature is:

function SelectDirectory(const StartDirectory: string; out Directories: TArray<string>; Options: TSelectDirFileDlgOpts = [];
  const Title: string = ''; const FolderNameLabel: string = ''; const OkButtonLabel: string = ''): Boolean; overload;
Related