
-----------------------------------
Tallguy
Wed May 30, 2007 11:42 am

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..

-----------------------------------
Albrecd
Wed May 30, 2007 1:26 pm

Re: How would i exit from a GUI???
-----------------------------------
GUI.Dump ()

Use that when you want the GUI to disappear.

-----------------------------------
DIIST
Wed May 30, 2007 5:08 pm

Re: How would i exit from a GUI???
-----------------------------------
GUI.Dump ()

Use that when you want the GUI to disappear.
I never heard of GUI.Dump, heard of GUI.Dispose (), it gets rid of the wigit completely. 
GUI.Hide () makes it disappear, does it not? :?

-----------------------------------
Albrecd
Wed May 30, 2007 5:11 pm

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
Thu May 31, 2007 8:53 am

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
Thu May 31, 2007 11:57 am

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
Fri Jun 01, 2007 8:01 am

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
Fri Jun 01, 2007 2:02 pm

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.

-----------------------------------
Tallguy
Tue Jun 05, 2007 11:08 am

RE:How would i exit from a GUI???
-----------------------------------
i see, thanls i'll try that

-----------------------------------
Seguin
Tue Jun 05, 2007 11:24 am

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
Tue Jun 05, 2007 12:03 pm

RE:How would i exit from a GUI???
-----------------------------------
that hurts jess, i have a better mark then u! lol
