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
// 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