Re: SVG component question

2017-09-06 Thread Vincent de Lachaux via 4D_Tech
> On 5 Sep 2017, at 19:05, Two Way Communications via 4D_Tech > <4d_tech@lists.4d.com> wrote: > > Hi guys, > > For the past hour I have been trying to modify the content of a text (NOT > textarea) in an SVG document. > Hi Rudy, Did you try SVG_SET_TEXTAREA_TEXT http://livedoc.4d.com/4D-SVG-

Re: SVG component question

2017-09-05 Thread Keisuke Miyako via 4D_Tech
an SVG picture has a "rendering tree", which is the backend of the displayed image. it also has a "dom tree", which is the parsed xml structure in memory. SVG SET ATTRIBUTES with no optional * works on the rendering tree, which is useful if you want to alter the image in a "volatile" way. for exa

Re: SVG component question

2017-09-05 Thread Keith Culotta via 4D_Tech
There is a DOM. Lift the hood on SVG and you'll find XML. I missed SVG_GET_ATTRIBUTE until I discovered that DOM GET XML ATTRIBUTE BY NAME works for that. Keith - CDI > On Sep 5, 2017, at 3:03 PM, Two Way Communications via 4D_Tech > <4d_tech@lists.4d.com> wrote: > > > Thanks Keith, I was

Re: SVG component question

2017-09-05 Thread Two Way Communications via 4D_Tech
Thanks Keith, I was already afraid of that. And yes, if there is a DOM then it is possible to use XML commands. But since i created the SVG using SVG_New, I assume there is no DOM, but I am not sure about that. Rudy Mortier Two Way Communications bvba - > On 05 Sep 2017, a

Re: SVG component question

2017-09-05 Thread Keith Culotta via 4D_Tech
I think a 'text' element's text can only be set when it is created, unlike a textArea. So the item that needs to be changed will need to be deleted and created again. OTOH, I didn't know about addressing the "4d-text" attribute. Maybe it can be better addressed via XML commands? Keith - CD

SVG component question

2017-09-05 Thread Two Way Communications via 4D_Tech
Hi guys, For the past hour I have been trying to modify the content of a text (NOT textarea) in an SVG document. I use: SVG_SET_ATTRIBUTES ($RPMKlblObjRef;"4d-text";[REAP_Markers]Label) But the text does not get updated. SVG SET ATTRIBUTES($RPMKlblObjRef;"4d-text";[REAP_Markers]Label) does wor

Re: component question

2017-04-28 Thread Wayne Stewart via 4D_Tech
Chip, The technique that Dave Batton used in Foundation (and released publicly in a couple of free components) went like this: Start most methods with a call to the INIT method: Eg. // // Project Method: Log_Init // Initializes both the

Re: component question

2017-04-28 Thread Tim Nevels via 4D_Tech
On Apr 28, 2017, at 2:00 PM,Chip Scheide wrote: > do I need to initialize the component's IP, or process variables in > every process or just once at startup of the host database? IP variables once at at startup in a component method. One way to do this is to have an “Component_Init” method tha

component question

2017-04-28 Thread Chip Scheide via 4D_Tech
do I need to initialize the component's IP, or process variables in every process or just once at startup of the host database? Thanks Chip --- Gas is for washing parts Alcohol is for drinkin' Nitromethane is for racing