how to drag with arrow keys in turing
Author |
Message |
firex2249
|
Posted: 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 |
|
|
|
|
![](images/spacer.gif) |
Sponsor Sponsor
![Sponsor Sponsor](templates/subSilver/images/ranks/stars_rank5.gif)
|
|
![](images/spacer.gif) |
TokenHerbz
![](http://compsci.ca/v3/uploads/user_avatars/717170395558e628d9452b.jpg)
|
Posted: 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. |
|
|
|
|
![](images/spacer.gif) |
BigBear
|
Posted: 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. |
|
|
|
|
![](images/spacer.gif) |
|
|