The "mouseControl" is very straightforward. The "target" would work just as 
well. In the card script:
on mouseUp  answer the targetend mouseUp

But for a line graphic, you must click right on the line, or the function will 
not work. In other words, the extent of each graphic is the same, but only the 
lines themselves will respond.This solves the problem discussed below, sort of.
Grouping them will not help.
This harkens back to just the opposite problem, discussed a couple of years 
ago, where it was desired that a click somewhere within the "extent" of the 
graphic would trigger an event.
Craig




-----Original Message-----
From: Pi Digital via use-livecode <use-livecode@lists.runrev.com>
To: How to use LiveCode <use-livecode@lists.runrev.com>
Cc: Pi Digital <s...@pidigital.co.uk>
Sent: Mon, Nov 25, 2019 2:01 pm
Subject: Re: How do I select graphics that are on top of each other with 
mousedown?

Put each one in a group control that extends one to the left and the other to 
the right

Sean Cole
Pi Digital Prod Ltd

> On 25 Nov 2019, at 18:19, William de Smet via use-livecode 
> <use-livecode@lists.runrev.com> wrote:
> 
> Hi there,
> 
> I have to square graphics (line style) on top of each other.
> They have the same width and height and form a letter X.
> 
> How do I select the different graphics?
> 
> Mousedown, MouseLoc and points of graphic?
> Any pointers are welcome.
> 
> 
> greetings,
> 
> William
> _______________________________________________
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to