ImageEn, unit iesettings

TIEImageEnGlobalSettings.DialogBackgroundImage

TIEImageEnGlobalSettings.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.

Default: nil


Example

// Load an image to use as a background
MyIEBitmap := TIEBitmap.create;
MyIEBitmap.Read( '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