
-----------------------------------
Jestar
Wed Dec 05, 2007 3:31 pm

Windows
-----------------------------------
Is it possible to have two Active windows open at the same time?

-----------------------------------
richcash
Wed Dec 05, 2007 4:05 pm

Re: Windows
-----------------------------------
What do you mean? If you want multiple windows, then look up the commands in the Window module in Turing reference. Window.Open, Window.Set, Window.SetActive, etc.

If you mean multiple "active" (as Turing refers to it) windows, then I don't think that makes sense. The active window is the one receiving input, why would you want two windows receiving input?

-----------------------------------
Jestar
Wed Dec 05, 2007 4:24 pm

Re: Windows
-----------------------------------
well because i have the main game window...and then when i press a certain button a dialogue window appears...and i only want certain things to go into the dialogue window and not evreything else from the game.

-----------------------------------
richcash
Wed Dec 05, 2007 7:07 pm

Re: Windows
-----------------------------------
I'm not sure what you mean. Do you want the game to pause (window becomes inactive) and then the user enters into a dialogue box (active)? Or do you mean you want the user to be playing the game and entering into the dialogue box at the same time? If so, how?

-----------------------------------
chrisciscoioio
Wed Dec 05, 2007 9:28 pm

Re: Windows
-----------------------------------
Yes you can, but as a warning it is not perfect.

Look up in the Turing help files.

-----------------------------------
Jestar
Wed Dec 05, 2007 9:52 pm

RE:Windows
-----------------------------------
you can pause a window? that would actually be very helpfull....can you give me a basic idea of how to do this?

-----------------------------------
richcash
Thu Dec 06, 2007 12:21 am

Re: Windows
-----------------------------------
Well, Window.GetActive returns the id number of the active window. So if Window.GetActive = 1 [or whatever that particular window id is] then do the stuff in that window. That's one way of doing it, just wrap the program for that window in an if statement. So nothing affiliated with that window should change or do anything if another window is active. Is that what you mean?

-----------------------------------
Jestar
Thu Dec 06, 2007 10:20 am

RE:Windows
-----------------------------------
ah yes...thanks for your help.

-----------------------------------
chrisciscoioio
Fri Dec 07, 2007 12:07 am

Re: Windows
-----------------------------------
Again, Strong warning, While it is possible, it should not be done, it can crash your entire computer.

-----------------------------------
Sean
Fri Dec 07, 2007 10:29 am

Re: Windows
-----------------------------------
I use it when i am creating a game, have one the game menu and the other a Debug menu. Got the idea from Gooie in class the other day, inspired me to keep using to help my games out.

But, when in actual menu afterwards, dont use 2 windows, 1 is better.
