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

Username:   Password: 
 RegisterRegister   
 how to drag with arrow keys in turing
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
firex2249




PostPosted: Fri Jan 18, 2008 10:49 pm   Post subject: how to drag with arrow keys in turing

Can someone tell how to drag a pic or anything with the arrow keys instead of the mouse, also how to put a picture up
Sponsor
Sponsor
Sponsor
sponsor
TokenHerbz




PostPosted: Sat Jan 19, 2008 11:49 am   Post subject: RE:how to drag with arrow keys in turing

You would have to make your program able to do this by using the keyboard. It's pretty simple with mouse since the x,y,button vars are so basic.

Essentially you would have to first create a point (like a mouse) to work off of. With this point you can move it with the arrow keys. Now to get a click like button, you would have to choose a char, like Z. So when the point is over a picture, z was pressed, you have the pic move with the points vars (which you move with arrow keys) untill z is pressed again, which the pic takes the perminate vars of where it is currently on the page.

if you need more assistance with pictures you should open up turing, press F10, search for "pic". theres alot of info on the subject, or you can search on the website, should be a tut somewheres to.
BigBear




PostPosted: Sat Jan 19, 2008 6:02 pm   Post subject: Re: how to drag with arrow keys in turing

To draw a picture use the command Pic.Draw or if you want to use a picture on your computer like a .jpg then use Pic.FileNew. To move it set initial x and y location then when the a key is press re draw the picture. Hope this helps.
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  [ 3 Posts ]
Jump to:   


Style:  
Search: