Re: Create image from SVG widget

2020-09-23 Thread Brian Milby via use-livecode
If it is placed in a library that is distributed with the IDE, then you wouldn’t need to worry about the LCB side of it. If it is easy enough to translate a path in the compile code, LCB wouldn’t be needed at all. I just didn’t spend enough time to figure it out. Sent from my iPhone > On Sep

Re: Create image from SVG widget

2020-09-23 Thread Klaus major-k via use-livecode
Hi Brian, > Am 23.09.2020 um 14:12 schrieb Brian Milby via use-livecode > : > > It doesn’t require an actual file, just an XML document. yes, I understood that already. 8-) > I posted LCB code to convert the SVG path to what is needed for the compile. > It will require an engine change or

Re: Create image from SVG widget

2020-09-23 Thread Brian Milby via use-livecode
It doesn’t require an actual file, just an XML document. I posted LCB code to convert the SVG path to what is needed for the compile. It will require an engine change or LCB to get the path translated to remove top/left extra space. I think the best way would be to update one of the LCB

Re: Create image from SVG widget

2020-09-23 Thread Klaus major-k via use-livecode
Hi all, FYI: I just created an enhancement request to make drawingSVGCompile also work internally with a widget: > Am 22.09.2020 um 10:08 schrieb Klaus major-k via use-livecode > : > Hi Brian, >> Am 22.09.2020 um 05:38 schrieb Brian Milby via

Re: Create image from SVG widget

2020-09-22 Thread Klaus major-k via use-livecode
> (widget), and as a SVG Compiled Drawing (image). There is some >> additional >>>> code available that will translate the path (effectively trim extra >> space >>>> around the image) that I have not incorporated. >>> >>> thank you! >>&

Re: Create image from SVG widget

2020-09-21 Thread Brian Milby via use-livecode
n the browser widget, as a SVG path > >> (widget), and as a SVG Compiled Drawing (image). There is some > additional > >> code available that will translate the path (effectively trim extra > space > >> around the image) that I have not incorporated. > > > > t

Re: Create image from SVG widget

2020-09-21 Thread Brian Milby via use-livecode
r svg file is rendered in the browser widget, as a SVG path >> (widget), and as a SVG Compiled Drawing (image). There is some additional >> code available that will translate the path (effectively trim extra space >> around the image) that I have not incorporated. > > thank yo

Re: Create image from SVG widget

2020-09-21 Thread Klaus major-k via use-livecode
ffectively trim extra space > around the image) that I have not incorporated. thank you! But I thought we could do this from a SVG widget without the need of a .svg FILE. Was I dreaming? Best Klaus -- Klaus Major https://www.major-k.de kl...@major-k.de _

Re: Create image from SVG widget

2020-09-21 Thread Brian Milby via use-livecode
I need a little hint, I forgot what command creates an image > >> from an SVG widget. 8-) > >> ... > >> set the text of img 1 to ???(???) > >> ... > >> Thanks for any hint! > > > > Dunno. > > very helpful, thank you. :-D > > > I e

Re: Create image from SVG widget

2020-09-21 Thread Klaus major-k via use-livecode
Hi Mark, > Am 21.09.2020 um 22:31 schrieb Mark Wieder via use-livecode > : > On 9/21/20 12:57 PM, Klaus major-k via use-livecode wrote: >> Hi friends, >> I need a little hint, I forgot what command creates an image >> from an SVG widget. 8-) >

Re: Create image from SVG widget

2020-09-21 Thread Mark Wieder via use-livecode
On 9/21/20 12:57 PM, Klaus major-k via use-livecode wrote: Hi friends, I need a little hint, I forgot what command creates an image from an SVG widget. 8-) ... set the text of img 1 to ???(???) ... Thanks for any hint! Dunno. I export a snapshot from the widget. -- Mark Wieder ahsoftw

Create image from SVG widget

2020-09-21 Thread Klaus major-k via use-livecode
Hi friends, I need a little hint, I forgot what command creates an image from an SVG widget. 8-) ... set the text of img 1 to ???(???) ... Thanks for any hint! Best Klaus -- Klaus Major https://www.major-k.de kl...@major-k.de ___ use-livecode

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

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"

SVG widget and grab me command

2019-02-21 Thread Tore Nilsen via use-livecode
When one of my students tried to use grab me command in a mouseDown handler on a SVG widget, some strange things happened. In run-mode, the script did not work as expected. The widget would not move with the mouse. When switching back to edit mode, the widget started to move with the mouse

Re: Let's rotate an SVG widget

2018-01-07 Thread Richmond Mathewson via use-livecode
"But you can compute the needed rectangle and resize the widget accordingly by LC Script." Indeed: but that presupposes I'm NOT a lazy slob8-) http://forums.livecode.com/viewtopic.php?f=8=30405 Richmond. On 7/1/2018 11:58 am, hh via use-livecode wrote: Maintain aspect ratio is for resizing

Re: Let's rotate an SVG widget

2018-01-07 Thread hh via use-livecode
Maintain aspect ratio is for resizing the svg object when resizing the widget. What you want is probably that the widget resizes its rectangle *minimally* so that the size of the svg remains unchanged when rotating. That's not (yet) available in LCB. But you can compute the needed rectangle and

Re: Let's rotate an SVG widget

2018-01-07 Thread Richmond Mathewson via use-livecode
8 10:43 am, Richmond Mathewson wrote: So, I imported an SVG from Inkscape into an SVG widget . . . Then I tried to rotate the thing; it rotated, it kept "swelling and shrinking" because its bounding box was square. This is not cutting the mustard. Richmond. _

Let's rotate an SVG widget

2018-01-07 Thread Richmond Mathewson via use-livecode
So, I imported an SVG from Inkscape into an SVG widget . . . Then I tried to rotate the thing; it rotated, it kept "swelling and shrinking" because its bounding box was square. This is not cutting the mustard. Richmond. ___ use-liveco

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
; being considered. >> >> Richmond. >> >>> On 13.05.2017 21:16, Alejandro Tejada via use-livecode wrote: >>> What happened to the multiple color SVG widget? >>> http://forums.livecode.com/viewtopic.php?f=93=27811=147279#p147286 >>> >>> Al >&g

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

SVG widget?

2017-05-13 Thread Alejandro Tejada via use-livecode
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 Could you compile and use it in your own LiveCode setup? Al

Re: SVG widget?

2017-05-13 Thread Jonathan Lynch via use-livecode
e [ 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 Tej

Re: SVG widget?

2017-05-13 Thread Richmond via use-livecode
t happened to the multiple color SVG widget? http://forums.livecode.com/viewtopic.php?f=93=27811=147279#p147286 Al Scott Rossi 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 mult

SVG widget?

2017-05-13 Thread Alejandro Tejada via use-livecode
What happened to the multiple color SVG widget? http://forums.livecode.com/viewtopic.php?f=93=27811=147279#p147286 Al Scott Rossi 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 grap

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 > <use-livecode@lists.runrev.com> wrote: > > Is it true that the L

SVG widget?

2017-05-13 Thread Richmond Mathewson via use-livecode
Is it true that the Livecode SVG widget is ONLY setup to deal with code pasted from Inkscape SVG images? Might be time for Livecode to "fess up". Richmond. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to

Re: Drop Shadow Not Available on SVG widget

2016-10-31 Thread Devin Asay
On Oct 30, 2016, at 11:48 PM, Jeanne A. E. DeVoto wrote: > > At 4:51 AM + 10/31/2016, Sannyasin Brahmanathaswami wrote: >> Any work arounds? > > > Can you put it in a group and set a drop shadow for the group? Just tried that. It works beautifully. Devin Devin

Re: Drop Shadow Not Available on SVG widget

2016-10-31 Thread Mark Waddingham
On 2016-10-31 05:51, Sannyasin Brahmanathaswami wrote: is it worth asking for an enhancement? or is this just "not going to happen, no way, no how" because of the nature of SVG inside a widget? I've filed a report in the quality center: http://quality.livecode.com/show_bug.cgi?id=18735 I

Re: Drop Shadow Not Available on SVG widget

2016-10-31 Thread hh
DropShadow can be made available in LCB, just extend the widget with your code for that and rebuild it. Or: Use the SVGText-widget, which has (fixed) dropshadow. For that do in the Property Inspector of the SVGText-widget [1] check "useShadow" in section "Colors", [2] copy the iconPath of the

Re: Drop Shadow Not Available on SVG widget

2016-10-30 Thread Jeanne A. E. DeVoto
At 4:51 AM + 10/31/2016, Sannyasin Brahmanathaswami wrote: Any work arounds? Can you put it in a group and set a drop shadow for the group? ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe,

Drop Shadow Not Available on SVG widget

2016-10-30 Thread Sannyasin Brahmanathaswami
I guess I can understand why the SVG which has no graphic effects available. OTHO If one has a series of icons along a toolbar, mixing different control types, we need it. You can set graphic effects for button 1 (which uses a letter for it's label) # nice drop shadow button 2 (which uses a

Re: Re: (Re: Apply an SVG Widget as a single object in a st....)

2016-06-19 Thread James Hale
Firstly sorry about the subject less post and secondly for my double post (seeing I didn't see my first post due to it having no subject. Phew!) Anyway, rjd318 asked... > Ah! What's the library stack that does the svg path conversion? The latest version is included on the last post to this

Re: Apply an SVG Widget as a single object in a stack to multiple buttons as icon?

2016-06-19 Thread Klaus major-k
Hi all, > Am 19.06.2016 um 07:03 schrieb Richard Gaskin : > > Sannyasin Brahmanathaswami wrote: > > > With images we can import a raster "object" and then set the icon > > of a button to that image. > > > > Wouldn't it be nice to be able to do the same with a SVG

Re: Apply an SVG Widget as a single object in a stack to multiple buttons as icon?

2016-06-19 Thread Richmond
Well: Let's start at the beginning (Yes, I know; that's oozing with originality; sorry.): 1. How does one import an SVG image in the IDE? [By that I don't mean "fekking around" extracting path data and so on]. 2. I popped the 'black star' SVG thingy on a stack and tried to set a button up so

Re: Apply an SVG Widget as a single object in a stack to multiple buttons as icon?

2016-06-18 Thread Richard Gaskin
Sannyasin Brahmanathaswami wrote: > With images we can import a raster "object" and then set the icon > of a button to that image. > > Wouldn't it be nice to be able to do the same with a SVG file? We can't? What's the point of an SGV Icon object if it can't be used as an icon? -- Richard

Apply an SVG Widget as a single object in a stack to multiple buttons as icon?

2016-06-18 Thread Sannyasin Brahmanathaswami
ons. now I'm trying to see how I can get these as single SVG object(s)without having to have a) SVG widget underneath b) text button on top So, we all know this -- except for lurking newbies, so FWIW we will "declare" the obvious: currently the icon of a button set t