Draw a line that follows an object

Dar Scott Consulting dsc at swcp.com
Wed Jun 26 11:12:56 EDT 2019


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 the "line"
3. Create a function that is called whenever the drawing object is moved. It might either add points to the polygon or move the end of the line (depending on your need) based on the location of the moved object.
4. Call that function when the drawing object is moved. If it is moved by a script, call it there. If it is moved otherwise, choose a message to handle.


> On Jun 26, 2019, at 8:50 AM, General 2018 via use-livecode <use-livecode at lists.runrev.com> wrote:
> 
> Hi ,
> 
> What is the best way to draw a line that follows the location of an object , like using a pencil and then erase the scribble ?
> 
> Regards Camm
> _______________________________________________
> 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