Widgets as Buttons

Richmond Mathewson richmondmathewson at gmail.com
Thu Jun 22 03:13:55 EDT 2017


At the risk of looking goofy, why not create an SVG image with a solid 
border:

https://www.dropbox.com/sh/i487s2g27q8hbve/AABn_OVtPJc79uAeGlapQ-Yta?dl=0

Richmond.

On 6/22/17 9:18 am, J. Landman Gay via use-livecode wrote:
> It may just be a mobile problem (or maybe just Android) because on 
> desktop an SVG widget responds when you click in a transparent area.
>
> But to get a larger hit area you still have to make a group, because 
> SVG widgets don't have margins and they always grow to fill their 
> rectangle. It would be nice to be able to define a wide margin.
>
> But if we ever get the ability to use them as button icons, that would 
> be an even better solution.
> -- 
> Jacqueline Landman Gay         |     jacque at hyperactivesw.com
> HyperActive Software           |     http://www.hyperactivesw.com
>
>
>
> On June 21, 2017 9:53:32 PM Sannyasin Brahmanathaswami via 
> use-livecode <use-livecode at lists.runrev.com> wrote:
>
>> Re:  using widgets for buttons like disclosure triangles.
>>
>> On mobile they seem very unresponsive.
>>
>> Jacque says you have to actually tap the pixels inside the defined 
>> svg area.
>>
>> We had this discussion before relative to using small graphics as 
>> buttons. So, are we back to making small groups with a background 
>> graphic fill white with blendlevel set to 1 or tranparent button on 
>> top etc.?
>>
>> In Spotify, they have super small, tiny disclosure, reveal, popup 
>> thin arrows and they work so well, without your finger having to hit 
>> some exact target zone… It's almost as if for a small icon that may 
>> only be 20 X 20 the responsive zone is more like 50X50 with the icon 
>> in the middle so even "big thumbs" have no trouble.
>>
>> Any thoughts on best approach? What are you doing?
>>
>> One wonders if we need an enhancement request (if even possible) to 
>> set an object prop like:
>>
>> fullRectResponsive = true
>>
>> then mousedown/up works whereever you touch inside rect.
>>
>> or something like that.
>>
>> 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