Re: Transform picture

2018-12-04 Thread Keisuke Miyako via 4D_Tech
in general, I would avoid applying multiple scale transforms,
but rather,
restore the original size (scale is not resampling, the original image does not 
change)
and apply a new scale factor.

2018/12/05 4:53、Peter Mew via 4D_Tech 
<4d_tech@lists.4d.com>のメール:

It scales correctly the first 4 times I Zoom in, after the 5th Zoom, the
scaling is no longer correct.
Zooming back out restores the correct scaling
Any Ideas what might be going 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
**

Re: Publishing a DB on the WWW. Howto.

2018-12-04 Thread Tim Nevels via 4D_Tech
On Dec 4, 2018, at 2:00 PM, Pat Bensky wrote:

> We've been looking into ways to make it easy for our customers to build
> custom websites using data from our 4D app (CatBase). I'm quite interested
> in the Wix solution but haven't had time to properly look into it. Anybody
> tried this?
> 
> Basically, you can create a database on your Wix website and populate it by
> importing a csv file (AFAIK this is the only upload format currently
> supported). They also have an API which will probably offer much better
> opportunities for integration but I haven't looked into that yet.
> 
> Then you can build your website interface using their excellent tools - no
> coding required. Create interactive forms, edit the database, etc. So the
> 4D developer doesn't need to know more than the basics of web
> design/development and can focus on what they know best ... 4D coding :)
> And the end-user should be able to easily create their website or you could
> offer that as an additional service.
> 
> All theoretical of course. It's something I hope to find time to experiment
> with soon (a nice little Christmas holiday project, perhaps!).

Hi Pat,

I just did a Wix database for a friend and it is pretty good. Great development 
tools for the average guy. WYSIWYG for the most part. Has many features. Full 
mobile support so it will adapt to tablet or phone or Desktop. So that’s a big 
plus. Has may tools for the store for managing contacts and processing orders. 
Great integration if you are doing a shopping cart for credit card processing 
with Stripe and also easy PayPal. Lot of options for easy coupon support, and 
“it’s on sale 20% off” type things. 

Has a mini database of course, but I did no integration work. No export or 
import work or connecting to 4D. The project was just set up a website with a 
store for a friend that wanted it to look very, very nice and have full iPhone 
and iPad support. Wix satisfied all of that. 

You’ll find it a pleasure to use and very beautiful. Great iPhone app that lets 
you deal with “chat” from the website in real time if you want to offer that 
feature. Only thing is you can only do what Wix lets you do.  If they have a 
button for it, or a menu item for it, or an option for what you want, you can 
do it, and it’s easy. If you want to do something it doesn’t provide, it’s 
super hard or you just can’t. 

So keep that in mind. As a 4D developer sometimes that is a hard pill to 
swallow. We usually get our way and build whatever we want/need. With Wix you 
use their tool. It is a website creation for mere mortals, not hard-core 
developers. 

I would recommend you get a free Wix account and try it out over the holidays. 
Spend some hours building a site and see if you like it and it does what you 
want. It is super popular so there is a lot of help and examples on the web. 
You may find out how to do automate database integration. Someone may have 
already done the hard work and you can read how they did it can copy it. You 
can upgrade to the paid version later if it meets your needs.

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

4D and SAML

2018-12-04 Thread Nate Rheaume via 4D_Tech

Has anyone used SAML 2.0 (Security Assertion Markup Language 2.0) with 4D? We 
are currently using the Single Sign On option in 4D but we have a customer that 
needs SAML protocol for SSO. Any information would be very helpful.


Nate Rheaume
Software Developer
n...@dwdev.com
(425) 673-1974
www.freezerworks.com
Dataworks Development, Inc.
Providing secure and configurable data management solutions for research and 
clinical labs since 1987.


**
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: Transform picture

2018-12-04 Thread Charles Miller via 4D_Tech
It could be that after the number of zooms the width to height ration is
wrong for how the picture is placed on the page

scaled to fit center proportional etc

regards
chuck





On Tue, Dec 4, 2018 at 2:54 PM Peter Mew via 4D_Tech <4d_tech@lists.4d.com>
wrote:

