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

Username:   Password: 
 RegisterRegister   
 exiting fullscreen
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
PHP God




PostPosted: Mon Mar 17, 2003 11:25 am   Post subject: exiting fullscreen

I have a program (a number guessing game that allows you to set which numbers you guess between, sad, i know). It goes into full screen, but when the user says that they don't want to play again, How can I make it exit fullscreen.
Sponsor
Sponsor
Sponsor
sponsor
Tony




PostPosted: Mon Mar 17, 2003 12:04 pm   Post subject: (No subject)

if they just dont want to play, you can terminate the program with quit

to answer your question though, you can reset the window size using

View.Set("graphics:length;height")

Note: Its the same as setscreen() , no difference.

code:

View.Set( "graphics:" + intstr(maxx-100) + ";" + intstr(maxy-100) + "" )


this will resize the screen and make it 100 pixels shorter both on X and Y axis.
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
PHP God




PostPosted: Wed Mar 19, 2003 11:58 am   Post subject: (No subject)

The quit function left the stuipid fullscreen activated, and the other code only cleared the fullscreen.

As well, anyone know how to change the background color of fullscreen program?
Tony




PostPosted: Wed Mar 19, 2003 1:03 pm   Post subject: (No subject)

quit function has different results based on your settings. Such as if at compile time you chose an option to quit the program imidiatly, it will close the window. So in other words - your program will work fine once you compile it to an .exe file

the other code resizes the window and shows X button to close it manually.

as for the background color

code:

colorback(blue)
cls
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
PHP God




PostPosted: Mon Mar 31, 2003 12:22 pm   Post subject: Text

How do i change text size and color for the entire game?
Blade




PostPosted: Mon Mar 31, 2003 12:26 pm   Post subject: (No subject)

dont know how to change the font size, but for the text color use colour()
code:
colour(blue)
cls
Tony




PostPosted: Mon Mar 31, 2003 3:14 pm   Post subject: (No subject)

you cant change the size/font of the program Confused You'd have to use Font. to display all your text.
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
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  [ 7 Posts ]
Jump to:   


Style:  
Search: