Re: First day experience using 4D v17.0 HF1

2018-08-15 Thread Benedict, Tom via 4D_Tech
Tim Nevels writes: > First day 4D Server Team Developer v17 experience over a WAN was very good. Thanks for the report Tim. I'm very impressed that anyone is doing development on 4D Server over the internet. When deployed does your app use 4D Client or does it have a web front end? I

Creating Windows Taskbar Icons with 4D Version Numbers

2018-08-15 Thread Tim Nevels via 4D_Tech
Today I wanted to add 4D v17.0 and v17.0 HF1 to my Windows 10 taskbar. Sometimes I will have several versions of a 4D version in use and I like to have the 4D version number appear when I hover the mouse over the taskbar icon. That way I know which version I’m launching. So how do you do

Re: Multipart MIME emails

2018-08-15 Thread Keisuke Miyako via 4D_Tech
I don't have an answer to what exactly might be going wrong, but if it helps, I've posted an example some time ago that constructs alternative MIME messages using 4D code. https://github.com/miyako/4d-component-email there is also a parser https://github.com/miyako/4d-plugin-gmime and a

First day experience using 4D v17.0 HF1

2018-08-15 Thread Tim Nevels via 4D_Tech
I’m working on a project where we upgraded from 4D v16 R3 to v17.0 HF1 today. Development on this project uses 4D Server Team Developer over a WAN for most of the developers — I’m one of them. I’m using an iMac Pro and my internet connection is pretty good — cable modem with 150Mbps down and

Re: [offish] Code to make your head hurt

2018-08-15 Thread Chip Scheide via 4D_Tech
interpretably it does work - with locals! tomorrow Ill try compiled... > Chip: > > The dereferencing looks OK but my tuppence says you're going stub > your toe using locals. > > -- > Douglas von Roeder > 949-336-2902 > > > On Wed, Aug 15, 2018 at 2:12 PM Chip Scheide via 4D_Tech >

Re: Anyone using FTP_Receive under 64-bit?

2018-08-15 Thread Allan Udy via 4D_Tech
Hi Randy, I'd greatly appreciate seeing a bit of example code that works. Many thanks. Randy Jaynes wrote on 16/08/18 9:25 AM: Yes it does. I have it implemented if you’d like a copy of the method I can email it directly to you. It’s fairly generic, but I can strip out the application

Re: [offish] Code to make your head hurt

2018-08-15 Thread Douglas von Roeder via 4D_Tech
Chip: The dereferencing looks OK but my tuppence says you're going stub your toe using locals. -- Douglas von Roeder 949-336-2902 On Wed, Aug 15, 2018 at 2:12 PM Chip Scheide via 4D_Tech < 4d_tech@lists.4d.com> wrote: > $Handle is a pointer to an array of pointers. > Each element of the

Re: Anyone using FTP_Receive under 64-bit?

2018-08-15 Thread Randy Jaynes via 4D_Tech
Yes it does. I have it implemented if you’d like a copy of the method I can email it directly to you. It’s fairly generic, but I can strip out the application specific stuff and comment it before sending. Randy -- Randy

Re: Anyone using FTP_Receive under 64-bit?

2018-08-15 Thread Keith Culotta via 4D_Tech
FTP_Receive used to show the progress of the download. That is no longer available, and I think throws an error if it's used. I think the cURL plugin shows the progress, or allows you to figure it out somehow. Keith - CDI > On Aug 15, 2018, at 4:10 PM, Allan Udy via 4D_Tech

[offish] Code to make your head hurt

2018-08-15 Thread Chip Scheide via 4D_Tech
$Handle is a pointer to an array of pointers. Each element of the pointer array points to an array. Please sort the arrays - in a component. Execute formula("Sort Array(($Handle->{1})->;($Handle->{2})->;($Handle->{3})->;>)") This works, in the context of a component when called from a host!

Anyone using FTP_Receive under 64-bit?

2018-08-15 Thread Allan Udy via 4D_Tech
Hi all, I'm having a problem with Internet Commands FTP_Receive under 64-bit -- the command immediately returns a -2201 error and nothing is received (on Mac and Windows). Using 4D v16R6 32-bit, the code works fine and files can be received. Same code using v16R6 64-bit fails. The 64-bit

Re: Preferences Menu Item on macOS

2018-08-15 Thread Douglas von Roeder via 4D_Tech
Jeff: Agreed. -- Douglas von Roeder 949-336-2902 On Wed, Aug 15, 2018 at 2:03 PM Jeffrey Kain via 4D_Tech < 4d_tech@lists.4d.com> wrote: > I'm guessing so... It used to be called Preferences which made more sense. > > > > On Aug 15, 2018, at 5:00 PM, Douglas von Roeder > wrote: > > > >

Re: Preferences Menu Item on macOS

2018-08-15 Thread Douglas von Roeder via 4D_Tech
Chip: Understood. I was searching on "preferences" and "preferences menu item" but came up empty handed. There weren't any changes needed for this app in the area of standard actions (except for Preferences, of course) but the idea of not including a mention of "Preferences" is head-thuddingly

