PDA

View Full Version : Exit Sequence


rookie
12-13-2004, 02:44 PM
How do I set get the application to be invisible/or exit before the exit splash screen appears? This will allow for only the exit splash image to be on the screen. The colors clash...

THX Rookie

JimS
12-13-2004, 03:11 PM
I’m not exactly sure what you mean about your exit splash screen.

If I understand correctly, then you probably want to place your splash screen image in the top left corner of the page, and use the action:
Window.SetSize

Set the size of the window to be the same as your exit splash screen image.

You can also use the actions
System.GetDisplayInfo
To get the dimensions of your user’s screen and

Window.SetPos
To center your image on the screen

I hope that helps.

JimS
12-13-2004, 04:22 PM
I gave you a little bad advice. Your splash image should be placed at the center of the page rather than at the top left corner.

I built you a little example project that I think will do what you want.

The code is on the ‘Splash Page’
Check ‘On Preload’, ‘On Show’, and ‘On Timer’

I hope this gives you a little better Idea of what I meant.

rookie
12-13-2004, 06:55 PM
Jim Thanks!! Look at the exit button in the attached photo. When I use this button the screen disappears before the exit splash credits (image) appears.

Worm
12-13-2004, 06:59 PM
Using Window.Hide is the way to go. Here's a little example

Look in the On Close event of the page. If your project is more than 1 page, you'll probably want to put the code in the Projects On Close event.

rookie
12-13-2004, 07:09 PM
Worm whatssssup...Just tried...the exit remains visable when the autoplay image splashes...

Thanks...rookie

Worm
12-13-2004, 07:14 PM
Hmmm, works fine here, anyone else?

rookie
12-13-2004, 07:18 PM
Your right...I used the wrong sequence...Application.Exit goes last...DUH...

Thanks!!!
Rookie...



Window.Hide(Application.GetWndHandle());
Dialog.SplashImage("AutoPlay\\Images\\Troy-Rev-202close-splash.jpg", 4, true);
Application.Exit();

TJ_Tigger
12-13-2004, 07:25 PM
Your right...I used the wrong sequence...Application.Exit goes last...DUH...

Thanks!!!
Rookie...



Window.Hide(Application.GetWndHandle());
Dialog.SplashImage("AutoPlay\\Images\\Troy-Rev-202close-splash.jpg", 4, true);
Application.Exit();

That is especially true since the upgrade.

Tigg

JimS
12-13-2004, 07:35 PM
What are you doing Worm? This was the persons’ first post! I thought the traditional forum initiation, was to send first-time posters on a ‘snipe hunt’. You know, make them waste a couple of hours, just for kicks.

I’m just teasing you rookie. :lol No one here will ever steer you wrong on purpose. I really didn’t mean to give you bum advice like that, sorry. Welcome to the forums. I’m feeling really embarrassed at the moment, I need to go back to my corner and be quite for a while.

Thanks Worm. Yes, I feel like an idiot. I wasn’t even aware of the Dialog.SplashImage action, but it was missing the Window.Hide action that really makes me feel stupid. I think it’s about time I dig in and start playing with some of the actions I’ve been neglecting.

Dialog.SplashImage Now I understand what rookie meant by ‘exit splash image’. That Brett fellow, and his team of crafty programmers, thought of everything didn’t they? :rolleyes

rookie
12-13-2004, 07:54 PM
Thanks All,

Yeah my first post with a great success. I hope to make $500.00 for this project…hope to pay for the software.

I’m splashing there commercial and adding these 6 pages: documents, links, student handout, history, and contact info.

They have the one of those nice CD burners. Maybe one day I’ll have my own...YEAH!!

Rookie…

Worm
12-13-2004, 08:06 PM
Jim, I hear you on the action thing. I think I'm a fairly hefty user of AMS. I don't think a day goes by without me running it at least once, even if its just to see the pretty dialog at the beginning :)

Even so, I forget more actions than I remember. To be honest, I think I pilfered someone elses answer to a very similar question some time ago.

Rookie, the best way to use that code (IMO, which really isn't worth much) is to have the Application.Exit() in your button as you normally would. Put the Window.Hide, and Dialog.SplashImage code in the On Shutdown of the project (Click on Project, then Actions). Using this method, no matter which page the user closes out the app, the dialog will show the way you want it to.