TIEImageEnGlobalSettings.UseWindowsOpenSaveDialogs
Declaration
property UseWindowsOpenSaveDialogs: Boolean;
Description
Whether ImageEn's
Open and
Save dialogs are used for ImageEn methods.
If this is set to false, the standard Windows dialogs will be used.
It affects these methods:
-
TImageEnIO.ExecuteOpenDialog-
TImageEnIO.ExecuteSaveDialog-
TImageEnMIO.ExecuteOpenDialog-
TImageEnMIO.ExecuteSaveDialog-
TImageEnMIO.DoSavePreviewDialog-
TIEImageLayer.ExecuteOpenDialogAnd these Actions:
-
TImageEnViewPromptToOpen-
TImageEnViewPromptToSave-
TImageEnViewLayersPromptToOpen-
TImageEnViewLayersPromptToSave-
TIEImageLayerExecuteOpenDialog-
TImageEnMViewPromptToOpen-
TImageEnMViewPromptToSaveDefault: False
Notes:
- When enabled, you will not get an "Advanced" button to configure image properties when saving
- This option does not affect ImageEn
TOpenImageEnDialog and
TSaveImageEnDialog. Use
ModernDialog instead
- You can also undefine IEINCLUDEOPENSAVEDIALOGS in ie.inc
Example
// Display standard ImageEn style style dialog (default)
IEGlobalSettings().UseWindowsOpenSaveDialogs := False;
sFilename := ImageEnView1.IO.ExecuteOpenDialog();
if sFilename <> '' then
ImageEnView1.IO.LoadFromFile(sFileName);
// Convert Open/Save dialogs to use modern Windows style dialog
IEGlobalSettings().UseWindowsOpenSaveDialogs := True;
sFilename := ImageEnView1.IO.ExecuteOpenDialog();
if sFilename <> '' then
ImageEnView1.IO.LoadFromFile(sFileName);