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

Username:   Password: 
 RegisterRegister   
 Gui Problem Please Help thanks
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
rafikoolz




PostPosted: 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 Razz and i cant speak english correctly even if im canadian caz im getting low in english Smile )

so yeah thanks for help.
Sponsor
Sponsor
Sponsor
sponsor
DanielG




PostPosted: 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
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: