Hit Box for widgets

J. Landman Gay jacque at hyperactivesw.com
Mon Apr 1 22:23:57 EDT 2019


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







More information about the use-livecode mailing list