Computer Science Canada

quit button

Author:  yodu123 [ 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>

Author:  Tony [ 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.

Author:  yodu123 [ 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

Author:  Tony [ Wed Jun 10, 2009 5:59 pm ]
Post subject:  RE:quit button

sounds like you need to post some code.

Author:  yodu123 [ 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.

Author:  BigBear [ Thu Jun 11, 2009 7:50 am ]
Post subject:  RE:quit button

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

Author:  yodu123 [ Thu Jun 11, 2009 1:03 pm ]
Post subject:  RE:quit button

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

Author:  yodu123 [ Fri Jun 12, 2009 8:11 pm ]
Post subject:  RE:quit button

someone please help i`m freaking out

Author:  Kharybdis [ 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'

Author:  yodu123 [ 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

Author:  andrew. [ 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.

Author:  yodu123 [ Sat Jun 13, 2009 5:17 pm ]
Post subject:  RE:quit button

i got it fixed Smile thanks guys


: