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 
ask because in our experience 4D performance over a WAN was intolerable. 
Minutes to open a record. But that involved long queries and loading records 
from multiple tables and executing lots of code/forms/etc. We also were dealing 
with tables with millions of records and 200 - 300 concurrent users. Our app 
may not be typical though.



V17 sounds promising for a number of reasons.



Tom Benedict

Optum



This e-mail, including attachments, may include confidential and/or
proprietary information, and may be used only by the person or entity
to which it is addressed. If the reader of this e-mail is not the intended
recipient or his or her authorized agent, the reader is hereby notified
that any dissemination, distribution or copying of this e-mail is
prohibited. If you have received this e-mail in error, please notify the
sender by replying to this message and delete this e-mail immediately.
**
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
**

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 that? I’ll show you so you don’t have to spend the time 
googling how to do it like I did once.

Normally when you right click on the icon in the Windows taskbar of a running 
application and select “Pin to taskbar”, Windows will assign the program’s name 
to the taskbar icon. But when you have several version of 4D in the taskbar the 
names assigned are “4D”, “4D (2)”, “4D (3)” etc. Not very useful for knowing 
which one points to which version. 

Here is what my Windows 10 taskbar looks like and what I see when I hover the 
mouse over the 4D icons:

https://www.dropbox.com/s/we8rgykyzp0lx9s/Screen%20Shot%202018-08-15%20at%209.25.02%20PM.PNG?dl=0
https://www.dropbox.com/s/kc1iqs2vywdcrhe/Screen%20Shot%202018-08-15%20at%209.17.45%20PM.PNG?dl=0
https://www.dropbox.com/s/ny3ouuo3a138myz/Screen%20Shot%202018-08-15%20at%209.17.54%20PM.PNG?dl=0
https://www.dropbox.com/s/iha0l0okha8jfvx/Screen%20Shot%202018-08-15%20at%209.25.28%20PM.PNG?dl=0
https://www.dropbox.com/s/4yc6q564db4tv12/Screen%20Shot%202018-08-15%20at%209.25.35%20PM.PNG?dl=0
Here is how you can set the name that will appear when you hover over the icon 
in the taskbar.

The programs pinned to the taskbar are stored here:

%AppData%\Microsoft\Internet Explorer\Quick Launch\User Pinned\TaskBar

So copy this and paste into the address bar of a window and hit enter and this 
folder will open.

https://www.dropbox.com/s/agswr25q7380bac/Screen%20Shot%202018-08-15%20at%209.26.21%20PM.PNG?dl=0

Shortcuts for all the pinned taskbar items are in this folder. Simply change 
the name of the shortcut to something meaningful and then restart Windows. You 
must restart Windows so that it will reload the taskbar shortcut names. 

Now when you hover the mouse over an icon you will know what version of 4D the 
icon is going to launch.

Just trying to make things a little nicer in the Windows world…

Tim

*
Tim Nevels
Innovative Solutions
785-749-3444
timnev...@mac.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: 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 writer

https://github.com/miyako/4d-plugin-etpan

2018/08/16 5:36、Pat Bensky via 4D_Tech 
<4d_tech@lists.4d.com>のメール:
Any idea what I'm doing wrong?


**
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
**

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 15Mbps up. 

We have been using the new network layer and it has proven very reliable in our 
development environment with v16 R3. I could connect to 4D Server and stay 
connected all day long without any disconnects. Maybe 1 disconnect problem a 
month if that. So nothing to complain about really. 

After spending many months all day long using v16 R3, today I immediately 
noticed things were faster with v17.0 HF1. So nice to install a new version of 
4D and immediately feel a performance boost. Time will tell if there are any 
new issues with v17, but so far it’s all good news.  Connected all day without 
any issues. 

I am LOVING the object dot notation and using collections and the new Dynamic 
Forms feature. Collections work like arrays with JSON. So instead of needing to 
do OB GET ARRAY, manipulate the array, and then OB SET ARRAY you can work on it 
“inline” with dot notation and collections. 

Let’s say you want to create an object with this structure:

{
"markerHeader": 0,
"markerBody": 72,
"method": "label_SetObjectFontSize",
"labelWidthInches": 3,
"labelHeightInches": 1,
"minimumFontSize": 7,
"objectsToAdjustFontSize": [],
"pages": [
null,
{
"objects": {}
}
]
}

Here is some v17 code that will create it:

$object_o:=New object(\
"markerHeader";0;\
"markerBody";72;\
"method";"label_SetObjectFontSize";\
"labelWidthInches";3;\
"labelHeightInches";1;\
"minimumFontSize";7;\
"objectsToAdjustFontSize";New collection;\
"pages";New collection(\
Null;\
New object(\
"objects";New object)))

Yes, that is a single line of code!

Say you want to add an object to the “objects” object. A rectangle definition 
for use on a form. Here’s some code to do that using dot notation:

$borderRectangle_o:=New object(\
"type";"rectangle";\
"fill";"transparent";\
"strokeWidth";0;\
"left";0;\
"top";0;\
"width”;216;\
"height”;72)

$object_o.pages[1].objects.borderRectangle:=$borderRectangle_o

Refreshingly convenient considering all of the work you would have to go 
through without dot notation to accomplish the same thing. No OB GET ARRAY and 
OB SET ARRAY needed. 

Just wanted to pass this info on to other developers thinking about doing the 
v17 upgrade. First day 4D Server Team Developer v17 experience over a WAN was 
very good. 

Tim

