Computer Science Canada

Openign images for a program

Author:  Krocker [ Thu Nov 04, 2010 8:23 am ]
Post subject:  Openign images for a program

Hiya, can some one help me. u know how some prograsm have an image that splashes the screen when it opens. How do it with a custom image that i created for my program? I want it to splash on the screen for lik 4 seconds and then close when the program is first opened. thx

Author:  SNIPERDUDE [ Thu Nov 04, 2010 10:08 am ]
Post subject:  RE:Openign images for a program

Splash screens, as they are called, are somewhat possible in Turing.
Though you cannot create a window without the border or window frame, you could just have a the window fit to the image size, centered on screen, and display the image for a few seconds before changing the screen to the dimensions you wish.
Turing:
%let's just say the image is 300x150
View.Set ("nobuttonbar, offscreenonly, title:Welcome!, graphics:300;150, position:center;center")
Pic.ScreenLoad ("splash.bmp", 0, 0, 0)
View.Update
delay(4000)

%set the screen size back to normal for the program
View.Set("graphics:450;450")

%program goes here


Hope that helps.


: