Re: Draw a line that follows an object

2019-07-02 Thread Richmond via use-livecode
I don't know why. Have a bash with this: https://www.dropbox.com/s/6wzi8ln6wwgsvlo/Tortoise.livecode.zip?dl=0 On 2.07.19 19:03, Bob Sneidar via use-livecode wrote: I can't get it to draw anything. Bob S On Jul 2, 2019, at 08:30 , Richmond via use-livecode wrote: Well, well, well . . .

Re: Draw a line that follows an object

2019-07-02 Thread Bob Sneidar via use-livecode
I can't get it to draw anything. Bob S > On Jul 2, 2019, at 08:30 , Richmond via use-livecode > wrote: > > Well, well, well . . . . . > > https://www.dropbox.com/s/x2qmp9hvm43fbk7/NLCT.livecode.zip?dl=0 > > KIsses, Richmond. ___ use-livecode

Re: Draw a line that follows an object

2019-07-02 Thread Richmond via use-livecode
Well, well, well . . . . . https://www.dropbox.com/s/x2qmp9hvm43fbk7/NLCT.livecode.zip?dl=0 KIsses, Richmond. On 1.07.19 0:21, dunbarxx via use-livecode wrote: If you add points to a line graphic, which of course starts off with only two lines of points (its endpoints) it will take on the

RE: Draw a line that follows an object

2019-06-30 Thread dunbarxx via use-livecode
If you add points to a line graphic, which of course starts off with only two lines of points (its endpoints) it will take on the attributes of a polygon. Is that what you did? But either ought to do, no? Craig -- Sent from:

RE: Draw a line that follows an object

2019-06-30 Thread General 2018 via use-livecode
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-boun...@lists.runrev.com] On Behalf Of dunbarxx via use-livecode Sent: 28 June 2019 21:31 To:

Re: Draw a line that follows an object

2019-06-28 Thread dunbarx--- via use-livecode
A million ways to escape. One could substitute this for the optionKey the line: if the mouse  is down then...end if That assumes that the drawing is always done with the mouse held down. Not sure about that. And since "send in time" releases control to the machine constantly, one could add an

Re: Draw a line that follows an object

2019-06-28 Thread Rick Harrison via use-livecode
Double click to stop drawing? Rick > On Jun 28, 2019, at 4:16 PM, dunbarx--- via use-livecode > wrote: > > Not sure how you want to stop drawing. Let me know how you decide that. > Craig ___ use-livecode mailing list use-livecode@lists.runrev.com

Re: Draw a line that follows an object

2019-06-28 Thread dunbarxx via use-livecode
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

Re: Draw a line that follows an object

2019-06-28 Thread dunbarx--- via use-livecode
Hi. So much fun. Change the handler to this: local pointsListon 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 into pointsList  trackButtonend mouseDown on trackButton  if the optionKey is down then exit to top -- exit

Re: Draw a line that follows an object

2019-06-28 Thread Dar Scott Consulting via use-livecode
Do the same thing, but use a polygon and add points. > On Jun 28, 2019, at 12:21 PM, General 2018 via use-livecode > wrote: > > Hi , > > Thanks , so nearly - I have a line that follows the object from the top left > corner. > > What I need is just like drawing with a pen , the object being

RE: Draw a line that follows an object

2019-06-28 Thread General 2018 via use-livecode
Hi , Thanks , so nearly - I have a line that follows the object from the top left corner. What I need is just like drawing with a pen , the object being the tip. Where the object moves a line is drawn and remains like ink. Regards Camm -Original Message- From: use-livecode

Re: Draw a line that follows an object

2019-06-26 Thread dunbarxx via use-livecode
Hi. Not sure what you really want, but maybe try this. On a new card create a button and a line graphic. Put this into the button script: on mouseDown 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

Re: Draw a line that follows an object

2019-06-26 Thread Dar Scott Consulting via use-livecode
I don't know the best way. I would start like this (assuming my understanding of your need is even close) 1. Create the "line" object, either an open polygon or a single line segment (depending on your need), either by code or in the design. 2. Create the drawing object that you want to create