*
Tim Nevels
Innovative Solutions
785-749-3444
timnev...@mac.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: [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 
> <4d_tech@lists.4d.com> wrote:
>> $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!
>> It works with process arrays
>> it works with local (host) arrays 
>>- interpretedly.
>> I have not yet compiled this code to see if it still functions...
>> 
>> All of this is error checked before the above is executed, and the text 
>> to be executed is built in a loop, looping over the pointer array to 
>> insert the "($Handle->{#})->;" bits.
>> 
>> Whew...
>> Chip
>> 
>> ---
>> Gas is for washing parts
>> Alcohol is for drinkin'
>> Nitromethane is for racing 
>> **
>> 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
>> **

Hell is other people 
 Jean-Paul Sartre
**
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: 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 specific 
stuff and comment it before sending.


Cheers,
Allan Udy

Golden Micro Solutions Ltd, Blenheim, New Zealand
http://www.golden.co.nz

**
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: [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 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!
> It works with process arrays
> it works with local (host) arrays
>- interpretedly.
> I have not yet compiled this code to see if it still functions...
>
> All of this is error checked before the above is executed, and the text
> to be executed is built in a loop, looping over the pointer array to
> insert the "($Handle->{#})->;" bits.
>
> Whew...
> Chip
>
> ---
> Gas is for washing parts
> Alcohol is for drinkin'
> Nitromethane is for racing
> **
> 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: 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 Jaynes
Senior Programmer and Customer Support

http://printpoint.com  • 845.687.3741 • PrintPoint, Inc 
• 57 Ludlow Lane • Palisades, NY 10964 
Please send all email contacts to supp...@printpoint.com 





> On Aug 15, 2018, at 5:19 PM, Keith Culotta via 4D_Tech <4d_tech@lists.4d.com 
> > wrote:
> 
> 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 <4d_tech@lists.4d.com 
>> > wrote:
>> 
>> 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 version will successfully log in 
>> to the FTP site, and will retrieve a directory listing etc, but will not 
>> allow file download.
>> 
>> I've checked that the correct IC bundle is installed.  Have also tested with 
>> v16rR4 and v16.3. Have tested with two different FTP sites. Same issue.
>> 
>> Anyone else seeing this?  Anyone successfully using FTP_Receive under 64-bit.
>> 
>> What are the advantages/disadvantages of re-writing the code to use Keisuke 
>> Miyako’s cURL FTP plugin?
>> 
>> 
>> Cheers,
>> Allan Udy
>> 
>> Golden Micro Solutions Ltd, Blenheim, New Zealand
>> http://www.golden.co.nz 
>> >
>> 
>> **
>> 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 
> 
> **

**
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: 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 <4d_tech@lists.4d.com> 
> wrote:
> 
> 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 version will successfully log in 
> to the FTP site, and will retrieve a directory listing etc, but will not 
> allow file download.
> 
> I've checked that the correct IC bundle is installed.  Have also tested with 
> v16rR4 and v16.3. Have tested with two different FTP sites. Same issue.
> 
> Anyone else seeing this?  Anyone successfully using FTP_Receive under 64-bit.
> 
> What are the advantages/disadvantages of re-writing the code to use Keisuke 
> Miyako’s cURL FTP plugin?
> 
> 
> Cheers,
> Allan Udy
> 
> Golden Micro Solutions Ltd, Blenheim, New Zealand
> http://www.golden.co.nz
> 
> **
> 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
**

[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!
It works with process arrays
it works with local (host) arrays 
   - interpretedly.
I have not yet compiled this code to see if it still functions...

All of this is error checked before the above is executed, and the text 
to be executed is built in a loop, looping over the pointer array to 
insert the "($Handle->{#})->;" bits.

Whew...
Chip

---
Gas is for washing parts
Alcohol is for drinkin'
Nitromethane is for racing 
**
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
**

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 version will 
successfully log in to the FTP site, and will retrieve a directory 
listing etc, but will not allow file download.


I've checked that the correct IC bundle is installed.  Have also tested 
with v16rR4 and v16.3. Have tested with two different FTP sites. Same issue.


Anyone else seeing this?  Anyone successfully using FTP_Receive under 
64-bit.


What are the advantages/disadvantages of re-writing the code to use 
Keisuke Miyako’s cURL FTP plugin?



Cheers,
Allan Udy

Golden Micro Solutions Ltd, Blenheim, New Zealand
http://www.golden.co.nz

**
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: 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:
> >
> > "databaseSettings" = "Preferences"?
> >
> > After reading the footnotes, I see how you can get there from here.
>
> **
> 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: 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 frustrating.

Perhaps some tech support person will do a knowledge base entry on this.

--
Douglas von Roeder
949-336-2902


On Wed, Aug 15, 2018 at 2:00 PM Chip Scheide <4d_o...@pghrepository.org>
wrote:

> 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 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 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 1704 - Value for Associated Standard Action  (Konstants)
> >>
> >>
> >> On Wed, 15 Aug 2018 13:13:14 -0700, Douglas von Roeder wrote:
> >>> 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
> >>> 949-336-2902
> >>>
> >>>
> >>> On Wed, Aug 15, 2018 at 1:02 PM Chip Scheide <
> 4d_o...@pghrepository.org>
> >>> wrote:
> >>>
>  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 the quit menu into the application menu on Mac, and file
>  menu on Windows
> 
> 
>  On Wed, 15 Aug 2018 12:55:09 -0700, Douglas von Roeder via 4D_Tech
>  wrote:
> > 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
> > while running on macOS and yet have a functioning Preferences menu
> >> items
> > when running on Windows?
> >
> > --
> > Douglas von Roeder
> > 949-336-2902
> >
> **
> > 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
> >
> **
>  ---
>  Gas is for washing parts
>  Alcohol is for drinkin'
>  Nitromethane is for racing
> 
> >> ---
> >> Gas is for washing parts
> >> Alcohol is for drinkin'
> >> Nitromethane is for racing
> >>
> ---
> Gas is for washing parts
> Alcohol is for drinkin'
> Nitromethane is for racing
>
**
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: 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.  

**
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: 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 -- 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, 2018, at 4:37 PM, Chip Scheide via 4D_Tech <
> 4d_tech@lists.4d.com> wrote:
> >
> > 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 1704 - Value for Associated Standard Action  (Konstants)
>
> **
> 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: 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 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 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 1704 - Value for Associated Standard Action  (Konstants)
>> 
>> 
>> On Wed, 15 Aug 2018 13:13:14 -0700, Douglas von Roeder wrote:
>>> 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
>>> 949-336-2902
>>> 
>>> 
>>> On Wed, Aug 15, 2018 at 1:02 PM Chip Scheide <4d_o...@pghrepository.org>
>>> wrote:
>>> 
 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 the quit menu into the application menu on Mac, and file
 menu on Windows
 
 
 On Wed, 15 Aug 2018 12:55:09 -0700, Douglas von Roeder via 4D_Tech
 wrote:
> 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
> while running on macOS and yet have a functioning Preferences menu
>> items
> when running on Windows?
> 
> --
> Douglas von Roeder
> 949-336-2902
> **
> 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
> **
 ---
 Gas is for washing parts
 Alcohol is for drinkin'
 Nitromethane is for racing
 
>> ---
>> Gas is for washing parts
>> Alcohol is for drinkin'
>> Nitromethane is for racing
>> 
---
Gas is for washing parts
Alcohol is for drinkin'
Nitromethane is for racing 
**
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: 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 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 1704 - Value for Associated Standard Action  (Konstants)
>
>
> On Wed, 15 Aug 2018 13:13:14 -0700, Douglas von Roeder wrote:
> > 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
> > 949-336-2902
> >
> >
> > On Wed, Aug 15, 2018 at 1:02 PM Chip Scheide <4d_o...@pghrepository.org>
> > wrote:
> >
> >> 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 the quit menu into the application menu on Mac, and file
> >> menu on Windows
> >>
> >>
> >> On Wed, 15 Aug 2018 12:55:09 -0700, Douglas von Roeder via 4D_Tech
> >> wrote:
> >>> 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
> >>> while running on macOS and yet have a functioning Preferences menu
> items
> >>> when running on Windows?
> >>>
> >>> --
> >>> Douglas von Roeder
> >>> 949-336-2902
> >>> **
> >>> 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
> >>> **
> >> ---
> >> Gas is for washing parts
> >> Alcohol is for drinkin'
> >> Nitromethane is for racing
> >>
> ---
> Gas is for washing parts
> Alcohol is for drinkin'
> Nitromethane is for racing
>
**
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: 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, 2018, at 4:37 PM, Chip Scheide via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> 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 1704 - Value for Associated Standard Action  (Konstants)

**
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: 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 1704 - Value for Associated Standard Action  (Konstants)
 

On Wed, 15 Aug 2018 13:13:14 -0700, Douglas von Roeder wrote:
> 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
> 949-336-2902
> 
> 
> On Wed, Aug 15, 2018 at 1:02 PM Chip Scheide <4d_o...@pghrepository.org>
> wrote:
> 
>> 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 the quit menu into the application menu on Mac, and file
>> menu on Windows
>> 
>> 
>> On Wed, 15 Aug 2018 12:55:09 -0700, Douglas von Roeder via 4D_Tech
>> wrote:
>>> 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
>>> while running on macOS and yet have a functioning Preferences menu items
>>> when running on Windows?
>>> 
>>> --
>>> Douglas von Roeder
>>> 949-336-2902
>>> **
>>> 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
>>> **
>> ---
>> Gas is for washing parts
>> Alcohol is for drinkin'
>> Nitromethane is for racing
>> 
---
Gas is for washing parts
Alcohol is for drinkin'
Nitromethane is for racing 
**
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
**

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

Du th=C3=A9?
--mymimeboundary
Content-Type: text/html; charset=3Dutf-8



Du th=C3=A9? (in HTML)


--mymimeboundary

==
The content-type header:

Content-Type: multipart/alternative; boundary="mymimeboundary"

Any idea what I'm doing wrong?

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
**

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
949-336-2902


On Wed, Aug 15, 2018 at 1:02 PM Chip Scheide <4d_o...@pghrepository.org>
wrote:

> 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 the quit menu into the application menu on Mac, and file
> menu on Windows
>
>
> On Wed, 15 Aug 2018 12:55:09 -0700, Douglas von Roeder via 4D_Tech
> wrote:
> > 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
> > while running on macOS and yet have a functioning Preferences menu items
> > when running on Windows?
> >
> > --
> > Douglas von Roeder
> > 949-336-2902
> > **
> > 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
> > **
> ---
> Gas is for washing parts
> Alcohol is for drinkin'
> Nitromethane is for racing
>
**
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: 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 with the settings will provide the solution
> you need.

Thanks for the tip, maybe it will help when creating new documents.
But I really don´t want to change over 17 documents.
No one will ever be able to check wheather it all went right.

Greetings from Germany,
Bernd Fröhlich
**
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: 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 the quit menu into the application menu on Mac, and file 
menu on Windows


On Wed, 15 Aug 2018 12:55:09 -0700, Douglas von Roeder via 4D_Tech 
wrote:
> 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
> while running on macOS and yet have a functioning Preferences menu items
> when running on Windows?
> 
> --
> Douglas von Roeder
> 949-336-2902
> **
> 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
> **
---
Gas is for washing parts
Alcohol is for drinkin'
Nitromethane is for racing 
**
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
**

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
while running on macOS and yet have a functioning Preferences menu items
when running on Windows?

--
Douglas von Roeder
949-336-2902
**
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 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 out the code that handles tracking and 
hiding previously shown SVG elements:

GET MOUSE($lMouseX;$lMouseY;$lMouseButton)
LISTBOX GET CELL POSITION(lbRanchMetrics;$lMouseX;$lMouseY;$lCol;$lRow)
If ($lRow>0)
LISTBOX GET CELL 
COORDINATES(lbRanchMetrics;$lCol;$lRow;$lCellLeft;$lCellTop;$lCellRight;$lCellBottom)
$lMouseInSVGX:=$lMouseX-$lCellLeft
$lMouseInSVGY:=$lMouseY-$lCellTop
$SVGtID:=SVG Find element ID by 
coordinates(agRM_Graph{$lRow};$lMouseInSVGX;$lMouseInSVGY)
$tSVG:=SVG_Open_picture (agRM_Graph{$lRow}) 
$tRef:=SVG_Find_ID ($tSVG; SVGtID)
SVG_SET_ATTRIBUTES ($tRef;"visibility";"visible")
agRM_Graph{$lRow}:=SVG_Export_to_picture ($tSVG)
SVG_CLEAR ($tSVG)
End if

--
Cannon.Smith
Synergy Farm Solutions Inc.
Hill Spring, AB Canada
403-626-3236




> On Aug 15, 2018, at 11:39 AM, Arnaud de Montard via 4D_Tech 
> <4d_tech@lists.4d.com> wrote:
> 
> BTW, it seems finally you use a picture var over the cell? Makes me think 
> that besides getting blind, my english is ununderstandable ;-)

**
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 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 finally you use a picture var over the cell? Makes me think that 
besides getting blind, my english is ununderstandable  ;-)
>

-- 
Arnaud de Montard 



**
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 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 
COORDINATES(lbRanchMetrics;$lCol;$lRow;$lCellLeft;$lCellTop;$lCellRight;$lCellBottom)
$lMouseInSVGX:=$lMouseX-$lCellLeft
$lMouseInSVGY:=$lMouseY-$lCellTop
$SVGtID:=SVG Find element ID by 
coordinates(agRM_Graph{$lRow};$lMouseInSVGX;$lMouseInSVGY)
//Manipulate $tSVGID attributes
End if

Works like a charm!

--
Cannon.Smith
Synergy Farm Solutions Inc.
Hill Spring, AB Canada
403-626-3236




> On Aug 15, 2018, at 7:53 AM, Arnaud de Montard via 4D_Tech 
> <4d_tech@lists.4d.com> wrote:
> 
> 2 methods (c4d format) for that…

**
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: 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 solution
you need.


Pat

On Wed, 15 Aug 2018 at 14:48, Arnaud de Montard via 4D_Tech <
4d_tech@lists.4d.com> wrote:

>
> > 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) the conversion will keep
> the spacing in some future version.
>
> Line spacing in 4D write plugin is "automatic" (not far from 1,2*font
> size; once, twice, etc.). If the "display engine" has changed, maybe this
> explains that…
> Anyway I've always missed a *fixed* line spacing in the plugin: does it
> exist in write pro?
>
> --
> Arnaud de Montard
>
>
>
>
>
> **
> 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: 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 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 are 
> displayed in the SVG area, then read draw whatever is necessary in the SVG.

**
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 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
> 
> http://doc.4d.com/4Dv17/4D/17/LISTBOX-GET-CELL-COORDINATES.301-3730216.en.html
> 
> should be useful to place a picture object exactly over a listbox cell.

**
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 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…
>

-- 
Arnaud de Montard 




**
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: 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) the conversion will keep the 
> spacing in some future version.

Line spacing in 4D write plugin is "automatic" (not far from 1,2*font size; 
once, twice, etc.). If the "display engine" has changed, maybe this explains 
that… 
Anyway I've always missed a *fixed* line spacing in the plugin: does it exist 
in write pro? 

-- 
Arnaud de Montard 





**
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
**

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 had e.g. 6 pages before, now have 8.
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) the conversion will keep the 
spacing in some future version.

Greetings from Germany,
Bernd Fröhlich
**
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: 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.
> From my review today, and lurking over the last several months, it looks like 
> not much has changed within 4D to dramatically change from what I did back 
> then.


Well, there was at least one change in the V17 InternetCommands:

MSG_Extract now throws an error -35 (when I got my google-fu right that means 
"Volume not found")

Replaced IC V17 with the V16.3 version and all is well again.

Greetings from Germany,
Bernd Fröhlich
**
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 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 are 
displayed in the SVG area, then read draw whatever is necessary in the SVG.

