Questions tagged [tsavedialog]

TSaveDialog is a VCL control implementing a "Save As" modal dialog. It is defined in the Dialogs.pas unit.

17 questions
10
votes
2 answers

How to add a checkbox to TSaveDialog in Delphi 2010

I want to add a checkbox or other VCL component to the TSaveDialog. Cantu says, The new Vista Open and Save dialog boxes (implemented by the IFileOpenDialog and IFileSaveDialog interfaces) are directly mapped by the new FileOpenDialog and …
RobertFrank
  • 7,332
  • 11
  • 53
  • 99
9
votes
1 answer

TSaveDialog file extension and [ofOverwritePromt] issue

There is a simple question already about the idea of the TSaveDialog and [ofOverwritePromt] at Delphi overwrite existing file on save dialog. So my issue/scenario is following: I have a TSaveDialog I set the [ofOverwritePromt] in Options I set the…
Z.B.
  • 1,185
  • 9
  • 18
5
votes
2 answers

TSaveDialog and 2 formats with same extension

In TSaveDialog I added 2 formats with the same extension: Format A|*.form Format B|*.form Format C|*.diff Now I want to identify which format user chose: var Ext: String; begin if not SaveDialog1.Execute then Exit; Ext :=…
Tom
  • 2,962
  • 3
  • 39
  • 69
4
votes
1 answer

Application hangs when Open/Save dialog in windows 7

I have an application written by Delphi 7 and this application works fine in windows XP. Now i has upgrade my pc to windows 7 and everythings works fine with this application except when i click the button which will execute the TOpenDialog and…
2
votes
1 answer

Standard dialog does not popup

I have a form with a TSaveDialog. When calling the Execute function it does not popup when running from the IDE. It does popup when running stand-alone. Testing it somewhat more I found that all TSave/TOpen dialogs don't work. Not working means that…
Arnold
  • 4,578
  • 6
  • 52
  • 91
2
votes
1 answer

SaveDialog suggested filenames to match extension filter

When my program displays a SaveDialog to save a file I can use the Filter and Filter Index properties to restrict the files displayed to certain extensions. Also, when I set the DefaultExt property then, as the user types a filename, matching files…
kaj66
  • 153
  • 1
  • 11
2
votes
1 answer

Delphi 2007 - Allowing a Read-only file to be selected in a TSaveDialog

I have a need for a user to be able to select an existing read-only file from a save dialog. I thought you could do this with a judicious selection of the TSaveDialog options but I can't make it happen. If I select a R/O file, as soon as I hit…
rossmcm
  • 5,493
  • 10
  • 55
  • 118
2
votes
2 answers

SaveDialog.Execute not doing anything in Windows 7

Delphi 2007 on windows 7 just does nothing on the saveDialog.Execute call. I have seen another person mention this a few weeks back but it was with Borland c++.
JD.
  • 15,171
  • 21
  • 86
  • 159
2
votes
1 answer

Why don't the open and save dialogs show files matching the selected filter?

I want my open and save dialogs to display XML files. I have this definition: // The save dialog dlg := TSaveDialog.Create(nil); dlg.Options := [ofOverwritePrompt]; dlg.Title := 'Seleccione la ubicación del archivo'; dlg.Filter := 'Xml | *.xml |…
ramiromd
  • 2,019
  • 8
  • 33
  • 62
1
vote
1 answer

TFileSaveDialog - fdoCreatePrompt not showing a prompt?

I put a TFileSaveDialog on a form in C++ Builder and set the options fdoOverWritePrompt, fdoStrictFileTypes, fdoPathMustExist, and fdoCreatePrompt. When the dialog opens and I select an existing file, it prompts if I want to overwrite like it…
user3161924
  • 1,849
  • 18
  • 33
1
vote
2 answers

How to get the handle of a Vista style Open/SaveDialog?

I'd like to get the window handle of a new vista-style Open/SaveDialog opened by my Delphi application. It was possible with the old style dialog by parsing OnShow, but with the new style dialog there is no such event. Is there a possibility maybe…
Steve
  • 2,510
  • 4
  • 34
  • 53
1
vote
2 answers

TopenDialog/TSaveDialog with owner-drawn items

I want to implement the traditional open and save dialogs (and the underlying items being dealt with are files), but I want to have control over what is displayed in place of the filename, and include some graphics - i.e. I need an "ownerdraw" style…
rossmcm
  • 5,493
  • 10
  • 55
  • 118
0
votes
0 answers

How can I translate the captions of the TOpenDialog/TSaveDialog dialogs in Delphi 11.1.5?

I could translate the Captions[] and ButtonCaptions[] used by MessageDlg if I set the appropriate constants in the Vcl.Consts.pas. But as I can see there is no such an easy solution like this for TOpenDialog and TSaveDialog. These are Windows…
SOLID Developper
  • 672
  • 4
  • 12
0
votes
0 answers

PDFVIEW - Set Name of File when user Save

The name when user to save is C__Windows_Temp_tmp721E.tmp.pdf. How can I change this name for another? The name when user to save is C__Windows_Temp_tmp721E.tmp.pdf. How can I change this name for another?
0
votes
0 answers

BUG in Embarcadero XE6 C++ problem with chinese fonts in right-click menu on SaveDialog / OpenDialog

I'm looking for a solution how to fix the bug in SaveDialog / OpenDialog. In right-click menu I see the menu with chinese fonts. Problem exist only when I change the Project Appearance -> i.e. using Carbon style. When using Windows regular style -…
1
2