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

Username:   Password: 
 RegisterRegister   
 Turing button confusion
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
compnerd101




PostPosted: Sat Jan 14, 2012 4:08 am   Post subject: Turing button confusion

When incorporating buttons into turing programs, why is it nessesary to add the:

loop
exit when GUI.ProcessEvent
end loop

why is that chunk of code nessesary for buttons to work?
Sponsor
Sponsor
Sponsor
sponsor
Beastinonyou




PostPosted: Sat Jan 14, 2012 7:02 am   Post subject: Re: Turing button confusion

Well, it doesn't have to be, if you make your own buttons.

all you need to make your own button is:

1. Mouse.Where (x, y, b) % X, Y, Mouse State
2. Co-ordinates (x1, y1, x2, y2) % Bottom Left to Top Right
3. Something to do when the User clicks Between your Co-ordinates
Aange10




PostPosted: Sat Jan 14, 2012 10:17 am   Post subject: RE:Turing button confusion

But to answer your question, it is what makes the button "press-able".
mirhagk




PostPosted: Sat Jan 14, 2012 10:33 am   Post subject: RE:Turing button confusion

It basically handles all the work of checking if the button has been pressed, and responding if it has.
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  [ 4 Posts ]
Jump to:   


Style:  
Search: