Computer Science Canada Gui Problem Please Help thanks |
Author: | rafikoolz [ Wed Feb 25, 2009 10:47 pm ] |
Post subject: | Gui Problem Please Help thanks |
Quote: import GUI
procedure yes end yes var button4:int:=GUI.CreateButton(200,200,0,"yes",yes) var button5:int:=GUI.CreateButton(200,230,0,"no",yes) loop exit when GUI.ProcessEvent exit when button4=1 end loop Here is what you see i did. THis is an include "quit.t" file that is included to another of my file. I was trying to use include and quit.t so that i can create buttons to quit the program in another turing file. **My problem is, how do i make it so that, when the user clicks yes the program exits and when no the loop continues? ** I was having a bit of problem and i even tried with exit when button4=1 (yes i am dumb and i cant speak english correctly even if im canadian caz im getting low in english ) so yeah thanks for help. |
Author: | DanielG [ Wed Feb 25, 2009 10:59 pm ] |
Post subject: | RE:Gui Problem Please Help thanks |
have it so that the buttons change a variable from false to true or vise/versa |