
-----------------------------------
Universal
Fri Apr 22, 2005 7:14 am

Closing the default windows
-----------------------------------
How do you close the default window that turing opens without it being declared as  a variable.

-----------------------------------
Mazer
Fri Apr 22, 2005 7:37 am


-----------------------------------
There's something about a default window id, but I can't remember exactly. Why not just avoid opening the window? It shouldn't open on it's own, unless you're drawing or outputting text, in which case you could just open your own window first.
Right? I may be wrong about this, maybe you could give more details about what you're trying to accomplish.

-----------------------------------
Martin
Fri Apr 22, 2005 8:04 am


-----------------------------------
I think it's defWinID or something along those lines.

-----------------------------------
Flikerator
Fri Apr 22, 2005 9:22 pm


-----------------------------------
Flik the window master comes to the rescue!

Window.Close (-1)

Technically that should work because the default ID is -1 (defWinID)

but as you can see you get an error.

Closing the Standard Stream isn't allowed which im sure is the defWinID :/

If I figure something out ill come post it here, for now you will have to declare it.

-----------------------------------
Martin
Fri Apr 22, 2005 10:47 pm


-----------------------------------
I think if you use Window.Hide (defWinID) at the end it'll work. Not positive though.

-----------------------------------
beard0
Sat Apr 23, 2005 2:43 pm


-----------------------------------
There's something about a default window id, but I can't remember exactly. Why not just avoid opening the window? It shouldn't open on it's own, unless you're drawing or outputting text, in which case you could just open your own window first.
Right? I may be wrong about this, maybe you could give more details about what you're trying to accomplish.
This does work.  I have done programs this way.  In turing help manual for View.Set:

"visible", "invisible", "popup" - Causes the active window to become visible (invisible or, for popup, invisible until input or output occurs in the window). 

The default window is set to popup, and cannot ever be fully closed.

-----------------------------------
Universal
Sat Apr 23, 2005 7:31 pm


-----------------------------------
dam so there really isnt any way to close it only stealth it.

-----------------------------------
[Gandalf]
Sun Apr 24, 2005 12:45 am


-----------------------------------
Ohh, that is soo evil, the power of Turing!  Combine that with Martin's virus ideas and :twisted: 

Oops, shouldn't have said that  :shifty: :naughty:
