
-----------------------------------
Flikerator
Tue Sep 20, 2005 7:15 am

Closing Windows
-----------------------------------
When a program finishes and you've opened an execution window (Like have a put statement, the window opens) it still has the window when the program is finished.

To close a window on one that you've declared you use Window.Close (WindowName). If you haven't declared you should use defWinId (The defult Window) but when I use it it gives me an error :/

Window.Close (defWinId)

-----------------------------------
Tony
Tue Sep 20, 2005 7:41 am


-----------------------------------
Isn't there an option to close/keep window(s) when you compile the program to exe?

-----------------------------------
beard0
Tue Sep 20, 2005 9:13 am


-----------------------------------
Isn't there an option to close/keep window(s) when you compile the program to exe?
There definately is, but another way to do this, if you plan on compiling multiple times and don't want to have to change it from the default (leave windows open) each time, is to open your own window before sending any output.  That way, you are able to close your window with no problem, and the default window is till hidden, due to it's "popup" status (see Window.Set in the help manual).

-----------------------------------
Flikerator
Wed Sep 21, 2005 8:18 am


-----------------------------------
Isn't there an option to close/keep window(s) when you compile the program to exe?
There definately is, but another way to do this, if you plan on compiling multiple times and don't want to have to change it from the default (leave windows open) each time, is to open your own window before sending any output.  That way, you are able to close your window with no problem, and the default window is till hidden, due to it's "popup" status (see Window.Set in the help manual).

If you haven't declared you should use defWinId 

Thats what I was asking about. Closing a window without declaring it. I now use Window.Close(win1) to close my window, but I had to declare and open a window.