> Hi
> Im using Transform picture to Zoom in and out. Horizontally, of a graphic.
> The Graphic starts out about 4500 (This will vary) pixels wide, using
> transform picture to fit it in a window 930 pixels wide.
> the code to zoom in is
>
> <>ScrollRatio:=<>ScrollRatio*2 //Zoom Ratio
> $ScaledL:=OrigL_3 //OrigL_3=The Original horizontal size
> TRANSFORM PICTURE($ScaledL;Scale;<>ScrollRatio;1)
> LeftPic_3:=$ScaledL // LeftPic_3= The displayed picture
>
> It scales correctly the first 4 times I Zoom in, after the 5th Zoom, the
> scaling is no longer correct.
> Zooming back out restores the correct scaling
> Any Ideas what might be going wrong?
>
>
> Thanks
> -pm
> **
> 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
> **



-- 
-
 Chuck Miller Voice: (617) 739-0306 Fax: (617) 232-1064
 Informed Solutions, Inc.
 Brookline, MA 02446 USA Registered 4D Developer
   Providers of 4D, Sybase & SQL Server connectivity
  http://www.informed-solutions.com
-
This message and any attached documents contain information which may be
confidential, subject to privilege or exempt from disclosure under
applicable law.  These materials are intended only for the use of the
intended recipient. If you are not the intended recipient of this
transmission, you are hereby notified that any distribution, disclosure,
printing, copying, storage, modification or the taking of any action in
reliance upon this transmission is strictly prohibited.  Delivery of this
message to any person other than the intended recipient shall not
compromise or waive such confidentiality, privilege or exemption
from disclosure as to this communication.
**
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: Create text object

2018-12-04 Thread Peter Mew via 4D_Tech
Hi Chip
Thanks to your code and OBJECT DUPLICATE I can achieve exactly what I want
Cheers
-PM

On Tue, Nov 27, 2018 at 8:19 PM Chip Scheide <4d_o...@pghrepository.org>
wrote:

> well... not exactly programatically - it does require a creating an
> object (or duplicating an existing one).
>
> - You can place a text object anywhere on the form (I am assuming you
> mean a static text object, like a field/variable label).
> - Name to object.
> - set the property 'invisible by default'.
>
> During runtime you can then:
> - object set title(*;;Array{element})
> - object set visible(*;;True)
> - utl_Object_Move(Nil_ptr;Absolute_left;absolute_top;)
>
>
>
> code for utl_object_Move:
>
>   //Project Method:  utl_Move_Object
>   //$1 - Pointer - to object to move - if Nil, use object name passed
> in $4
>   //$2 - Longint - absolute left location to place object
>   //$3 - Longint - absolute top location to place object
>   //$4 - Text (optional) - Object Name, only used if Nil pointer passed
> in $1
>
>   //move an object to it's absolute left and top (supplied) position
>   // ∙ Created 10/17/12 by Chip -
> C_POINTER($1;$Object_ptr)
> C_LONGINT($2;$3;$New_Top;$New_Left;$Top;$Bottom;$Left;$Right)
> C_TEXT($4;$Object_Name)
>
> $Object_ptr:=$1
>
> If (Nil($Object_Ptr))
> $Object_Name:=$4
> $Object_ptr:=OBJECT Get pointer(Object named;$Object_Name)
> End if
> $New_Left:=$2
> $New_Top:=$3
>
> If (Not(Nil($Object_ptr)))
> OBJECT GET COORDINATES($Object_ptr->;$Left;$Top;$Right;$Bottom)
>
> $Right:=$Right+($New_Left-$Left)
> $Bottom:=$Bottom+($New_Top-$Top)
> OBJECT MOVE($Object_ptr->;$New_Left;$New_Top;$Right;$Bottom;*)
> Else   //object to be moved is a text or other object which can't be
> referenced via pointer
> OBJECT GET COORDINATES(*;$Object_Name;$Left;$Top;$Right;$Bottom)
>
> $Right:=$Right+($New_Left-$Left)
> $Bottom:=$Bottom+($New_Top-$Top)
> OBJECT MOVE(*;$Object_Name;$New_Left;$New_Top;$Right;$Bottom;*)
> End if
>   //End utl_Move_Object
>
>
> On Tue, 27 Nov 2018 19:48:20 +, Peter Mew via 4D_Tech wrote:
> > Hi
> > Is it possible to, programatically, create an object that consists of
> text
> > from an element of an array, and place it at a specific location on a
> form
> >
> > thanks
> > -pm
> > **
> > 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
**

