
-----------------------------------
yodu123
Wed Jun 10, 2009 12:25 pm

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?






Please specify what version of Turing you are using


-----------------------------------
Tony
Wed Jun 10, 2009 12:33 pm

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.

-----------------------------------
yodu123
Wed Jun 10, 2009 5:56 pm

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
Wed Jun 10, 2009 5:59 pm

RE:quit button
-----------------------------------
sounds like you need to post some code.

-----------------------------------
yodu123
Wed Jun 10, 2009 6:15 pm

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.

-----------------------------------
BigBear
Thu Jun 11, 2009 7:50 am

RE:quit button
-----------------------------------
Which file do you run that uses all of your source files?

-----------------------------------
yodu123
Thu Jun 11, 2009 1:03 pm

RE:quit button
-----------------------------------
sorry i forgot to tell u run the "opening"  program

-----------------------------------
yodu123
Fri Jun 12, 2009 8:11 pm

RE:quit button
-----------------------------------
someone please help i`m freaking out

-----------------------------------
Kharybdis
Fri Jun 12, 2009 10:43 pm

RE:quit button
-----------------------------------
where is the code manipulating the windows...? i don't see it in 'opening game'

-----------------------------------
yodu123
Fri Jun 12, 2009 11:04 pm

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.
Sat Jun 13, 2009 3:16 pm

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
Sat Jun 13, 2009 5:17 pm

RE:quit button
-----------------------------------
i got it fixed :) thanks guys
