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 code fragment:


  // Other text lines within


This is all working in an SVG play ground area. Now to the actual document and 
get ti working there.

Pretty cool and simple once the basics are understood.

And then to centering the object from the point of origin…

Hope this helps someone else.

John…


> On Feb 28, 2020, at 4:23 PM, John J Foster  wrote:
> 
> 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. 
> 
> " STYLE=\"font-size:18pt;font-weight:bold;text-align:center\">"+$chartInfo{$ndx}+""
> 
> Adding “align:center” doesn’t work.
> 
> The html tag “text-align: center” doesn't work either.
> 
> And using SVG_SET_TEXT_ANCHOR ($svgRef;Align center)
> 
> Doesn’t do anything.
> 
> Anyone successfully able to set an SVG text area so that all the text lines 
> align centered?
> 
> Thanks,
> John…
> 
> 
> 
>> On Feb 28, 2020, at 11:07 AM, John J Foster > > wrote:
>> 
>> 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 fast!
>> 
>> Appreciate,
>> 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 4D_Tech 
 <4d_tech@lists.4d.com > wrote:
 
 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 series of text 
 as a single object (SVG_New_textArea OR SVG_New_tspan) and then place it 
 centered horizontally/vertically at a point on the doc.
 
 For example placing centered lines of text within a circle and having it 
 perfectly centered both horizontally and vertically.
 
 Before I rewrite code I’d like to make sure that I am conceiving the 
 problem correctly. And then using the correct SVG command.
 
 Anyone with experience who has used SVG_New_textArea OR SVG_New_tspan? Are 
 they the “ideal" way to move forward?
 
 Thanks,
 John…
>> 
> 

**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

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}+""

Adding “align:center” doesn’t work.

The html tag “text-align: center” doesn't work either.

And using SVG_SET_TEXT_ANCHOR ($svgRef;Align center)

Doesn’t do anything.

Anyone successfully able to set an SVG text area so that all the text lines 
align centered?

Thanks,
John…



> On Feb 28, 2020, at 11:07 AM, John J Foster  wrote:
> 
> 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 fast!
> 
> Appreciate,
> 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 4D_Tech 
>>> <4d_tech@lists.4d.com > wrote:
>>> 
>>> 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 series of text 
>>> as a single object (SVG_New_textArea OR SVG_New_tspan) and then place it 
>>> centered horizontally/vertically at a point on the doc.
>>> 
>>> For example placing centered lines of text within a circle and having it 
>>> perfectly centered both horizontally and vertically.
>>> 
>>> Before I rewrite code I’d like to make sure that I am conceiving the 
>>> problem correctly. And then using the correct SVG command.
>>> 
>>> Anyone with experience who has used SVG_New_textArea OR SVG_New_tspan? Are 
>>> they the “ideal" way to move forward?
>>> 
>>> Thanks,
>>> John…
> 

**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

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:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

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 document.
> 
> Keith - CDI

**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

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 fast!

Appreciate,
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 4D_Tech 
>> <4d_tech@lists.4d.com > wrote:
>> 
>> 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 series of text 
>> as a single object (SVG_New_textArea OR SVG_New_tspan) and then place it 
>> centered horizontally/vertically at a point on the doc.
>> 
>> For example placing centered lines of text within a circle and having it 
>> perfectly centered both horizontally and vertically.
>> 
>> Before I rewrite code I’d like to make sure that I am conceiving the problem 
>> correctly. And then using the correct SVG command.
>> 
>> Anyone with experience who has used SVG_New_textArea OR SVG_New_tspan? Are 
>> they the “ideal" way to move forward?
>> 
>> Thanks,
>> John…

**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

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 and convert 
into base 64 that are part of the 

Then I reuse as needed.

Anyway, I’ll have to play with these very good ideas you suggested and see how 
far I get. No play time until early next week.

Appreciate,
John…


> 
> 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?
> 
> 
> Yes, then you need to handle that as well. What I do is parse properties of 
> objects that are copied - like "mask", "fill" or "clip-path" properties - if 
> they contain "url(id)" value,  and if 'url' is used, I 1. find defs element 
> with given id, 2. move it to target as well and 3. change id of defs and 
> value of url to new, unique value (alternatively you could check if defs with 
> given 'id' was already moved and not move it.)
> 
> If you have control over how are SVG generated, you can make sure that defs 
> are included within the same group, and make sure all defs have unique id's. 
> Then you just copy the group. I did not have control over SVG, so had to use 
> more complex approach.
> 
> Peter Bozek
> 
> Appreciate,
> John…
> 
> 
> > 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
> > 
> > Peter Bozek
> > 
> > On Fri, Feb 28, 2020 at 5:08 PM 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 
> > 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 a technique to easily extract a  object into it’s own SVG doc 
> > so I can save just the selected group as an png?
> > 
> > Yes, I could redraw each object that was selected but like to save that 
> > time if it’s possible.
> > 
> > Thanks,
> > John…
> 

