View Full Version : Splash image transparency in Dialog.SplashImage
Superbank
06-19-2009, 04:49 AM
I am launching a splash image by Dialog.SplashImage.
How to obtain a handle of this splash window (probably with WinAPI) and change the transparency of the splash image by WinApi.SetwindowTrans ? :huh
jassing
06-20-2009, 09:01 PM
Splash images "block" code from running.
ie: if you issue
Dialog.SplashImage("MyImage.jpg",300)
Dialog.MessageBox("hi","hi")
the MessageBox won't appear for 5 minutes.
The only way around that would be to launch an exe before your splash image, then display the splash image.
Your other exe (primer file) would simply wait for that window to appear, get it's handle, change the transparancy, and then exit.
I haven't tested this -- but it seems very plausable.
jassing
06-20-2009, 10:29 PM
Using this code:
-- On Startup Code to set the transparency of the splash image
-- Setup the specific variables
local cLogo = "logo.bmp"
local nTransparency = 170;
-- Run the splash screen transparency adjuster tool
File.Run(_TempLaunchFolder.."\\SetSplashTransparancy.exe",SessionVar.Expand("\"%ProductName% Setup\" "..nTransparency.."\""),"",-1,false);
-- Display our splash screen and wait 30 seconds
Dialog.SplashImage(_TempLaunchFolder.."\\"..cLogo, 30, false);
-- Remove the two primer files, they're no longer needed.
File.Delete(_TempLaunchFolder.."\\SetSplashTransparancy.exe");
File.Delete(_TempLaunchFolder.."\\"..cLogo);
and then include your logo and the SetSplashTransparancy.exe as primer files.
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.