Transform picture

2018-12-04 Thread Peter Mew via 4D_Tech
Hi
Im using Transform picture to Zoom in and out. Horizontally, of a graphic.
The Graphic starts out about 4500 (This will vary) pixels wide, using
transform picture to fit it in a window 930 pixels wide.
the code to zoom in is

<>ScrollRatio:=<>ScrollRatio*2 //Zoom Ratio
$ScaledL:=OrigL_3 //OrigL_3=The Original horizontal size
TRANSFORM PICTURE($ScaledL;Scale;<>ScrollRatio;1)
LeftPic_3:=$ScaledL // LeftPic_3= The displayed picture

It scales correctly the first 4 times I Zoom in, after the 5th Zoom, the
scaling is no longer correct.
Zooming back out restores the correct scaling
Any Ideas what might be going wrong?


Thanks
-pm
**
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: Calling java

2018-12-04 Thread Piotr Chabot Stadhouders via 4D_Tech
Thanks John, I will take a look at it!

Gr,
Piotr


Creating a plugin would be pretty involved. If LAUNCH EXTERNAL PROCESS is too 
slow, I would look into something like JSON RPC. For example,

https://www.jsonrpc.org/archive_json-rpc.org/implementations.html

https://github.com/briandilley/jsonrpc4j

John DeSoi, Ph.D.


> On Dec 4, 2018, at 1:48 AM, Piotr Chabot Stadhouders via 4D_Tech 
> <4d_t...@xxx.xxx> wrote:
>
> We need to call some java classes from within 4D.
> These classes deliver an interface to interact with a smart card connected to 
> the local PC
> Does anybody have an opinion how to handle this?
> I don't see any other way than to use these java classes, and one way or the 
> other call this java in 4D
**
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: Mojave

2018-12-04 Thread Cannon Smith via 4D_Tech
Hi Jim,

Thank you very much. That gives me some direction on what I’ll need to look for.

Much obliged!

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




> On Dec 4, 2018, at 8:26 AM, Jim Hays via 4D_Tech <4d_tech@lists.4d.com> wrote:
> 
> Good graphics - 32 bit 17HF3:
> https://www.dropbox.com/s/0a9ccw3f4mgkqlp/4D%2017.0.229909%2032bit.png?dl=0
> 
> Still missing some text - 64 bit 17HF3
> https://www.dropbox.com/s/i2ybk23gbjhw7d4/4D%2017.0.229909%2064bit.png?dl=0
> 
> Original v17.0 64 bit release - crazy text:
> https://www.dropbox.com/s/cbblaypylkey4zn/4D%2017.0.225365%2064bit.png?dl=0
> 

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

2018-12-04 Thread Jim Hays via 4D_Tech
We are creating various graphics using a combination of SVG, 4D HTML Tags,
and the Canvas plugin.

The SVG was originally created with Sketch on the Mac, then added HTML tags
and simplified the SVG.
We dynamically size and add text, then convert to a picture to be displayed
by Canvas.

We're only concerned about 32bit 4D for now - next year we will work on a
64bit client.
Also, we are 95% Windows, but needed a working Mac client.
We haven't investigated why some things work, and some don't - we have what
we need for now.

Good graphics - 32 bit 17HF3:
https://www.dropbox.com/s/0a9ccw3f4mgkqlp/4D%2017.0.229909%2032bit.png?dl=0

Still missing some text - 64 bit 17HF3
https://www.dropbox.com/s/i2ybk23gbjhw7d4/4D%2017.0.229909%2064bit.png?dl=0

Original v17.0 64 bit release - crazy text:
https://www.dropbox.com/s/cbblaypylkey4zn/4D%2017.0.225365%2064bit.png?dl=0


Jim


On Mon, Dec 3, 2018 at 6:30 PM Cannon Smith via 4D_Tech <
4d_tech@lists.4d.com> wrote:

> Hi Jim,
>
> Do you have more specific information about this issue?
>
> Thanks.
>
> --
> Cannon.Smith
> Synergy Farm Solutions Inc.
> Hill Spring, AB Canada
> 403-626-3236
> 
> 
>
>
> > On Dec 3, 2018, at 2:54 PM, Jim Hays via 4D_Tech <4d_tech@lists.4d.com>
> wrote:
> >
> > We had a problem with SVG graphics in v17.0 on Mojave - fixed with v17
> HF3.
>
> **
> 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: Mojave

2018-12-04 Thread Cannon Smith via 4D_Tech
Thanks for the list, Miyako. Very helpful.

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




> On Dec 3, 2018, at 5:16 PM, Keisuke Miyako via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> ACI0098799On macOS 10.14.x (Mojave), unexpected white vertical line is 
> displayed in the Administration window.
> ACI0098805Unexpected error "Could not open the specified document because it 
> is already in use" when saving a 4D Write and 4D View file on disk on macOS 
> Mojave 10.14 .
> ACI0098908In the method editor, the frame of the auto-completion suggested 
> window is no more displayed. On macOS 10.14.x only (Mojave).
> ACI0098954Issues with images badly rendered in 4D on macOS 10.14.x (Mojave).

**
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: Calling java

2018-12-04 Thread John DeSoi via 4D_Tech
Creating a plugin would be pretty involved. If LAUNCH EXTERNAL PROCESS is too 
slow, I would look into something like JSON RPC. For example,

https://www.jsonrpc.org/archive_json-rpc.org/implementations.html

https://github.com/briandilley/jsonrpc4j

John DeSoi, Ph.D.


> On Dec 4, 2018, at 1:48 AM, Piotr Chabot Stadhouders via 4D_Tech 
> <4d_tech@lists.4d.com> wrote:
> 
> We need to call some java classes from within 4D.
> These classes deliver an interface to interact with a smart card connected to 
> the local PC
> Does anybody have an opinion how to handle this?
> I don't see any other way than to use these java classes, and one way or the 
> other call this java in 4D

**
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: Publishing a DB on the WWW. Howto.

2018-12-04 Thread Pat Bensky via 4D_Tech
We've been looking into ways to make it easy for our customers to build
custom websites using data from our 4D app (CatBase). I'm quite interested
in the Wix solution but haven't had time to properly look into it. Anybody
tried this?

Basically, you can create a database on your Wix website and populate it by
importing a csv file (AFAIK this is the only upload format currently
supported). They also have an API which will probably offer much better
opportunities for integration but I haven't looked into that yet.

Then you can build your website interface using their excellent tools - no
coding required. Create interactive forms, edit the database, etc. So the
4D developer doesn't need to know more than the basics of web
design/development and can focus on what they know best ... 4D coding :)
And the end-user should be able to easily create their website or you could
offer that as an additional service.

All theoretical of course. It's something I hope to find time to experiment
with soon (a nice little Christmas holiday project, perhaps!).

Pat

On Tue, 4 Dec 2018 at 08:49, Paul Dennis via 4D_Tech <4d_tech@lists.4d.com>
wrote:

> As already mentioned. Have a look at lightning. It is now version 4
> supports
> bootstrap 3 which is very important for mobile and you will be able to
> leverage a lot of your 4d existing code.
> Paul
>
>
>
> --
> Sent from: http://4d.1045681.n5.nabble.com/4D-Tech-f1376241.html
> **
> 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: Publishing a DB on the WWW. Howto.

2018-12-04 Thread Paul Dennis via 4D_Tech
As already mentioned. Have a look at lightning. It is now version 4 supports
bootstrap 3 which is very important for mobile and you will be able to
leverage a lot of your 4d existing code.
Paul



--
Sent from: http://4d.1045681.n5.nabble.com/4D-Tech-f1376241.html
**
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
**