Code::Blocks Forums

Developer forums (C::B DEVELOPMENT STRICTLY!) => Development => Topic started by: MortenMacFly on July 05, 2006, 12:51:15 pm

Title: Read-Only in wxFileDialog has no effect
Post by: MortenMacFly on July 05, 2006, 12:51:15 pm
Dear all,
a collegue of mine has told me an issue he was experiencing: When you open a file with C::B under Windows there is a checkbox "read-only" visible in the file open dialog. But whether you check this or not has no effect. Unfortunately Windows users are used to applications that force a read-only mode when opening files and having this checkbox enabled (independent of whether the file is actually read-only on the FS or not).
I had a lo at the wxWidgets docu to look for wxFileDialog but it is written there as flag:
Code
wxHIDE_READONLY:
    Do not display the checkbox to toggle display of read-only files.
    Deprecated in 2.6; the checkbox is never shown.
But it doesn's seem like that because the checkbox is definetely there and I'm using v2.6.3. Could  somebody confirm that this is not only on our PC's, please? What to do?!
With regards, Morten.
Title: Re: Read-Only in wxFileDialog has no effect
Post by: thomas on July 05, 2006, 01:07:36 pm
If you add the wxHIDE_READONLY flag, the checkbox is gone. Otherwise it shows.
Title: Re: Read-Only in wxFileDialog has no effect
Post by: MortenMacFly on July 05, 2006, 02:04:47 pm
If you add the wxHIDE_READONLY flag, the checkbox is gone. Otherwise it shows.
...so I vote for adding this to C::B to avoid confusions allthough it's deprecated concerning the docus.
Title: Re: Read-Only in wxFileDialog has no effect
Post by: thomas on July 05, 2006, 02:13:25 pm
Lol, don't vote, just add it :)

Personally, I never open anything read-only anyway, so I would never notice. However someone who actually uses the read-only box may really find it annoying and confusing.