Indigo Rose Software

Professional Software Development Tools

 
+ Reply to Thread
Results 1 to 5 of 5
  1. #1
    Join Date
    Oct 2006
    Location
    Belgium
    Posts
    22

    Intro image that fades in/out

    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.

  2. #2
    Join Date
    Apr 2007
    Location
    Raalte, OV, Netherlands
    Posts
    3,287
    You could use the set window transparancy function in the free WindowEX plugin, WindowEX will add new functions to your action wizard
    WindowEX <-= a lot of info and there is a link at one of the pages

    Fade in would be:
    Code:
    Trans = 255;
    Count = 0;
    while Count < Trans do
    Count=Count+1;
    WindowEx.SetWindowTrans(Application.GetWndHandle(), Count);
    end
    etc...
    Bas Groothedde
    Imagine Programming :: Blog :: Familiar people here

    My AMS Plugins:

  3. #3
    Join Date
    Oct 2006
    Location
    Belgium
    Posts
    22
    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:
    Code:
    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());
    Last edited by webcrtor; 06-20-2008 at 05:54 AM.

  4. #4
    Join Date
    Oct 2006
    Location
    Belgium
    Posts
    22
    Ok I've found a workaround for the fade-in problem, just put in the page preload script:

    Code:
    WinApi.SetWindowTrans(Application.GetWndHandle(), 0);
    then in the onshow:

    Code:
    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

  5. #5
    Join Date
    May 2006
    Posts
    5,380
    Open your eyes to Narcissism, Don't let her destroy your life!!

Similar Threads

  1. FreePlugin: Splash Image Transition Engine DLL
    By RizlaUK in forum AutoPlay Media Studio 6.0
    Replies: 43
    Last Post: 03-26-2008, 08:41 AM
  2. Overlaping image fades
    By markstaylor in forum AutoPlay Media Studio 5.0
    Replies: 7
    Last Post: 10-07-2004, 01:42 PM
  3. Switching pictures with forward/back buttons
    By ilandv in forum AutoPlay Media Studio 4.0
    Replies: 10
    Last Post: 08-08-2004, 04:51 PM
  4. Function: Resize & Center an Image
    By kpsmith in forum AutoPlay Media Studio 5.0 Examples
    Replies: 0
    Last Post: 05-17-2004, 01:36 PM
  5. Making a Thumbnail Image Browser
    By Desmond in forum AutoPlay Media Studio 5.0 Examples
    Replies: 0
    Last Post: 09-26-2003, 02:16 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts