use-livecode Digest, Vol 168, Issue 50

hh hh at hyperhh.de
Wed Sep 27 19:53:33 EDT 2017


> > JLG wrote:
> > The original issue that influenced this one was how to provide a
> > larger hit zone on an SVG widget.
> > How would this property work for that?

> Quentin L. wrote:
> I’m thinking that a single line of code would suffice:
>
> set the clickableRegion of widget “Fred” to ListOfPoints
>
> As i’ve noted previously, the engine *already* handles clickable
> regions for *every* control ... 

No. Sadly (or luckily, depending on one's point of view) a widget is
not an ordinary control. This has to be implemented in the widget.

To see this write one that handles only the mouse events, not to
speak of a clickable region.
Even this is hard to control: who gets first which mouseEvent, the
widget's script or the widget.



More information about the use-livecode mailing list