Drawing a Graphice Segment

Mike Bonner bonnmike at gmail.com
Mon Jul 27 20:07:24 CEST 2015


Yeah, this was a very basic example, and it cycles through all graphic
objects (except the first).. If you want it to only allow one to hilite, it
would take a little extra coding to reset the previous hilite back to
normal, and hilite the newest.. Or something of that nature.  (i'd have to
think on it for a bit)
One method, after thinking about it for a sec.. Would be to track which
part was hilited last, and when a new hilite is set, revert it, set the new
hilite, and update the variable that tracks the hilite to the newest
object.  This would make it a bit weird, as there would be a precedence to
the hilites.  If you're nudging more than 1 object, the one with the
highest number will always end up with the hilite.
I'll keep thinkin. Theres probably a better way.

On Mon, Jul 27, 2015 at 11:19 AM, Terence Heaford <t.heaford at icloud.com>
wrote:

>
> > On 25 Jul 2015, at 22:37, Mike Bonner <bonnmike at gmail.com> wrote:
> >
> > Added some tweaks to make it function better, it works pretty well now,
> Try
> > re-downloading for the newest version.
> > https://dl.dropboxusercontent.com/u/11957935/mouseover.livecode
> >
>
>
> Finally got it to work, however….
>
> I have noticed if you move your mouse carefully at the junction of two
> segments you can get them both to highlight green.
>
> Is there a setting that needs tweaking?
>
>
> All the best
>
> Terry
> _______________________________________________
> 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