Selecting a file using TSelectDirectoryDialog lazarus / 31-LCL ---------------------------------------------------------------------- Relativity · 2015-08-11 13:09 I would like to offer the user the possibility to choose a file to open having an overview of the directory-tree, therefore I was thinking of using TSelectDirectoryDialog. I have tested it and it seems that it lets you only select a directory and no file. Isn't it possible to select also a file in the chosen directory ? Should I maybe call TOpenDialog upon closing TSelectDirectoryDialog, passing to TOpenDialog the chosen directory, so that the user can then choose the file through TOpenDialog having the chosen directory preset ? I see that TSelectDirectoryDialog is actually a daughter of TOpenDialog and I was wondering whether TSelectDirectoryDialog inherits the TOpenDialog's capabilities, hence making also possible to choose a file. ---------------------------------------------------------------------- Bart · 2015-08-11 13:22 The standard TOpenDialog on most wigdgetsets has an easy way of browsing the directory tree. Just use that for opening files. It was made for it, and users expect this behaviour. Bart ---------------------------------------------------------------------- Relativity · 2015-08-11 13:29 Bart, you are right. Thank you very much.