Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Windows
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Jestar




PostPosted: Wed Dec 05, 2007 3:31 pm   Post subject: Windows

Is it possible to have two Active windows open at the same time?
Sponsor
Sponsor
Sponsor
sponsor
richcash




PostPosted: Wed Dec 05, 2007 4:05 pm   Post subject: 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




PostPosted: Wed Dec 05, 2007 4:24 pm   Post subject: 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




PostPosted: Wed Dec 05, 2007 7:07 pm   Post subject: 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




PostPosted: Wed Dec 05, 2007 9:28 pm   Post subject: Re: Windows

Yes you can, but as a warning it is not perfect.

Look up in the Turing help files.
Jestar




PostPosted: Wed Dec 05, 2007 9:52 pm   Post subject: 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




PostPosted: Thu Dec 06, 2007 12:21 am   Post subject: 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




PostPosted: Thu Dec 06, 2007 10:20 am   Post subject: RE:Windows

ah yes...thanks for your help.
Sponsor
Sponsor
Sponsor
sponsor
chrisciscoioio




PostPosted: Fri Dec 07, 2007 12:07 am   Post subject: Re: Windows

Again, Strong warning, While it is possible, it should not be done, it can crash your entire computer.
Sean




PostPosted: Fri Dec 07, 2007 10:29 am   Post subject: 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.
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 10 Posts ]
Jump to:   


Style:  
Search: