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