**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

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  object
> I would assume that I need to also bring those into the doc?
>
>
Yes, then you need to handle that as well. What I do is parse properties of
objects that are copied - like "mask", "fill" or "clip-path" properties -
if they contain "url(id)" value,  and if 'url' is used, I 1. find defs
element with given id, 2. move it to target as well and 3. change id of
defs and value of url to new, unique value (alternatively you could check
if defs with given 'id' was already moved and not move it.)

If you have control over how are SVG generated, you can make sure that defs
are included within the same group, and make sure all defs have unique
id's. Then you just copy the group. I did not have control over SVG, so had
to use more complex approach.

Peter Bozek

Appreciate,
> John…
>
>
> > 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
> >
> > Peter Bozek
> >
> > On Fri, Feb 28, 2020 at 5:08 PM 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 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 a technique to easily extract a  object into it’s own SVG
> doc so I can save just the selected group as an png?
> >
> > Yes, I could redraw each object that was selected but like to save that
> time if it’s possible.
> >
> > Thanks,
> > John…
>
**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

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 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
> 
> Peter Bozek
> 
> On Fri, Feb 28, 2020 at 5:08 PM 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 
> 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 a technique to easily extract a  object into it’s own SVG doc so 
> I can save just the selected group as an png?
> 
> Yes, I could redraw each object that was selected but like to save that time 
> if it’s possible.
> 
> Thanks,
> John…

**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

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

Peter Bozek

On Fri, Feb 28, 2020 at 5:08 PM 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 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 a technique to easily extract a  object into it’s own SVG doc
> so I can save just the selected group as an png?
>
> Yes, I could redraw each object that was selected but like to save that
> time if it’s possible.
>
> Thanks,
> John…
>
>
> **
> 4D Internet Users Group (4D iNUG)
> Archive:  http://lists.4d.com/archives.html
> Options: https://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> **



-- 
--

Peter Bozek
**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

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 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 somewhat, but is harder to read. Even with 
> tokens, you have things like $value:=Some_Token. Some_Token could be a 
> process variable, method call, or component call. No way to know without the 
> 4D structure information.
> 
> I don't know what "ST" is.
> 
> John DeSoi, Ph.D.
> 
> 
>> On Feb 28, 2020, at 9:54 AM, Mike Kerner via 4D_Tech <4d_tech@lists.4d.com> 
>> wrote:
>> 
>> has anyone generated a grammar/lex/indent file for ST or atom for 4D?
> 

**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

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 somewhat, but is harder to read. Even with 
tokens, you have things like $value:=Some_Token. Some_Token could be a process 
variable, method call, or component call. No way to know without the 4D 
structure information.

I don't know what "ST" is.

John DeSoi, Ph.D.


> On Feb 28, 2020, at 9:54 AM, Mike Kerner via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> has anyone generated a grammar/lex/indent file for ST or atom for 4D?

**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

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 
> 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 a technique to easily extract a  object into it’s own SVG doc so 
> I can save just the selected group as an png?
> 
> Yes, I could redraw each object that was selected but like to save that time 
> if it’s possible.
> 
> Thanks,
> John…
> 

**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

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 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
> > 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 when the form was created with the form wizard instead of the
> object
> > source, e.g. "address"
>
> **
> 4D Internet Users Group (4D iNUG)
> Archive:  http://lists.4d.com/archives.html
> Options: https://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> **



-- 
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."
**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

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 4D_Tech 
> <4d_tech@lists.4d.com> wrote:
> 
> 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 series of text as 
> a single object (SVG_New_textArea OR SVG_New_tspan) and then place it 
> centered horizontally/vertically at a point on the doc.
> 
> For example placing centered lines of text within a circle and having it 
> perfectly centered both horizontally and vertically.
> 
> Before I rewrite code I’d like to make sure that I am conceiving the problem 
> correctly. And then using the correct SVG command.
> 
> Anyone with experience who has used SVG_New_textArea OR SVG_New_tspan? Are 
> they the “ideal" way to move forward?
> 
> Thanks,
> John…
> 
> 
> 
> **
> 4D Internet Users Group (4D iNUG)
> Archive:  http://lists.4d.com/archives.html
> Options: https://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> **

**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

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 series of text as a 
single object (SVG_New_textArea OR SVG_New_tspan) and then place it centered 
horizontally/vertically at a point on the doc.

For example placing centered lines of text within a circle and having it 
perfectly centered both horizontally and vertically.

Before I rewrite code I’d like to make sure that I am conceiving the problem 
correctly. And then using the correct SVG command.

Anyone with experience who has used SVG_New_textArea OR SVG_New_tspan? Are they 
the “ideal" way to move forward?

Thanks,
John…



**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

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
> 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 when the form was created with the form wizard instead of the object
> source, e.g. "address"

**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

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 a technique to easily extract a  object into it’s own SVG doc so I 
can save just the selected group as an png?

Yes, I could redraw each object that was selected but like to save that time if 
it’s possible.

Thanks,
John…


**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

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."
**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

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 when the form was created with the form wizard instead of the object
source, e.g. "address"
-- 
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."
**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

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 to Releases.
>
> https://github.com/miyako/4d-plugin-zint-v2/releases
>
> the latest Catalina tends to rejects v17 style plugins (manifest.json in
> Contents),
> v18 style plugins (manifest.json inside Resources) should be OK.
>
> On Feb 28, 2020, at 22:31, Pat Bensky via 4D_Tech <4d_tech@lists.4d.com
> > wrote:
>
> I did download the latest version from Github.
> I still cannot use it.
> What "more specific" information do you need?
> Thanks!
> Pat
>
> **
> 4D Internet Users Group (4D iNUG)
> Archive:  http://lists.4d.com/archives.html
> Options: https://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> **



-- 
*
CatBase - Top Dog in Data Publishing
tel: +44 (0) 207 118 7889
w: http://www.catbase.com
skype: pat.bensky
*
**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

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 (manifest.json in 
Contents),
v18 style plugins (manifest.json inside Resources) should be OK.

On Feb 28, 2020, at 22:31, Pat Bensky via 4D_Tech 
<4d_tech@lists.4d.com> wrote:

I did download the latest version from Github.
I still cannot use it.
What "more specific" information do you need?
Thanks!
Pat

**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

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
> specific.
> **
> 4D Internet Users Group (4D iNUG)
> Archive:  http://lists.4d.com/archives.html
> Options: https://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> **



-- 
*
CatBase - Top Dog in Data Publishing
tel: +44 (0) 207 118 7889
w: http://www.catbase.com
skype: pat.bensky
*
**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

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,

 

David Belote

 

From: Jeremy French 
Date: Thursday, February 27, 2020 at 1:01 PM
To: 4D iNUG Technical <4d_tech@lists.4d.com>
Cc: David Belote 
Subject: Re: 4D v18.0 LTS - Form Wizard Missing

 

Hi David,

 

When you create a new database with v18, you can choose between:

1) Database Project; or

2) Database.

 

Database Project (also known as Project Mode) has no form wizard.

 

Database (also know as Binary Mode) has the familiar form wizard: the gear 
button behaves as it did in v17 and earlier.

 

To create a v18 database in Binary Mode, choose FILE -> NEW -> DATABASE, as 
shown in this screen shot:

 

https://i.postimg.cc/mrsb44rY/2020-02-27-14-49-22.png

 

Best regards,

Jeremy French

 



On Feb 23, 2020, at 10:01 PM, David Belote via 4D_Tech <4d_tech@lists.4d.com> 
wrote:

 

Specific version is 4D v18 build 18.246707…



The Gear button at the bottom of the Forms page used to provide options for 
using the Form Wizard.  Now all it lists is “New Form” which provides the exact 
same functionality that the plus sign to the left of it has.  Both of them just 
let a blank form be with no buttons or field chooser to pick from.

Is that what others see as well?  How do I fix this?

 

**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

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:  mailto:4d_tech-unsubscr...@lists.4d.com
**

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 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:  http://lists.4d.com/archives.html
> Options: https://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> **

**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

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:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

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.
This is supposed to add it to the allowable exceptions, but it doesn't. It
just launches 4D.

I've downloaded and installed a fresh copy of the plugin from Github to
make sure it isn't actually damaged.

Any ideas how to fix this?

Pat

-- 
*
CatBase - Top Dog in Data Publishing
tel: +44 (0) 207 118 7889
w: http://www.catbase.com
skype: pat.bensky
*
**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**