Re: Is it possible to put a SVG file directly on a form?

2017-09-26 Thread Peter Bozek via 4D_Tech
On Mon, Sep 25, 2017 at 12:51 AM, Kirk Brooks via 4D_Tech <
4d_tech@lists.4d.com> wrote:

> or does it have to be converted to a picture?
>
>
>
>
No, you can use SVG file as any other picture file (say PNG.) No need to
manipulate it in 4D, though you can.

--

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

Re: Is it possible to put a SVG file directly on a form?

2017-09-26 Thread Jim Dorrance via 4D_Tech
I just dragged an xmlns.svg file on a form as a background picture,
displayed the form and re-sized it. It scaled perfectly.

Then I created a picture button on the form, selected 'file' as the source,
and dragged an xmlns.svg file onto the button.It also scaled perfectly.

Jim
-- 
Jim Dorrance
jim.dorra...@gmail.com
4...@dorrance.eu
www.4d.dorrance.eu

PS: If you know of anyone that needs an experienced 4D programmer to add
energy and experience to their team, please let me know. I have
experience in many areas. Reasonable rates. Remote or Paris only.
**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Is it possible to put a SVG file directly on a form?

2017-09-25 Thread Kirk Brooks via 4D_Tech
Hi Jim,
Thanks for the reply. I recall some discussion a while ago when I was
having issues with text resolution in SVG I was creating and then rendering
into pics. Someone (Miyako?) mentioned placing the file directly on the
form. The thing I wanted was to preserver the 'scalable' part of the SVG.
Plus the files are really small natively. I'm playing with icons again and
looking for a way to embed the files without having to create pic vars.


On Sun, Sep 24, 2017 at 11:25 PM, Jim Dorrance via 4D_Tech <
4d_tech@lists.4d.com> wrote:

> Of course you can display the source in a text variable (either visible or
> invisible) on a form if you need to save the SVG temporarily. What are you
> trying to do?
>
> On Mon, Sep 25, 2017 at 12:51 AM, Kirk Brooks via 4D_Tech <
> 4d_tech@lists.4d.com> wrote:
>
> > or does it have to be converted to a picture?
> >
> > --
> > Kirk Brooks
> > San Francisco, CA
> > ===
> >
> > *The only thing necessary for the triumph of evil is for good men to do
> > nothing.*
> >
> > *- Edmund Burke*
> > **
> > 4D Internet Users Group (4D iNUG)
> > FAQ:  http://lists.4d.com/faqnug.html
> > Archive:  http://lists.4d.com/archives.html
> > Options: http://lists.4d.com/mailman/options/4d_tech
> > Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> > **
>
>
>
>
> --
> Jim Dorrance
> jim.dorra...@gmail.com
> 4...@dorrance.eu
> www.4d.dorrance.eu
>
> PS: If you know of anyone that needs an experienced 4D programmer to add
> energy and experience to their team, please let me know. I have
> experience in many areas. Reasonable rates. Remote or Paris only.
> **
> 4D Internet Users Group (4D iNUG)
> FAQ:  http://lists.4d.com/faqnug.html
> Archive:  http://lists.4d.com/archives.html
> Options: http://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> **




-- 
Kirk Brooks
San Francisco, CA
===

*The only thing necessary for the triumph of evil is for good men to do
nothing.*

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

Re: Is it possible to put a SVG file directly on a form?

2017-09-25 Thread Jeremy French via 4D_Tech
Kirk, 

Have you tried:

1) Place SVG file in database’s “Resources” folder.
2) Restart 4D.
3) Locate SVG file in "Design -> Tool Box -> Resources".
4) Drag SVG from the Tool Box’s "Resources” window to the form.
5) Resize SVG as needed.

Note the Property Inspector’s “Name/ID” attribute records the path to SVG file.

- Jeremy French


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

Re: Is it possible to put a SVG file directly on a form?

2017-09-25 Thread John Baughman via 4D_Tech
The only way to display the SVG in a form that I know of is in a picture 
variable or field. 

Using SVG_Export_To_picture, store the SVG in a picture field or variable and 
display it on the form.

I store the SVG in a field. On a form I retrieve the SVG from the picture field 
with SVG_Open_picture then display it in the form in a picture variable with 
SVG_Export_To_picture. I can then update the SVG based on user inputs and 
display the changes in real time in the form’s picture variable using 
SVG_Export_To_picture. When the record is saved the SVG is sent back to the 
field with SVG_Export_To_picture.

Hope that helps.

John

> On Sep 24, 2017, at 12:51 PM, Kirk Brooks via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> or does it have to be converted to a picture?
> 
> -- 
> Kirk Brooks
> San Francisco, CA
> ===
> 
> *The only thing necessary for the triumph of evil is for good men to do
> nothing.*
> 
> *- Edmund Burke*
> **
> 4D Internet Users Group (4D iNUG)
> FAQ:  http://lists.4d.com/faqnug.html
> Archive:  http://lists.4d.com/archives.html
> Options: http://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> **

John Baughman
Kailua, Hawaii
(808) 262-0328
john...@hawaii.rr.com





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

Re: Is it possible to put a SVG file directly on a form?

2017-09-25 Thread Jim Dorrance via 4D_Tech
Of course you can display the source in a text variable (either visible or
invisible) on a form if you need to save the SVG temporarily. What are you
trying to do?

On Mon, Sep 25, 2017 at 12:51 AM, Kirk Brooks via 4D_Tech <
4d_tech@lists.4d.com> wrote:

> or does it have to be converted to a picture?
>
> --
> Kirk Brooks
> San Francisco, CA
> ===
>
> *The only thing necessary for the triumph of evil is for good men to do
> nothing.*
>
> *- Edmund Burke*
> **
> 4D Internet Users Group (4D iNUG)
> FAQ:  http://lists.4d.com/faqnug.html
> Archive:  http://lists.4d.com/archives.html
> Options: http://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> **




-- 
Jim Dorrance
jim.dorra...@gmail.com
4...@dorrance.eu
www.4d.dorrance.eu

PS: If you know of anyone that needs an experienced 4D programmer to add
energy and experience to their team, please let me know. I have
experience in many areas. Reasonable rates. Remote or Paris only.
**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Is it possible to put a SVG file directly on a form?

2017-09-24 Thread Kirk Brooks via 4D_Tech
or does it have to be converted to a picture?

-- 
Kirk Brooks
San Francisco, CA
===

*The only thing necessary for the triumph of evil is for good men to do
nothing.*

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