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

Username:   Password: 
 RegisterRegister   
 How would i exit from a GUI???
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Tallguy




PostPosted: Wed May 30, 2007 11:42 am   Post subject: How would i exit from a GUI???

take this for example:

loop
Mouse.Where (x, y, button)

for a : 100 .. 112
if button = 1 and y = a then
menue
c1
exit when button = 1
end if
end for
end loop

every time i go to a new page, i can still access the GUI, how do i get it to stop???

if you can't understand try this..



investements.t
 Description:
download, run, and click on the same spot as the GUI on the other proc

Download
 Filename:  investements.t
 Filesize:  2.82 KB
 Downloaded:  109 Time(s)

Sponsor
Sponsor
Sponsor
sponsor
Albrecd




PostPosted: Wed May 30, 2007 1:26 pm   Post subject: Re: How would i exit from a GUI???

GUI.Dump (<wigitVariables>)

Use that when you want the GUI to disappear.
DIIST




PostPosted: Wed May 30, 2007 5:08 pm   Post subject: Re: How would i exit from a GUI???

Albrecd @ Wed May 30, 2007 1:26 pm wrote:
GUI.Dump (<wigitVariables>)

Use that when you want the GUI to disappear.

I never heard of GUI.Dump, heard of GUI.Dispose (<wigitVariables>), it gets rid of the wigit completely.
GUI.Hide (<wigitVarible>) makes it disappear, does it not? Confused
Albrecd




PostPosted: Wed May 30, 2007 5:11 pm   Post subject: Re: How would i exit from a GUI???

Ah!

Sorry about that. It's been a while since I've used Turing's built in GUI.
What I was referring to was GUI.Dispose, thanks thuvs.
Tallguy




PostPosted: Thu May 31, 2007 8:53 am   Post subject: RE:How would i exit from a GUI???

but if i'm using mouse.where, how do i get that to stop, i'm not using the per-defined GUI's
DIIST




PostPosted: Thu May 31, 2007 11:57 am   Post subject: Re: How would i exit from a GUI???

Create a Button Class, that has a method called disable. If you disable it, then it wont draw the button or even check that a mouse event occurred. Your best bet would be to make your own GUI. There should be tut, somewhere. Just read up on it. Wink
Tallguy




PostPosted: Fri Jun 01, 2007 8:01 am   Post subject: RE:How would i exit from a GUI???

but i have to use mouse.where or i fail the assignment i'm working on, can i class thatt then disable it???
Albrecd




PostPosted: Fri Jun 01, 2007 2:02 pm   Post subject: Re: How would i exit from a GUI???

You're right to use Mouse.Where.

The problem is that, after the mouse selection is registered, the procedure mouse continues to loop. You need to have an exit statement (ex: a boolean that will return true when a click is registered, and and exit when statement for that variable after the for loops).

However, once you do this, the program will no longer display the compounding period, because the menue is redrawn overtop of the text. Just remove the call to menue at the end and it should work with that exit statement.
Sponsor
Sponsor
Sponsor
sponsor
Tallguy




PostPosted: Tue Jun 05, 2007 11:08 am   Post subject: RE:How would i exit from a GUI???

i see, thanls i'll try that
Seguin




PostPosted: Tue Jun 05, 2007 11:24 am   Post subject: Re: How would i exit from a GUI???

I KNOW I KNOW!
how about you go on strike in class and tell off mr. Murry! LMAO Then take ur faling mark like a MAN! LMAO Wink
Anyways have fun with that!
btw how u get a pic on the side, and also starwars, HAHA no!
Tallguy




PostPosted: Tue Jun 05, 2007 12:03 pm   Post subject: RE:How would i exit from a GUI???

that hurts jess, i have a better mark then u! lol
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  [ 11 Posts ]
Jump to:   


Style:  
Search: