Re: SVG widget and grab me command

2019-02-22 Thread Håkan Liljegren via use-livecode
Or you can use an image instead as they happily handle SVG files nowadays… :-Håkan On 21 Feb 2019, 18:18 +0100, Tore Nilsen via use-livecode , wrote: > > The simple solution was to «group» each individual SVG widget and add the > grab me command to the group. >

Re: SVG widget and grab me command

2019-02-21 Thread Tore Nilsen via use-livecode
My mistake, I meant handles, not handlers. The widgets are used to display chess pieces. The actual script «controlling" each widget/group is a behavior, where the script itself resides in a button script. Best regards Tore > 21. feb. 2019 kl. 18:36 skrev hh via use-livecode > : > >> Tore

Re: SVG widget and grab me command

2019-02-21 Thread hh via use-livecode
> Tore wrote: > Since my student does not need any handlers (in fact would not > want any handlers added to the widgets) ... That's exactly why I wrote ControlHandles: The approach doesn't change any property of a control/widget. Your approach does (grouping, scripting) ...

Re: SVG widget and grab me command

2019-02-21 Thread Tore Nilsen via use-livecode
Thanks for your explanation. Since my student does not need any handlers (in fact would not want any handlers added to the widgets), the examples from «ControlHandles89» could not be used. The simple solution was to «group» each individual SVG widget and add the grab me command to the group.

Re: SVG widget and grab me command

2019-02-21 Thread Mark Wieder via use-livecode
On 2/21/19 7:02 AM, hh via use-livecode wrote: Widgets are not ordinary controls. So this is not a bug, rather a missing feature (the widget author will have to implement an own "grab"-handler). The widget passes mouseDown but not in a way that "grab" can be used. MouseMove isn't passed (=> not

Re: SVG widget and grab me command

2019-02-21 Thread hh via use-livecode
Widgets are not ordinary controls. So this is not a bug, rather a missing feature (the widget author will have to implement an own "grab"-handler). The widget passes mouseDown but not in a way that "grab" can be used. MouseMove isn't passed (=> not usable) at all. You could try "ControlHandles89"

Re: SVG widget?

2017-05-16 Thread Mark Wieder via use-livecode
On 05/13/2017 01:46 PM, Alejandro Tejada via use-livecode wrote: Peter Thirkell wrote a widget that import SVG with multiple colors. Download this widget source code from this forum post: http://forums.livecode.com/viewtopic.php?f=93=27811=147279#p147286 I added my updates to that forum post,

Re: SVG widget?

2017-05-15 Thread Mark Waddingham via use-livecode
On 2017-05-14 00:58, hh via use-livecode wrote: Scott R. wrote: Maybe it’s more accurate to say "one single path definition" because you aren't limited to a single vector path. You can create compound graphics from multiple paths as is done in many icons and graphics. For example: go url

Re: SVG widget?

2017-05-13 Thread William Prothero via use-livecode
I wonder too. Seems with all the demand for SVG, it would be a natural to build into the engine. I’m trying to remember if getting SVG was a kickstarter goal??? Best, Bill P > On May 13, 2017, at 1:15 PM, Jonathan Lynch via use-livecode > wrote: > > I wish they

Re: SVG widget?

2017-05-13 Thread hh via use-livecode
> Scott R. wrote: > Maybe it’s more accurate to say "one single path definition" > because you aren't limited to a single vector path. You can > create compound graphics from multiple paths as is done in > many icons and graphics. > For example: > go url

Re: SVG widget?

2017-05-13 Thread Jonathan Lynch via use-livecode
I wish they would just buy an svg library and create a real svg object. This seems like such an obvious thing to do. Sent from my iPhone > On May 13, 2017, at 4:00 PM, Richmond via use-livecode > wrote: > > Well . . . . > > here [

Re: SVG widget?

2017-05-13 Thread Richmond via use-livecode
Well . . . . here [ https://livecode.com/resources/roadmap/ ] all that is mentioned is a "SVG vector shape widget" Which is what we've got :/ Obviously full, multi-path SVG import is not being considered. Richmond. On 13.05.2017 21:16, Alejandro Tejada via use-livecode wrote: What happened

Re: SVG widget?

2017-05-13 Thread Scott Rossi via use-livecode
Maybe it’s more accurate to say “one single path definition” because you aren’t limited to a single vector path. You can create compound graphics from multiple paths as is done in many icons and graphics. For example: go url "http://tactilemedia.com/download/svg_sample.livecode; Regards,

Re: SVG widget?

2017-05-13 Thread Colin Holgate via use-livecode
In LiveCode 8.1.4 the path data for the M seems to look ok, and I didn’t get any errors. > On May 13, 2017, at 9:56 AM, hh via use-livecode > wrote: > > @Colin > Your letter "R" is not part of the (single) path. > > @Richmond > The widget SVG Icon is set up to

Re: SVG widget?

2017-05-13 Thread hh via use-livecode
@Colin Your letter "R" is not part of the (single) path. @Richmond The widget SVG Icon is set up to display at most ONE SINGLE path, no matter where the path comes from. The format must according to dict fulfill the SVG specifications https://www.w3.org/TR/SVG/paths.html#PathData. Colin's

Re: SVG widget?

2017-05-13 Thread Colin Holgate via use-livecode
I tried the path data from the file I made for you. The text letter R is handled differently, but the M path data copy into LiveCode ok. > On May 13, 2017, at 9:12 AM, Richmond Mathewson via use-livecode > wrote: > > Is it true that the Livecode SVG widget is