What is the difference between SaveDialog and FileSaveDialog in Delphi?

1

I have already used both the SaveDialog and FileSaveDialog components for the same tasks, without noticing any differences between them, except that FileSaveDialog is not compatible with Windows XP, the coexistence of the two components was a feather on a whim of the Embarcadero or do they have differentiated utilities between them?

    
asked by anonymous 04.07.2015 / 01:18

1 answer

3

The difference is that TSaveDialog uses standard windows and TFileSaveDialog uses Vista's visual.

According to the site link the following information:

TSaveDialog

TSaveDialog shows a modal dialog window to select the file name and save it. The dialog window does not appear during execution until it is activated by a call to the execution method.

When the user clicks Save the dialog window closes and saves the file name in the FileName property.

TSaveDialog is extended from TOpenDialog which is extended from TCommomDialog

TFileSaveDialog

It's a class for Vista style windows. This class is extended from TCustomFileSaveDialog , this allows to create windows with the style of Windows Vista with CLSID_FileSaveDialog and implements the interface of IFileSaveDialog

TFileSaveDialog is extended from TCustomFileSaveDialog which is extended from TCustomFileDialog .

TCustomFileDialog

Window to open and save files, this abstract base class extends to the file dialog windows for the Microsoft Windows Vista style.

Note: In new versions of Delphi you can use TSaveDialog , as it apparently detects the operating system and switches to the same windows system. p>     

04.07.2015 / 16:04