On 7/22/16, Graeme Geldenhuys <[email protected]> wrote: > 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.
It will break every existing program that uses this dialog (including the IDE). > > As it is now, the usage is messy. Unfortunately yes. Bart -- _______________________________________________ Lazarus mailing list [email protected] http://lists.lazarus-ide.org/listinfo/lazarus
