Hit Box for widgets

Sannyasin Brahmanathaswami brahma at hindu.org
Tue Apr 2 03:34:15 EDT 2019


Can you use SVG widget for that? Or do you have to get the svg widget from disk?


Via mobile phone

________________________________
From: use-livecode <use-livecode-bounces at lists.runrev.com> on behalf of J. Landman Gay via use-livecode <use-livecode at lists.runrev.com>
Sent: Monday, April 1, 2019 4:24 PM
To: How to use LiveCode
Cc: J Gay
Subject: Re: Hit Box for widgets

The trick was just pointed out to me recently here on the list. You can now
"import as control" an SVG and treat it like any other image. It's genius.
Import the SVG, hide it, and assign its ID as the icon of a button. The
icon will be the same size as you make the SVG and the button itself can be
as large as you want.

--
Jacqueline Landman Gay | jacque at hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
On April 1, 2019 5:37:53 PM Sannyasin Brahmanathaswami via use-livecode
<use-livecode at lists.runrev.com> wrote:

> On a back arrow widget (SVGFontAwesome), meant to act as a button…
>
> I thought the "toachable" hit box included the context/rect that the widget
> as placed in. Or so I thought in a previous version of < 9.0.4 rc2
>
> But now in 9.0.4 RC2, I kept wondering why it did not work. But I got a
> stylus and even a touch just two pixels away from the widget, even inside
> the "rect" will not triggered. So here I was thinking…"wow performance is
> terrible, sometime it works sometimes not."
>
>
> ***********************************************
> * A touch here, **
> *
> * is not "heard" **
> *
> * by the engine **
> *
> * **
> *
> * * *
> *
> * * *
> *
> * * *
> *
> ***********************************************
>
> Is there some other way rather creating a group for every widget that is
> supposed to act as a button?
>
> BR
>
>
> _______________________________________________
> 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




_______________________________________________
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