Re: Preferences Menu Item on macOS

2018-08-15 Thread Jeffrey Kain via 4D_Tech
I'm guessing so... It used to be called Preferences which made more sense. > On Aug 15, 2018, at 5:00 PM, Douglas von Roeder wrote: > > "databaseSettings" = "Preferences"? > > After reading the footnotes, I see how you can get there from here.

Re: Preferences Menu Item on macOS

2018-08-15 Thread Douglas von Roeder via 4D_Tech
Jeff: "databaseSettings" = "Preferences"? After reading the footnotes, I see how you *can* get there from here. Thank you for sending that link. -- Douglas von Roeder 949-336-2902 On Wed, Aug 15, 2018 at 1:45 PM Jeffrey Kain via 4D_Tech < 4d_tech@lists.4d.com> wrote: > Here's the v17 list --

Re: Preferences Menu Item on macOS

2018-08-15 Thread Chip Scheide via 4D_Tech
using Preview searched for (literal) "standard Action" ** quotes included On Wed, 15 Aug 2018 13:55:15 -0700, Douglas von Roeder wrote: > Chip: > > I do appreciate you taking the time to research that. > > -- > Douglas von Roeder > 949-336-2902 > > > On Wed, Aug 15, 2018 at 1:38 PM Chip

Re: Preferences Menu Item on macOS

2018-08-15 Thread Douglas von Roeder via 4D_Tech
Chip: I do appreciate you taking the time to research that. -- Douglas von Roeder 949-336-2902 On Wed, Aug 15, 2018 at 1:38 PM Chip Scheide <4d_o...@pghrepository.org> wrote: > no idea :) > > I just checked a system I had open which uses both of these features. > > I looked for you :) > v13

Re: Preferences Menu Item on macOS

2018-08-15 Thread Jeffrey Kain via 4D_Tech
Here's the v17 list -- note that the constants have changed, and the backward-compatible constants seem to be causing problems. Make sure you change any existing ones to the new "ak ..." constants. http://doc.4d.com/4Dv17R2/4D/17-R2.1720/Standard-actions.300-3839558.en.html > On Aug 15,

Re: Preferences Menu Item on macOS

2018-08-15 Thread Chip Scheide via 4D_Tech
no idea :) I just checked a system I had open which uses both of these features. I looked for you :) v13 language reference - references to 'standard actions': Page 603 - Standard actions and methods associated with menu commands Page 629 - Set menu bar Page 635 - SET MENU ITEM PROPERTY Page

Multipart MIME emails

2018-08-15 Thread Pat Bensky via 4D_Tech
U:sing v15, Mac: I'm trying to send out multipart emails with a plain text and an HTML body. When the emails are received, the body is empty. The source (body section) looks like this: == -mymimeboundary Content-Type: text/plain; charset=3Dutf-8

Re: Preferences Menu Item on macOS

2018-08-15 Thread Douglas von Roeder via 4D_Tech
Chip: Well whaddya know! Super. Thank you. I looked through the "Associated Standard Action" but saw nothing for preferences. Any chance you know where that's documented? I checked the knowledge base and the docs and did keyword searches for both but came up empty. -- Douglas von Roeder

Re: Conversion to WritePro

2018-08-15 Thread Bernd Fröhlich via 4D_Tech
Pat Bensky: > You can set the line spacing in WritePro v17 using an automatic action: > lineHeight > > *Syntax*: lineHeight?value={ | } > > Paragraph line height. > Ex: *lineHeight?value=120%* > > For example: > > *INVOKE ACTION*("lineHeight?value=110%") > > > Maybe a bit of experimentation

Re: Preferences Menu Item on macOS

2018-08-15 Thread Chip Scheide via 4D_Tech
In the menu editor: Associated Standard Action Database settings - for preferences Quit - for your Quit menu item Database settings : places the preference in the application menu on Mac and at the bottom of the Edit menu on Windows (this is the default location for windows) Quit : places

Preferences Menu Item on macOS

2018-08-15 Thread Douglas von Roeder via 4D_Tech
After a 15 year hiatus, I'm working with 4D on the Mac and I'm flummoxed on how to deal with the dueling Preferences menu items. When running on macOS, the application menu has a preferences menu item as does the File menu. How do I what do I have to do so that I have one Preferences menu item

Re: SVG IDs in Listbox Cells

2018-08-15 Thread Cannon Smith via 4D_Tech
Hi Arnaud, No, I’m manipulating the picture directly inside the list box. Not as efficient as I like and I haven’t tried Miyako’s latest suggestion which might be more efficient, but the whole process only takes 1-2 milliseconds interpreted, so fast enough. Here is more of the code (I’ve left

Re: SVG IDs in Listbox Cells

2018-08-15 Thread Arnaud de Montard via 4D_Tech
> Le 15 août 2018 à 16:21, Cannon Smith via 4D_Tech <4d_tech@lists.4d.com > > a écrit : > > LISTBOX GET CELL COORDINATES Hi Cannon, I'm afraid I had not seen this command exists since v14r5 - I must get old and blind. Thanks for better code :-) BTW, it seems

Re: SVG IDs in Listbox Cells

2018-08-15 Thread Cannon Smith via 4D_Tech
Hi Arnaud, Thanks for those. I ended up doing it in a pretty simple way. Basically, in the list box On Mouse Move event: GET MOUSE($lMouseX;$lMouseY;$lMouseButton) LISTBOX GET CELL POSITION(lbRanchMetrics;$lMouseX;$lMouseY;$lCol;$lRow) If ($lRow>0) LISTBOX GET CELL

Re: Conversion to WritePro

2018-08-15 Thread Pat Bensky via 4D_Tech
You can set the line spacing in WritePro v17 using an automatic action: lineHeight *Syntax*: lineHeight?value={ | } Paragraph line height. Ex: *lineHeight?value=120%* For example: *INVOKE ACTION*("lineHeight?value=110%") Maybe a bit of experimentation with the settings will provide the

Re: SVG IDs in Listbox Cells

2018-08-15 Thread Cannon Smith via 4D_Tech
Thanks, Jim. I have this working now, basically doing what you described. -- Cannon.Smith Synergy Farm Solutions Inc. Hill Spring, AB Canada 403-626-3236 > On Aug 15, 2018, at 3:36 AM, jim.dorrance--- via 4D_Tech > <4d_tech@lists.4d.com> wrote: > > I think there is an example of that on my

Re: SVG IDs in Listbox Cells

2018-08-15 Thread Cannon Smith via 4D_Tech
Yes, this does work perfectly. Thanks. -- Cannon.Smith Synergy Farm Solutions Inc. Hill Spring, AB Canada 403-626-3236 > On Aug 14, 2018, at 6:15 PM, Keisuke Miyako via 4D_Tech > <4d_tech@lists.4d.com> wrote: > > the command > >

Re: SVG IDs in Listbox Cells

2018-08-15 Thread Arnaud de Montard via 4D_Tech
> Le 15 août 2018 à 11:36, jim.dorrance--- via 4D_Tech <4d_tech@lists.4d.com> a > écrit : > > [...] calculate the scrollbar positions and find the cell. 2 methods (c4d format) for that…

Re: Conversion to WritePro

2018-08-15 Thread Arnaud de Montard via 4D_Tech
> Le 15 août 2018 à 15:30, Bernd Fröhlich via 4D_Tech <4d_tech@lists.4d.com> a > écrit : > > [...] > Seems like the space between lines is not kept as before. > > Don´t quite know how to proceed now. > Luckily the old 4D Write still works in V17. > I guess I just stick to it until (hopefully)

Conversion to WritePro

2018-08-15 Thread Bernd Fröhlich via 4D_Tech
I moved our database from V16.3 to V17.0. I converted 172300 4D Write documents from the last 20 Years to Write Pro using [MyTable]WritePro:=WP New([MyTable]WriteBlob) The good: conversion went without any errors. All the text seems to be there. The bad: layout is not the same. Documents that

Re: E-Mail in 4D

2018-08-15 Thread Bernd Fröhlich via 4D_Tech
Jody Bevan: > The last time I wrote an E-Mail client with 4D was circuit 4D v11 and into > v12. It worked great. I left the programming world for a break for 2 years, > and then got back in. > > Now I am using 16R6, and will likely move into the v17. releases for a > product I am working on.

Re: SVG IDs in Listbox Cells

2018-08-15 Thread jim.dorrance--- via 4D_Tech
Hi, I think there is an example of that on my website,In a demo to do database. There is an SVG area over a list box and when the most moves I get the coordinates, calculate the scrollbar positions and find the cell. I then find the data associated with the hovered cell, clear whatever elements

Re: Scroll in Picture form object

2018-08-15 Thread Wayne Stewart via 4D_Tech
Also object property Truncated not centred As soon as I ask the question (and make a fool of myself) I discover the answer!! Regards, Wayne On Wed, 15 Aug 2018 at 19:13, Wayne Stewart wrote: > > OBJECT SET SCROLLBAR(*;"JPEG_Preview_pic";true;true) > > RTFM > > Regards, > > Wayne > > > On

Re: Scroll in Picture form object

2018-08-15 Thread Wayne Stewart via 4D_Tech
OBJECT SET SCROLLBAR(*;"JPEG_Preview_pic";true;true) RTFM Regards, Wayne On Wed, 15 Aug 2018 at 19:08, Wayne Stewart wrote: > > Hi, > > This is probably a really dumb question but is it possible to have > scroll bars on a picture (variable) object in 4D? > > I can't see the option in the

Scroll in Picture form object

2018-08-15 Thread Wayne Stewart via 4D_Tech
Hi, This is probably a really dumb question but is it possible to have scroll bars on a picture (variable) object in 4D? I can't see the option in the object properties . I'm displaying a jpeg of an X-ray and the users want to be able to zoom in. That's easy I use: TRANSFORM PICTURE However,