Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Openign images for a program
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Krocker




PostPosted: 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
Sponsor
Sponsor
Sponsor
sponsor
SNIPERDUDE




PostPosted: 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.
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 2 Posts ]
Jump to:   


Style:  
Search: