In d7, you can stretch a pixel into a line between two points (a & b)
(by using quads):
make a bitmap that = a single black pixel.
place it at into sprite channel 100
a = point(120, 104) -- = first point
b = point(468, 240) -- = second point
lw = 2 -- = line width
sprite(100).quad = [a, a+lw, b+lw, b] -- stretch it into a line
then to display the distance in a field
x = (a[1]-b[1])*(a[1]-b[1]) + (a[2]-b[2])*(a[2]-b[2])
member("field").text = "the distance = " & string(sqrt(x))
If you need more help, please write me directly
-Buzz
At 7:39 PM +0000 9/1/02, you wrote:
>dear buzz
>
>i think i've missed the code .
>can u send it again. i shall ever be grateful to u
>
>>>sent some example code already -
>
>many thanx
>[To remove yourself from this list, or to change to digest mode, go
>to http://www.penworks.com/lingo-l.cgi To post messages to the
>list, email [EMAIL PROTECTED] (Problems, email
>[EMAIL PROTECTED]). Lingo-L is for learning and helping with
>programming Lingo. Thanks!]
[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/lingo-l.cgi To post messages to the list, email
[EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED]). Lingo-L is for
learning and helping with programming Lingo. Thanks!]