Author |
Message |
Tallguy
![](http://compsci.ca/v3/uploads/user_avatars/515706924539b443d32a6e.gif)
|
Posted: 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..
Description: |
download, run, and click on the same spot as the GUI on the other proc |
|
![](http://compsci.ca/v3/pafiledb/images/icons/clip.gif) Download |
Filename: |
investements.t |
Filesize: |
2.82 KB |
Downloaded: |
109 Time(s) |
|
|
|
|
|
![](images/spacer.gif) |
Sponsor Sponsor
![Sponsor Sponsor](templates/subSilver/images/ranks/stars_rank5.gif)
|
|
![](images/spacer.gif) |
Albrecd
|
Posted: 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.
|
|
|
|
|
![](images/spacer.gif) |
DIIST
![](http://compsci.ca/v3/uploads/user_avatars/248212014b7d9f60741cd.jpg)
|
Posted: 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?
|
|
|
|
|
![](images/spacer.gif) |
Albrecd
|
Posted: 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.
|
|
|
|
|
![](images/spacer.gif) |
Tallguy
![](http://compsci.ca/v3/uploads/user_avatars/515706924539b443d32a6e.gif)
|
Posted: 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
|
|
|
|
|
![](images/spacer.gif) |
DIIST
![](http://compsci.ca/v3/uploads/user_avatars/248212014b7d9f60741cd.jpg)
|
Posted: 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.
|
|
|
|
|
![](images/spacer.gif) |
Tallguy
![](http://compsci.ca/v3/uploads/user_avatars/515706924539b443d32a6e.gif)
|
Posted: 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???
|
|
|
|
|
![](images/spacer.gif) |
Albrecd
|
Posted: 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.
|
|
|
|
|
![](images/spacer.gif) |
Sponsor Sponsor
![Sponsor Sponsor](templates/subSilver/images/ranks/stars_rank5.gif)
|
|
![](images/spacer.gif) |
Tallguy
![](http://compsci.ca/v3/uploads/user_avatars/515706924539b443d32a6e.gif)
|
Posted: Tue Jun 05, 2007 11:08 am Post subject: RE:How would i exit from a GUI??? |
|
|
i see, thanls i'll try that
|
|
|
|
|
![](images/spacer.gif) |
Seguin
|
Posted: 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
Anyways have fun with that!
btw how u get a pic on the side, and also starwars, HAHA no!
|
|
|
|
|
![](images/spacer.gif) |
Tallguy
![](http://compsci.ca/v3/uploads/user_avatars/515706924539b443d32a6e.gif)
|
Posted: 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
|
|
|
|
|
![](images/spacer.gif) |
|