Ref: Resize SVG_Use

2017-12-04 Thread truegold via 4D_Tech
Hi, Does the SVG_SET_TRANSFORM_SCALE change the image size and also the the area size? In others words (even though the xml in the 4D SVG Viewer doesn’t show it) is 500 pixel width still 500 pixels after the size transform? Or is 500 * scale? I'm asking because as soon as I change the scale

Re: Ref: Resize SVG_Use

2017-12-04 Thread truegold via 4D_Tech
Hi, As an aside I am testing in a small sample and opening inn the viewer. if I use this line: SVG_SET_TRANSFORM_TRANSLATE ($glyph;$inX;$inY) it works great! Starts the draw exactly at the x and y. But if I add this line: SVG_SET_TRANSFORM_SCALE ($glyph;$_w/$width;$_w/$height) Then it goes

Re: Ref: Resize SVG_Use

2017-12-04 Thread truegold via 4D_Tech
Hi Miyako, > translate offsets the x/y by the value specified. > the x/y you pass are not absolute coordinates (unless, of course, the x/y in > element are 0,0) Agree! I have tested setting the x/y w/h to 0 thinking that it would apply correctly but the svg looks like this:

Re: Resize SVG_Use

2017-12-04 Thread Keisuke Miyako via 4D_Tech
translate offsets the x/y by the value specified. the x/y you pass are not absolute coordinates (unless, of course, the x/y in element are 0,0) 2017/12/05 8:04、truegold via 4D_Tech <4d_tech@lists.4d.com> のメール: To reposition at the x/y I believe I have to use:

Ref: Resize SVG_Use

2017-12-04 Thread truegold via 4D_Tech
Hi All, Note: If I apply the transform immediately after I create the symbol: $symbol:=DOM Create XML element($defs;"image";"id";$name;"xlink:href";$image;"x";0;"y";0;"width";$width;"height";$height) SVG_SET_TRANSFORM_SCALE ($symbol;18/$width;18/$height) That seems to work and

Resize SVG_Use

2017-12-04 Thread truegold via 4D_Tech
Hi All, I’m in the process of changing some SVG routines to be a bit more efficient (I think). Miyako showed me how to embed svg images as “defs”: $defs:=SVG_Define_symbol ($domSvg_ptr->;"defs”) so I could reuse the graphics without reloading them several times. This part works perfectly.

Re: Assign multidimensional array

2017-12-04 Thread Kirk Brooks via 4D_Tech
Ferdinando, Copy array works fine with 2D arrays if you want $B to be - a copy - of $A. But it sounds like you need to _append_ the elements. You can also use COPY ARRAY on specific arrays within the 2D array. Example: $A has 4 'arrays' with some number of elements in each array. I have $C that I

Re: Strange problem with v16 and Launch External Process in a component (solved - user error)

2017-12-04 Thread Adrian Boone via 4D_Tech
Hi John, It turns out that it was a false alarm after all - what I thought was an exact copy was missing a space in the path to the executable (which explains the immediate return in one case), combined with a bug in the component which didn't return false when the executable path didn't

Port 80 Security Scanning - e.g. Qualys

2017-12-04 Thread Randy Engle via 4D_Tech
Our company and at least one other 4D developer have recently been hit with our customers doing a security scan of our 4D based web applications. In this particular case, they are using a service from "Qualys" that throws everything, including the kitchen sink at our web application. In a lot

Re: Strange problem with v16 and Launch External Process in a component

2017-12-04 Thread Chip Scheide via 4D_Tech
no ideas - but I ran into similar issues in v13, on windows. LEP calls to OS for file level actions (copy, rename etc) everything empty, everything "OK" - not so much. Run *same* exact command line code from cmd.exe everything worked as expected. On Mac - no issue. On Mon, 4 Dec 2017 16:36:52

Re: Assign multidimensional array

2017-12-04 Thread stardata.info via 4D_Tech
Hi, I need to append one array into another array with the same coloumns. Copy not think that work. I need to use 4D V12... Thanks /Ferdinando/ Il 04/12/2017 18:13, 4d_tech-requ...@lists.4d.com ha scritto: Message: 10 Date: Mon, 4 Dec 2017 17:29:29 +0100 From: Arnaud de

Re: Strange problem with v16 and Launch External Process in a component

2017-12-04 Thread John DeSoi via 4D_Tech
Anything unusual about the LEP call -- just using locals and specifying all of them? That alone should make it execute in blocking mode. E.g. LAUNCH EXTERNAL PROCESS($cmd;$in;$out;$err) Lots of bugs have been fixed since 16.0. Have you tried 16.2? John DeSoi, Ph.D. > On Dec 4, 2017, at 10:36

Rearranging object entry order

2017-12-04 Thread Tom Swenson via 4D_Tech
When I think of all the time doing this that I’ve wasted in my life… https://blog.4d.com/rearrange-the-object-entry-order-in-a-single-click/ Tom Swenson On 12/1/17, 9:49 AM, "4D_Tech on behalf of Piotr Chabot Stadhouders via 4D_Tech" <4d_tech-boun...@lists.4d.com on behalf of

RE: poor performance LISTBOX INSERT COLUMN

2017-12-04 Thread Piotr Chabot Stadhouders via 4D_Tech
Hi Chip, When the form is first displayed there are no elements in one of the arrays in the listboxes Only after certain user action, like pressing a button, the arrays are populated, so this isn't the problem Furthermore, I am not able to test with local 4D data because, surprise, we don't

Strange problem with v16 and Launch External Process in a component

2017-12-04 Thread Adrian Boone via 4D_Tech
Hi all, We have a component which uses Launch External Process to call an accountancy package (Moneyworks) via the command line (Windows and Mac), and have just recompiled it for v16 (that's another story...). Now, when any component methods which use LEP (i.e. most of them) are called from

Re: Assign multidimensional array

2017-12-04 Thread Arnaud de Montard via 4D_Tech
> Le 4 déc. 2017 à 15:59, Chip Scheide via 4D_Tech <4d_tech@lists.4d.com> a > écrit : > > Ferdinando, > not sure if Copy Array will copy multi-dimensional arrays - you could > try. ARRAY TEXT($zz;2;3) $zz{0}{0}:="test" ARRAY TEXT($zzz;0;0) COPY ARRAY($zz;$zzz) ASSERT($zzz{0}{0}="test") //0

Re: Assign multidimensional array

2017-12-04 Thread Chip Scheide via 4D_Tech
Ferdinando, not sure if Copy Array will copy multi-dimensional arrays - you could try. but as worst case: (assumes $B is already denied as having the same dimensions as $A) For($i;1;size of array($A)) copy array($A{$i};$B{$i} end for On Mon, 4 Dec 2017 10:51:30 +0100, Herr Alexander Heintz via

RE: poor performance LISTBOX INSERT COLUMN

2017-12-04 Thread Chip Scheide via 4D_Tech
Piotr, maybe it is the remote data call/population of the listbox arrays? for comparison try: - populate the listbox from local (4D) data On Mon, 4 Dec 2017 07:59:00 +, Piotr Chabot Stadhouders via 4D_Tech wrote: > > I tested this on an HP Intel Core i7-4710MQ 2.50GHz laptop with 24G

Re: Assign multidimensional array

2017-12-04 Thread Herr Alexander Heintz via 4D_Tech
What about COPY ARRAY ? > Am 04.12.2017 um 10:45 schrieb stardata.info via 4D_Tech > <4d_tech@lists.4d.com>: > > Hi All, > > I need to copy a multidimensional array ($A) into another of the same > dimension ($B). > Is necessary do a cicle and assign every single position or is possible to do

Assign multidimensional array

2017-12-04 Thread stardata.info via 4D_Tech
Hi All, I need to copy a multidimensional array ($A) into another of the same dimension ($B). Is necessary do a cicle and assign every single position or is possible to do other? ARRAY TEXT($A;1;2) ARRAY TEXT($B;0;2) $A{1}{1}:="1" $A{1}{2}:="2" $P:=Size of array($B)+1 INSERT IN

Re: poor performance LISTBOX INSERT COLUMN

2017-12-04 Thread Alan Chan via 4D_Tech
4D iNug Technical <4d_tech@lists.4d.com> writes: >Maybe it does matter how many listboxes are on the form? I assumed you built LB with one method per LB. > >Maybe LISTBOX INSERT COLUMN becomes slower when more columns are inserted? I assumed that you were "appending" column instead of inserting