View Full Version : Ending Splash Page

02-19-2004, 10:12 PM
I want to create a splash page for the end of my project. I need to have a picture appear for X seconds, but i want the project to CLOSE BEFORE displaying the picture.

The script i found in the knowlege base does the trick, but it displays the picture in front of the project. I want it to execute in this order...

1. User clicks EXIT
2. Menu/project disappears
3. Splash graphic appears within 1 second
4. Displays for 4 seconds


02-20-2004, 12:33 AM
This would be a nice feature.

An Alternative Solution:

Create 'main' exe (project).
Upon the user clicking the 'Exit' button (and/or e_Key event fires):
a. main exe, just before being destroyed, opens second exe
b. second exe (image only) is executed (thus opens)
Note: second exe was 'installed' into current user's
'temp' folder during main exe intial execute state
Also second exe (project) would be a 'Flat Style'
second exe runs for four (4) seconds and then closes.

02-20-2004, 02:34 AM
I wonder if it might be easiest if for step #2, you jump to the page that contains your splash graphic, and resize the window to be the exact size of that splash graphic. In other words, the project itself becomes your splash screen. A timer event on the page displays the page for your 4 seconds, then the project closes.

I realize that this might not be exactly what you have in mind, but it should give you an awfully similar effect. Just a thought.

02-20-2004, 07:36 AM
Here's a work-around

Look in the Project/Actions/On Shutdown for the code. Simply uses the User32.DLL ShowWindow function to hide the current window, shows a Dialog.Splash for 5 seconds, then lets the app end.

02-20-2004, 08:30 AM
:D Uhhhh, I guess you don't even need the DLL call :D

Put this in the On Shutdown event:
Dialog.SplashImage("AutoPlay\\Images\\splash.jpg", 5, false)

02-20-2004, 02:49 PM
Thanks Worm, worked like a charm! (the script)



02-20-2004, 02:54 PM
No problem, sorry for the DLL confusion. Sometimes I forget all the new features that have been rolled into this version :rolleyes: