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

Username:   Password: 
 RegisterRegister   
 Help with Menus with GUI buttons
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Carey




PostPosted: Fri Apr 14, 2006 2:38 pm   Post subject: Help with Menus with GUI buttons

i am working on a game and trying to put a menu on it, but after the game is finished, it won't go back to the menu. i have tried putting the game in a procedure, but when the game procedure finishes, it just leaves a blank screen and the bar at the top of the program says
"game run window - finished"

i think it has something to do with the
code:


loop         %it waits until a button is pressed and then exits
exit when GUI. %(something like activated.) i don't have the program on this machine.
end loop



it might be because the GUI.something has already retured true so when it comes around from the game procedure it skips through the loop.

Anyway I need help!!!!!
Sponsor
Sponsor
Sponsor
sponsor
Bored




PostPosted: Fri Apr 14, 2006 3:24 pm   Post subject: (No subject)

First off your thinking of GUI.ProcessEvent which teturns true when GUI.Quit is called changing a value in the GUI module to true. To revert this affect use the command GUI.ResetQuit which undoes what GUI.Quit does.
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  [ 2 Posts ]
Jump to:   


Style:  
Search: