>How can I make a line on a form appear to swing in an arc from 100 degrees to 170 using the arrow keys?
Use the line() method of the form to draw a line and overwrite the previous line before drawing the next one. The method take four params: xOrigin, yOrigin, xDestination, yDestination
But you need to do some calculations in order to draw with differents angles on an arc.
With the following code the angle 0 deg was horizontal.
(0 deg was at 3 on a watch, 90 deg was at 6, 180 at 9, 270 at 12 and 360 at 3)
CenterX=100
CenterY=100
Radius=100
nDeg=30
MyForm.LINE(CenterX,;
CenterY,;
CenterX+(Radius*COS(DTOR(nDeg))),;
CenterY+(Radius*SIN(DTOR(nDeg))))
Play with the forecolor of the form to change the color of the line...
If we exchange an apple, we both get an apple.
But if we exchange an idea, we both get 2 ideas, cool...Gérald Santerre
Independant programmer - internet or intranet stuff - always looking for contracts big or small :)
http://www.siteintranet.qc.ca