Author |
Message |
yodu123
|
Posted: 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>
|
|
|
|
|
![](images/spacer.gif) |
Sponsor Sponsor
![Sponsor Sponsor](templates/subSilver/images/ranks/stars_rank5.gif)
|
|
![](images/spacer.gif) |
Tony
![](http://wiki.compsci.ca/images/f/f4/OniTony.gif)
|
Posted: 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.
|
Tony's programming blog. DWITE - a programming contest. |
|
|
|
![](images/spacer.gif) |
yodu123
|
Posted: 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
|
|
|
|
|
![](images/spacer.gif) |
Tony
![](http://wiki.compsci.ca/images/f/f4/OniTony.gif)
|
|
|
|
![](images/spacer.gif) |
yodu123
|
Posted: 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.
Description: |
|
![](http://compsci.ca/v3/pafiledb/images/icons/clip.gif) Download |
Filename: |
final proj.zip |
Filesize: |
609.94 KB |
Downloaded: |
93 Time(s) |
|
|
|
|
|
![](images/spacer.gif) |
BigBear
|
Posted: Thu Jun 11, 2009 7:50 am Post subject: RE:quit button |
|
|
Which file do you run that uses all of your source files?
|
|
|
|
|
![](images/spacer.gif) |
yodu123
|
Posted: Thu Jun 11, 2009 1:03 pm Post subject: RE:quit button |
|
|
sorry i forgot to tell u run the "opening" program
|
|
|
|
|
![](images/spacer.gif) |
yodu123
|
Posted: Fri Jun 12, 2009 8:11 pm Post subject: RE:quit button |
|
|
someone please help i`m freaking out
|
|
|
|
|
![](images/spacer.gif) |
Sponsor Sponsor
![Sponsor Sponsor](templates/subSilver/images/ranks/stars_rank5.gif)
|
|
![](images/spacer.gif) |
Kharybdis
![](http://compsci.ca/v3/uploads/user_avatars/111642592477ec7e78e574.gif)
|
Posted: 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'
|
|
|
|
|
![](images/spacer.gif) |
yodu123
|
Posted: 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
|
|
|
|
|
![](images/spacer.gif) |
andrew.
|
Posted: 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.
|
|
|
|
|
![](images/spacer.gif) |
yodu123
|
Posted: Sat Jun 13, 2009 5:17 pm Post subject: RE:quit button |
|
|
i got it fixed thanks guys
|
|
|
|
|
![](images/spacer.gif) |
|