Draw a line that follows an object

General 2018 General.2018 at outlook.com
Sun Jun 30 15:30:57 EDT 2019


Great Guys , works a dream .

Had to change back to line from polygon - I missed that.

Thanks again

Camm

-----Original Message-----
From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf Of dunbarxx via use-livecode
Sent: 28 June 2019 21:31
To: use-revolution at lists.runrev.com
Cc: dunbarxx
Subject: Re: Draw a line that follows an object

Bad formatting. Which is why I so like the forums. Anywa:
local pointsList

on mouseDown
   show btn 1 at "200,200"
   set the points of grc 1 to "0,0" & comma & the loc of btn 1
   put the points of grc 1 & return into pointsList
   trackButton
end mouseDown

on trackButton
  if the optionKey is down then exit to top -- exit here
  set the loc of btn 1 to the mouseLoc
 
  put the loc of btn 1 & return after pointsList
  set the points of grc 1 to pointsList
  send "trackButton" to me in 1
end trackButton



--
Sent from: http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html

_______________________________________________
use-livecode mailing list
use-livecode at lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode




More information about the Use-livecode mailing list