Recent

Author Topic: SaveDialog option OnOverwritePromt default setting  (Read 5064 times)

Elmug

  • Hero Member
  • *****
  • Posts: 849
SaveDialog option OnOverwritePromt default setting
« on: August 23, 2012, 10:11:06 pm »
Hi everyone,

The SaveDialog option OnOverwritetePrompt default setting is False, which I believe should be set to True by default, on the Win7 installation 0.9.30.4

If this is confirmed, I'd recommend that it be set to True for a new installation.

Otherwise, naively clicking on any file shown by the dialog does the saving in a silent mode.

My earlier version of Lazarus (XP a year ago) I never had to change that setting, and it worked in the familiar way of the Windows system, i.e, prompting if one wishes to replace the existing file.

typo

  • Hero Member
  • *****
  • Posts: 3051
Re: SaveDialog option OnOverwritePromt default setting
« Reply #1 on: August 24, 2012, 01:25:41 am »
Use the bugtracker for this.

Elmug

  • Hero Member
  • *****
  • Posts: 849
Re: SaveDialog option OnOverwritePromt default setting
« Reply #2 on: August 24, 2012, 07:44:20 am »
Use the bugtracker for this.

I want the team to change it to True, if you don't mind.

BigChimp

  • Hero Member
  • *****
  • Posts: 5740
  • Add to the wiki - it's free ;)
    • FPCUp, PaperTiger scanning and other open source projects
Re: SaveDialog option OnOverwritePromt default setting
« Reply #3 on: August 24, 2012, 07:57:49 am »
So use the link to your left, go to the bugtracker, enter an issue in the bugtracking system with all relevant information.
If you don't do that, the team will not change that. They work based on entries in the bugtracker, they don't scan the forum for posts.
See:
http://wiki.lazarus.freepascal.org/How_do_I_create_a_bug_report

By the way, 0.9.30.4 is getting old, you might want to try 1.0RC2 and confirm this behaviour on that version.
Want quicker answers to your questions? Read http://wiki.lazarus.freepascal.org/Lazarus_Faq#What_is_the_correct_way_to_ask_questions_in_the_forum.3F

Open source including papertiger OCR/PDF scanning:
https://bitbucket.org/reiniero

Lazarus trunk+FPC trunk x86, Windows x64 unless otherwise specified

ludob

  • Hero Member
  • *****
  • Posts: 1173
Re: SaveDialog option OnOverwritePromt default setting
« Reply #4 on: August 24, 2012, 08:49:16 am »
A "svn blame dialogs.pp" shows that the default options for Savedialog have been [ofEnableSizing, ofViewDetail] since rev 5335 (20 Mar 2004), before that no defaults were set. ofOverwritePrompt was never set by default.
So if you got an overwrite prompt on XP you had changed the option or there was a bug in the Pre-Vista handling of this option.

This being said, the default on windows is ofOverwritePrompt on. So requesting a change based on that info is not a bad idea although it will break backwards compatibility for a lot of programs.

Bart

  • Hero Member
  • *****
  • Posts: 5666
    • Bart en Mariska's Webstek
Re: SaveDialog option OnOverwritePromt default setting
« Reply #5 on: August 24, 2012, 11:00:38 am »
Since we aim to be Delphi compatible for these common controls, what are the default settings for Delphi for TSaveDialog.Options?

Bart

ludob

  • Hero Member
  • *****
  • Posts: 1173
Re: SaveDialog option OnOverwritePromt default setting
« Reply #6 on: August 24, 2012, 11:17:27 am »
Google "delphi TSavedialog TOpenOptions default", first hit:
http://docwiki.embarcadero.com/Libraries/en/Vcl.Dialogs.TOpenDialog.Options

 

TinyPortal © 2005-2018