View Full Version : Intro image that fades in/out
webcrtor
06-20-2008, 04:50 AM
My question is what's the best way to get this result? I would like to show an image in the center of the screen that fades in and out and then minimize my program(It's a system tray application)
I already got help for minimizing and creating a system tray menu, only problem now is to show the intro image, any help is welcome!
I tried to do it with the winapi plugin but it doesn't work well because you need to use the standard window style or it won't work(so there is a window around the image) + it just fades a black window and then shows the image.
Imagine Programming
06-20-2008, 05:35 AM
You could use the set window transparancy function in the free WindowEX plugin, WindowEX will add new functions to your action wizard :)
WindowEX (http://indigorose.com/forums/showthread.php?t=22336&highlight=windowex) <-= a lot of info and there is a link at one of the pages :)
Fade in would be:
Trans = 255;
Count = 0;
while Count < Trans do
Count=Count+1;
WindowEx.SetWindowTrans(Application.GetWndHandle() , Count);
end
etc...
webcrtor
06-20-2008, 06:50 AM
hmm the fadeout works, but not the fadein, I still get a black screen fading and then the image shows, even if the image is the background picture.
The code, onshow:
Trans = 255;
Count = 0;
while Count < Trans do
Count=Count+0.05;
WinApi.SetWindowTrans(Application.GetWndHandle(), Count);
end
Application.Sleep(2000)
Trans = 0;
Count = 255;
while Count > Trans do
Count=Count-0.05;
WinApi.SetWindowTrans(Application.GetWndHandle(), Count);
end
Application.Sleep(1000)
Window.Hide(Application.GetWndHandle());
webcrtor
06-20-2008, 10:59 AM
Ok I've found a workaround for the fade-in problem, just put in the page preload script:
WinApi.SetWindowTrans(Application.GetWndHandle(), 0);
then in the onshow:
Application.Sleep(100)
Trans = 255;
Count = 0;
while Count < Trans do
Count=Count+0.08;
WinApi.SetWindowTrans(Application.GetWndHandle(), Count);
end
and it will fade in very nice :)
RizlaUK
06-20-2008, 04:45 PM
http://www.indigorose.com/forums/showthread.php?t=21451&highlight=transition+engine
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.