Re: SVG_New_textArea OR SVG_New_tspan

2020-02-28 Thread John J Foster via 4D_Tech
Hi All, Never mind about the last comment. The solution needs to be applying to each text area NOT to the SVG document. Here’s the correct way for each line: $Dom_text:=SVG_New_textArea ($svgRef;$Txt_buffer;0;0) SVG_SET_TEXT_ANCHOR ($Dom_text;Align center) This create the beginning of this

Re: SVG_New_textArea OR SVG_New_tspan

2020-02-28 Thread John J Foster via 4D_Tech
Hi All, So building a TSpan text variable and passing it $Dom_text:=SVG_New_textArea ($svgRef;$Txt_buffer;400;400) Works in terms of all the text and it seem that it is placed at the left/top. However, I cannot figure out how to get all the text lines to align center. ""+$chartInfo{$ndx}+""

Re: atom/st indent/lex file

2020-02-28 Thread Keisuke Miyako via 4D_Tech
must be Sublime Text On Feb 29, 2020, at 0:30, John DeSoi via 4D_Tech <4d_tech@lists.4d.com> wrote: I don't know what "ST" is. ** 4D Internet Users Group (4D iNUG) Archive:

Re: SVG Extracted to clip or png

2020-02-28 Thread John J Foster via 4D_Tech
Hi Keith, Thank you. I’ll take a look at that as I suspect the underlying code must be similar to what Peter suggested. Not sure how I missed seeing that? I did review the docs. Funny, John… > Try using SVG_Add_object ($svgOtherDocRef;$groupRef) to get the group into > the other svg

Re: SVG_New_textArea OR SVG_New_tspan

2020-02-28 Thread John J Foster via 4D_Tech
Hey Keith, > I find textAreas easier to work with for those purposes OK, good! Seemed like it on the surface. Not using in a browser but within 4D picture field. SO now worries about that. If I ever need a browser I’ll likely reengineer and use a javascript based SVG API. They are super

Re: SVG Extracted to clip or png

2020-02-28 Thread John J Foster via 4D_Tech
Hi Peter, I think what might work best is to create a “starter” SVG object with all the contained within. I’ll save it to disk and load as needed. Then when I extract the I’ll insert the into that sag doc and it should work. In this case I have over 120 glyphs (sag images) that I preload

Re: SVG Extracted to clip or png

2020-02-28 Thread Peter Bozek via 4D_Tech
On Fri, Feb 28, 2020 at 5:50 PM John J Foster via 4D_Tech < 4d_tech@lists.4d.com> wrote: > Hi Peter, > > Ah yes thanks, I tend to forget that an SVG doc is in XML format. > > Sometimes the solution winds up being so simple in 4D. > > If the SVG doc uses for displaying various glyphs in the

Re: SVG Extracted to clip or png

2020-02-28 Thread John J Foster via 4D_Tech
Hi Peter, Ah yes thanks, I tend to forget that an SVG doc is in XML format. Sometimes the solution winds up being so simple in 4D. If the SVG doc uses for displaying various glyphs in the object I would assume that I need to also bring those into the doc? Appreciate, John… > Just use a

Re: SVG Eetracted to clip or png

2020-02-28 Thread Peter Bozek via 4D_Tech
Just use a XML commands and copy the node to another SVG files. AS SVG files are XML documents, you can use any XML DOM commands to manipulate SVG files. Something like $group:=DOM Find XML element by ID(oldSVGImage;$groupID) If (OK=1) $newEl:=DOM Append XML element(newSVGImage;$group) end if

Re: atom/st indent/lex file

2020-02-28 Thread Tom Benedict via 4D_Tech
Along the same lines, I’d like something like this for HTML which can recognize 4D Tags and color them differently than HTML comments in NotePad++. Tom Benedict > On Feb 28, 2020, at 08:30, John DeSoi via 4D_Tech <4d_tech@lists.4d.com> > wrote: > > I'm working on something for TextMate and/or

Re: atom/st indent/lex file

2020-02-28 Thread John DeSoi via 4D_Tech
I'm working on something for TextMate and/or BBEdit. I'll post it, hopefully in the next week or two. Note 4D is a lot more difficult to syntax color than other languages because you can't disambiguate many tokens without the structure file information. Having "code with tokens" helps

Re: SVG Eetracted to clip or png

2020-02-28 Thread kculotta via 4D_Tech
Try using SVG_Add_object ($svgOtherDocRef;$groupRef) to get the group into the other svg document. Keith - CDI > On Feb 28, 2020, at 10:07 AM, John J Foster via 4D_Tech > <4d_tech@lists.4d.com> wrote: > > Hi All, > > I have an SVG Doc which contains many grouped objects. Each group has a >

Re: customize find results

2020-02-28 Thread Mike Kerner via 4D_Tech
we'll probably go a step further in 18 and write a routine to rename everything. now if i can get a ST/Atom grammar/tab file so we can do edits outside of the 4d editor more easily... On Fri, Feb 28, 2020 at 11:15 AM John DeSoi via 4D_Tech < 4d_tech@lists.4d.com> wrote: > I'm not aware of any

Re: SVG_New_textArea OR SVG_New_tspan

2020-02-28 Thread kculotta via 4D_Tech
John, I find textAreas easier to work with for those purposes. The only drawback is that the textArea is not supported by some browsers. I'll see some documents appear without their text in Safari when textArea is being used. Keith - CDI > On Feb 28, 2020, at 10:18 AM, John J Foster via

SVG_New_textArea OR SVG_New_tspan

2020-02-28 Thread John J Foster via 4D_Tech
Hi All, 4D v17 (mac and windows) In my current need I have been creating text by looping though an array and then creating each text line individually and placing each new line below the one previously created. This works fine. But there are scenarios where I would be easier to manage a

Re: customize find results

2020-02-28 Thread John DeSoi via 4D_Tech
I'm not aware of any built-in feature to do that. I would export a copy to 4D 18 project mode and use something like BBEdit or TextMate where you have grep and other features. John DeSoi, Ph.D. > On Feb 28, 2020, at 9:43 AM, Mike Kerner via 4D_Tech <4d_tech@lists.4d.com> > wrote: > > 4d 17

SVG Eetracted to clip or png

2020-02-28 Thread John J Foster via 4D_Tech
Hi All, I have an SVG Doc which contains many grouped objects. Each group has a unique ID (name). Sometimes I’d like to click on a part of the document, corresponding to a grouped object, and have it sent to the clipboard or saved as a png. Just the part of the document clicked on. Is there

atom/st indent/lex file

2020-02-28 Thread Mike Kerner via 4D_Tech
has anyone generated a grammar/lex/indent file for ST or atom for 4D? -- On the first day, God created the heavens and the Earth On the second day, God created the oceans. On the third day, God put the animals on hold for a few hours, and did a little diving. And God said, "This is good."

customize find results

2020-02-28 Thread Mike Kerner via 4D_Tech
4d 17 is there a way to customize the way objects display in the find results? if you do a find in database for some code, you get a list, but the list includes things in the format formname.objectname which isn't very helpful when objectname is "field2", because that's what 4d named the object

Re: Can't use Zint plugin since upgrading my Mac

2020-02-28 Thread Pat Bensky via 4D_Tech
Aha. Got it. Thanks! On Fri, 28 Feb 2020 at 14:40, Keisuke Miyako via 4D_Tech < 4d_tech@lists.4d.com> wrote: > the URL from which you downloaded is significant. > > for instance. clicking the green "download" button is a "No No". > > https://github.com/miyako/4d-plugin-zint-v2 > > you should go

Re: Can't use Zint plugin since upgrading my Mac

2020-02-28 Thread Keisuke Miyako via 4D_Tech
the URL from which you downloaded is significant. for instance. clicking the green "download" button is a "No No". https://github.com/miyako/4d-plugin-zint-v2 you should go to Releases. https://github.com/miyako/4d-plugin-zint-v2/releases the latest Catalina tends to rejects v17 style plugins

Re: Can't use Zint plugin since upgrading my Mac

2020-02-28 Thread Pat Bensky via 4D_Tech
I did download the latest version from Github. I still cannot use it. What "more specific" information do you need? Thanks! Pat On Fri, 28 Feb 2020 at 13:56, Keisuke Miyako via 4D_Tech < 4d_tech@lists.4d.com> wrote: > it's probably not an unsolvable problem, but you really need to be more >

Re: 4D v18.0 LTS - Form Wizard Missing

2020-02-28 Thread David Belote via 4D_Tech
You guys solved it.  I had created my v18 test databases as database projects instead of databases.  Database Projects appear to be new and I’ll have to read up on them.  I knew that 4D v18 was introducing a way to manage code in a non-binary format, but I did not know the details. Thanks,

Re: Can't use Zint plugin since upgrading my Mac

2020-02-28 Thread Keisuke Miyako via 4D_Tech
it's probably not an unsolvable problem, but you really need to be more specific. ** 4D Internet Users Group (4D iNUG) Archive: http://lists.4d.com/archives.html Options: https://lists.4d.com/mailman/options/4d_tech Unsub:

Re: Can't use Zint plugin since upgrading my Mac

2020-02-28 Thread Chuck Miller via 4D_Tech
Yes is the same problem I have with another plug in the developer created a signed application for Catalina but no luck. Any ideas on this o r Sent from my iPhone > On Feb 28, 2020, at 8:44 AM, Keisuke Miyako via 4D_Tech > <4d_tech@lists.4d.com> wrote: > > a plugin is not an app or

Re: Can't use Zint plugin since upgrading my Mac

2020-02-28 Thread Keisuke Miyako via 4D_Tech
a plugin is not an app or executable, you can't add it to spctl (gatekeeper) by right click. go to github, find releases, and grab the latest release that matches your version. ** 4D Internet Users Group (4D iNUG) Archive:

Can't use Zint plugin since upgrading my Mac

2020-02-28 Thread Pat Bensky via 4D_Tech
I just got a new MacBook Pro running Catalina (10.15.3). When I start up my 4D app I get a message that "*“ZINT.bundle” is damaged and can’t be opened. You should move it to the Bin"* I click Cancel and the app launches. I go into the Plugins folder, right-click on the Zint app, and choose Open.