Making ofHideReadOnly work with UseLatestCommonDialogs

Posted by Jan Goyvaerts on Stack Overflow See other posts from Stack Overflow or by Jan Goyvaerts
Published on 2010-03-27T03:45:23Z Indexed on 2010/03/27 3:53 UTC
Read the original article Hit count: 309

Filed under:

In Delphi 2007 and later, the global variable UseLatestCommonDialogs causes TOpenDialog to use the new Vista-style dialog on Windows Vista and 7. That's cool.

Unfortunately, the Vista-style dialog does not seem to support the ofHideReadOnly option of TOpenDialog. The read-only checkbox never appears regardless whether this option is set to True or False.

How can I make TOpenDialog show a read-only checkbox on the Vista-style dialog? TOpenTextFileDialog adds a combo box to the dialog regardless of whether it's Vista-style or not. It should be possible to add a read-only checkbox in the same way, but I can't figure out how to do it, even when looking at the source for TOpenTextFileDialog.

© Stack Overflow or respective owner

Related posts about delphi