On 2016-07-22 11:17, Mattias Gaertner wrote: > TSelectDirectoryDialog is a specialized TOpenDialog. > > TSelectDirectoryDialog = class(TOpenDialog) > TOpenDialog = class(TFileDialog) > TFileDialog = class(TCommonDialog)
I know all that, I checked before I replied. My point is you have a DIRECTORY select dialog, but you have to use a Filename property to retrieve the selected Directory Name. Makes no sense. If you must use the TFileDialog functionality, then at least add another class in the hierarchy (eg: TCustomFileDialog) where properties like "DefaultExt", "FileName", "Files" etc are not published. Then TSelectDirectoryDialog can descend from that, and then publish a "Directory" and "DirectoryList" (if multiple directory selection is supported) properties which internally reads the Filename value. As it is now, the usage is messy. Regards, Graeme -- _______________________________________________ Lazarus mailing list [email protected] http://lists.lazarus-ide.org/listinfo/lazarus
