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.
>
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
> 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) ...
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.
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
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"
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,
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
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
> 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
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 [
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
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,
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
@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
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
16 matches
Mail list logo