Watch, Follow, &
Connect with Us
Public Report
Report From: Delphi-BCB/VCL/Dialog Controls/TOpenDialog    [ Add a report in this area ]  
Report #:  83606   Status: Open
ofHideReadOnly should work with UseLatestCommonDialogs
Project:  Delphi Build #:  14.0.3593.25826
Version:    14.0 Submitted By:   Jan Goyvaerts
Report Type:  Minor failure / Design problem Date Reported:  4/5/2010 11:57:07 PM
Severity:    Infrequently encountered problem Last Updated: 3/20/2012 2:24:39 AM
Platform:    All platforms Internal Tracking #:   275827
Resolution: None (Resolution Comments) Resolved in Build: : None
Duplicate of:  None
Voting and Rating
Overall Rating: No Ratings Yet
0.00 out of 5
Total Votes: 5
Description
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.

This breaks backward compatibility.  A Delphi 2006 application that had ofHideReadOnly set to False will lose its read only checkbox when compiled without changes with Delphi 2007, 2009, or 2010 and run on Windows Vista or 7.

I've posted a possible implementation to add the read only checkbox on Vista-style dialogs at http://stackoverflow.com/questions/2528074/making-ofhidereadonly-work-with-uselatestcommondialogs
Steps to Reproduce:
1. Start a new application
2. Drop a TOpenDialog on the form
3. Set OpenDialog1.Options.ofHideReadOnly to False in the Object Inspector
4. Double-click OpenDialog1 to show the dialog.

If you do this on XP, you get an open dialog with a read only checkbox.  If you do this on Vista, you get an open dialog without the checkbox.
Workarounds
None
Attachment
None
Comments

None

Server Response from: ETNACODE01