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
FileSaveDialog components, but also the standard OpenDialog and SaveDialog component uses
the new style when the global UseLatestCommonDialogs is set.
I have no idea what that means (I've never done any Interface programming...)
And I don't want to use third party tools.
I saw it suggested on a web search just now that I look at the TOpenPictureDialog code and copy it.
Before trying any of the paths, I thought I'd ask here for some guidance. Any suggestions on an XP through Win7 solution to adding a checkbox to a modern File, Open dialog box in a Windows-version independent manner?
Tom
Robert, you can do that using a dialog template.
First you must store the template as a resource in your app, then load the template using the
TOpenFilename
structure (don't worry by the name, is the same for open and save dialogs) and finally call theGetSaveFileName
function passing theTOpenFilename
structure.check this sample
Create a resource file (calledSaveDialog.rc) with the dialog template (look the MyCheckBox added)
this is the source code
and this is the output