Gui Not Declared Button Help
Author |
Message |
codergirl
|
Posted: 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
|
|
|
|
|