Sent from my iPhone

> On 15 Aug 2018, at 01:50, John J Foster via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> Hi Cannon,
> 
> Yep, that’s what I was thinking. Just need a bit of scaffolding. Just needs 
> to be handle indirectly and not in the cell.
> 
> And what then what Keith said should make it able to manipulate the DOM and 
> then do whatever you need.
> 
> I thought the idea was doable.
> 
> Cool!
> 
> John…
> 
>> It is actually _almost_ doable. With some math it is possible to figure out 
>> where the cursor is over a particular picture cell and "SVG Find element ID 
>> by coordinates” works in this context. For example:
>> 
>>$tID:=SVG Find element ID by coordinates(agRM_Graph{1};$x;$y)
>> 
>> returns the ID the mouse is over.
>> 
>> The part that does not work is the command SVG SET ATTRIBUTE. For example:
>> 
>>SVG SET 
>> ATTRIBUTE(agRM_Graph{1};"Value1";"fill-opacity";"1";"stroke-opacity";"1”)
>> 
>> does not work. This kills an idea I was _really_ hoping would work. Sigh.
>> 
>> I find it interesting that SVG Find element ID by coordinates works and SVG 
>> SET ATTRIBUTE doesn’t work in this context. It seems logical to me that 
>> either they would both work or neither would work in this context.
> 
> **
> 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: 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 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 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, they  then need to scroll to the  bit they want to study.
> >
> > Regards,
> >
> > Wayne
**
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: 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 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, they  then need to scroll to the  bit they want to study.
>
> Regards,
>
> Wayne
**
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
**

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, they  then need to scroll to the  bit they want to study.

Regards,

Wayne
**
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
**