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

Username:   Password: 
 RegisterRegister   
 Gui Not Declared Button Help
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
codergirl




PostPosted: Sat Jun 16, 2018 10:50 am   Post subject: Gui Not Declared Button Help

hi so I'm trying to add a button into my program and what it does is when I try running it is it says "GUI and ProcessEvent has not been declared"
when I take out the button from my program and run it by itself, it works fine...... what am I doing wrong?? Also, my program's a platform game where when it clicks the button, I want it to start the game

Turing:


import GUI

procedure hello
locate(1,1)
put "clicked Button #1!"
end hello

procedure hi
locate(1,1)
put "clicked Button #2!!"
end hi

var button1:int:=GUI.CreateButton(25,25,0,"Button 1",hello)
var button2:int:=GUI.CreateButton(25,50,0,"button 2",hi)

loop
exit when GUI.ProcessEvent
end loop

Sponsor
Sponsor
Sponsor
sponsor
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  [ 1 Posts ]
Jump to:   


Style:  
Search: