Author Topic: Read-Only in wxFileDialog has no effect  (Read 6248 times)

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9723
Read-Only in wxFileDialog has no effect
« 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.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline thomas

  • Administrator
  • Lives here!
  • *****
  • Posts: 3979
Re: Read-Only in wxFileDialog has no effect
« Reply #1 on: July 05, 2006, 01:07:36 pm »
If you add the wxHIDE_READONLY flag, the checkbox is gone. Otherwise it shows.
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9723
Re: Read-Only in wxFileDialog has no effect
« Reply #2 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.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline thomas

  • Administrator
  • Lives here!
  • *****
  • Posts: 3979
Re: Read-Only in wxFileDialog has no effect
« Reply #3 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.
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."