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

Username:   Password: 
 RegisterRegister   
 quit button
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
yodu123




PostPosted: Wed Jun 10, 2009 12:25 pm   Post subject: quit button

i want my program to close the current running window and open the previously running window when the button Q is pressed on the keyboard. the problem i`m having is when the prevously running window opens after this currently running window is closed it has nothing other than the image on the current window. what should i do to solve this problem?
Turing:


<Add your code here>



Please specify what version of Turing you are using
<Answer Here>
Sponsor
Sponsor
Sponsor
sponsor
Tony




PostPosted: Wed Jun 10, 2009 12:33 pm   Post subject: RE:quit button

you can think of windows as viewports into the same program. If you close a window and then open another window, the net result is no-change.

You need to simply draw whatever you want the window to display.
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
yodu123




PostPosted: Wed Jun 10, 2009 5:56 pm   Post subject: RE:quit button

i have what i want to draw under the window.Open and i`m using Window.Show after i close the other window
Tony




PostPosted: Wed Jun 10, 2009 5:59 pm   Post subject: RE:quit button

sounds like you need to post some code.
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
yodu123




PostPosted: Wed Jun 10, 2009 6:15 pm   Post subject: Re: quit button

here there is my code choose level one and press "q" on the keyboard to quit which i`m having trouble with. i also have no idea how to do the highscore.it would be helpful if u help me on that to after seeing my program.


final proj.zip
 Description:

Download
 Filename:  final proj.zip
 Filesize:  609.94 KB
 Downloaded:  93 Time(s)

BigBear




PostPosted: Thu Jun 11, 2009 7:50 am   Post subject: RE:quit button

Which file do you run that uses all of your source files?
yodu123




PostPosted: Thu Jun 11, 2009 1:03 pm   Post subject: RE:quit button

sorry i forgot to tell u run the "opening" program
yodu123




PostPosted: Fri Jun 12, 2009 8:11 pm   Post subject: RE:quit button

someone please help i`m freaking out
Sponsor
Sponsor
Sponsor
sponsor
Kharybdis




PostPosted: Fri Jun 12, 2009 10:43 pm   Post subject: RE:quit button

where is the code manipulating the windows...? i don't see it in 'opening game'
yodu123




PostPosted: Fri Jun 12, 2009 11:04 pm   Post subject: RE:quit button

that is what i don`t undestand, i can find it in any of the included programs either. well it has to be somewhere but i can`t find it
andrew.




PostPosted: Sat Jun 13, 2009 3:16 pm   Post subject: RE:quit button

The code for opening the menu is in menu.t. You include it in opening.t after the first loop. Once you include it, you show that window. It shows up because you made a window called "menu" in menu.t. Just use Window.Hide when you're done with it.
yodu123




PostPosted: Sat Jun 13, 2009 5:17 pm   Post subject: RE:quit button

i got it fixed Smile thanks guys
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  [ 12 Posts ]
Jump to:   


Style:  
Search: