Author |
Message |
who cares?
|
Posted: Mon Oct 06, 2003 6:30 pm Post subject: GUI.ProcessEvent reset |
|
|
Hi!
How do I reset GUI.ProcessEvent to false. I want to use it twice in a loop. I know that it's boolean and it is set to true when GUI.Quit is called, but how do I reset it so that I can use it again. I have tried simply typing " GUI.ProcessEvent:=false ", but I get and error. Thank you very much. |
|
|
|
|
![](images/spacer.gif) |
Sponsor Sponsor
![Sponsor Sponsor](templates/subSilver/images/ranks/stars_rank5.gif)
|
|
![](images/spacer.gif) |
Mazer
![](http://compsci.ca/v3/uploads/user_avatars/1323750815476d9f446d80c.png)
|
Posted: Mon Oct 06, 2003 6:36 pm Post subject: (No subject) |
|
|
what's the error? |
|
|
|
|
![](images/spacer.gif) |
who cares?
|
Posted: Mon Oct 06, 2003 6:40 pm Post subject: the error is... |
|
|
The error is: "Left side of assignment is not a variable and hence cannot be assigned to". |
|
|
|
|
![](images/spacer.gif) |
Mazer
![](http://compsci.ca/v3/uploads/user_avatars/1323750815476d9f446d80c.png)
|
Posted: Mon Oct 06, 2003 8:10 pm Post subject: (No subject) |
|
|
oh... i think that GUI.ProcessEvent is actually a function with a return type of boolean. so... not sure what to do there. in what way are you trying to use it twice? because it's only set to true when GUI.Quit is called. |
|
|
|
|
![](images/spacer.gif) |
Tony
![](http://wiki.compsci.ca/images/f/f4/OniTony.gif)
|
Posted: Mon Oct 06, 2003 8:56 pm Post subject: (No subject) |
|
|
GUI.ProcessEvent is a driver function that makes all your GUI works. You call that, it calls everything else.
I suppose you can modify your GUI module and write a custom method to reset flag variable that disables ProcessEvent.
But really, you dont need to do it.
Instead of exit when GUI.ProcessEvent, you can use any other value requesting method, like IF
code: |
If GUI.ProcessEvent then
put "GUI.Quit was called"
else
put "still working"
end if
|
|
Tony's programming blog. DWITE - a programming contest. |
|
|
|
![](images/spacer.gif) |
|