ImageEn, unit iesettings

TIEGlobalSettings.DialogBackgroundImage

TIEGlobalSettings.DialogBackgroundImage

Declaration

property DialogBackgroundImage: TBitmap;

Description

Specify an image to use as the background of open/save dialogs. Set to nil to use the default background.

Note: This functionality is deprecated. You should use VCL styles instead

Default: nil

Example

// Load an image to use as a background
MyIEBitmap := TIEBitmap.Create();
MyIEBitmap.LoadFromFile( 'D:\MyTileBackground.jpeg' );
IEGlobalSettings().DialogBackgroundStyle := iedbCustom;
if not Assigned( IEGlobalSettings().DialogBackgroundImage ) then
  IEGlobalSettings().DialogBackgroundImage := TBitmap.Create();
IEGlobalSettings().DialogBackgroundImage.Assign( MyIEBitmap.VclBitmap );
MyIEBitmap.Free();

// Clear an existing custom background
IEGlobalSettings().DialogBackgroundStyle := iedbDefault;
// This is not necessary, but frees up some memory
if Assigned( IEGlobalSettings().DialogBackgroundImage ) then
begin
  IEGlobalSettings().DialogBackgroundImage.Free();
  IEGlobalSettings().DialogBackgroundImage := nil;
end;

See Also

DialogBackgroundStyle