ShowFileConversionDlg method (LEADDlgFile Control)

C++ Builder example

Delphi 4.0 example

 

Builder Syntax

int ShowFileConversionDlg (TWinControl* AOwnerCtrl);

Delphi Syntax

Function ShowFileConversionDlg (AOwnerCtrl: TWinControl ): L_INT;

Overview

Refer to Using Imaging Common Dialogs.

Remarks

Displays the File Conversion dialog box, and gets the options for converting files.

The layout and action of the dialog depends on the flags set in the DlgFlags property. Possible options are:

Value

Meaning

DLG_FILECONVERSION_SHOW_CONTEXTHELP

[$00000001] dialog should contain a context sensitive help icon.

DLG_FILECONVERSION_SHOW_PREVIEW

[$00000002] show a preview of the selected image in the Source File List.

DLG_FILECONVERSION_SHOW_LOADOPTIONS

[$00000004] dialog should have an "Options" button.

DLG_FILECONVERSION_SHOW_FILEINFO

[$00000008] dialog should have a "File Info" button.

DLG_FILECONVERSION_SHOW_PREVIEW_PAGES

[$00000010] dialog should have "<" and ">" buttons.

DLG_FILECONVERSION_SHOW_RESIZE

[$00000020] dialog should have a "Resize" button.

DLG_FILECONVERSION_SHOW_ROTATE

[$00000040] dialog should have a "Rotate" button.

DLG_FILECONVERSION_SHOW_NAMINGTEMPLATE

[$00000080] dialog should have a "Naming Template" button.

DLG_FILECONVERSION_SHOW_OVERWRITE

[$00000100] dialog should have the "Overwrite" combo.

DLG_FILECONVERSION_SHOW_OVERWRITE_ASK

[$00000200] dialog should have the "Ask" option in the "Overwrite" combo.

DLG_FILECONVERSION_SHOW_OVERWRITE_SKIP

[$00000400] dialog should have the "Skip" option in the "Overwrite" combo.

DLG_FILECONVERSION_SHOW_OVERWRITE_REPLACE

[$00000800] dialog should have the "Replace" option in the "Overwrite" combo.

DLG_FILECONVERSION_SHOW_OVERWRITE_RENAME

[$00001000] dialog should have the "Rename" option in the "Overwrite" combo.

DLG_FILECONVERSION_SHOW_OVERWRITE_ALL

[$00001E00] dialog should have all overwrite options in the "Overwrite" combo.

DLG_FILECONVERSION_SHOW_ADD

[$00002000] dialog should have an "Add" button.

DLG_FILECONVERSION_SHOW_ADDFOLDER

[$00004000] dialog should have an "Add Folder" button.

DLG_FILECONVERSION_SHOW_REMOVE

[$00008000] dialog should have a "Remove" button.

DLG_FILECONVERSION_SHOW_SELECTALL

[$00010000] dialog should have a "Select All" button .

DLG_FILECONVERSION_SHOW_DELETEORIGINAL

[$00020000] dialog should have a "Delete/Overwrite File(s)" check box in the "Source File(s)" group.

DLG_FILECONVERSION_SHOW_NEWFORMATSUPDATES

[0x00040000] Dialog should have the new formats updates for version 14.5.

 

The following properties are associated with this method:

Overwrite property.

FileFormatsCount property.

FileFormats property.

DestinationPath property.

SourceFilePath property.

UseLogReport property.

RemoveSourceFile property.

ShowFullPath property.

UseOriginalFolder property.

SourceFileList property.

To include a Help button in the dialog, set the ShowHelpButton property to TRUE.

The File Conversion dialog can be seen below:

image\FileConversion.gif

See Also

Elements:

Overwrite property, FileFormatsCount property, FileFormats property, DestinationPath property, SourceFilePath property, UseLogReport property, RemoveSourceFile property, ShowFullPath property, UseOriginalFolder property, SourceFileList property, DlgFlags property, ShowHelpButton property, EnableMethodErrors property.

Topics:

Imaging Common Dialogs: Properties, Methods, and Events