Re: Keystroke handling

2018-01-24 Thread Keisuke Miyako via 4D_Tech
the "On Losing Focus" event fires as a "result" of another object taking its 
focus way.

is the default button focusable?

I don't think you can write generic code without knowing the next/previous 
object in entry order.

also, keystrokes are not the only way to edit text, it can be drag and drop, 
context menu, speech input, etc.
On After Edit is especially useful because it catches all means of edit, 
including copy and paste.
(as an example, in Japanese we press the keyboard many times to compose a 
single character)

thinking only in terms of keystrokes feels like going in the opposite direction.

> 2018/01/25 12:05、Jim Crate via 4D_Tech <4d_tech@lists.4d.com> のメール:
> However, with a default button on the form, I don’t even get an On Losing 
> Focus event.



**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Keystroke handling

2018-01-24 Thread Jim Crate via 4D_Tech
I would like to intercept the tab/return/enter keys using the On Before 
Keystroke form event. However, with a default button on the form, I don’t even 
get an On Losing Focus event. With the default button not specified, the return 
key functions the same as a tab, so I can detect losing focus at least. 
However, I’m trying to make a bit of generic code, and a requirement to never 
have a default button is kind of limiting. Hopefully I’m missing something 
obvious?

Also, I’d like to be able to fire the On After Edit event. The docs mention 
programmatic changes to a variable do not fire On After Edit (which is useful), 
but POST KEY will. However, if the variable contains the text I’d like to have 
available in On After Edit, is there a good value to use with POST KEY which 
will not change the value but will fire the event? Am I going to have to do 
something as kludgy as set the value to the value minus the last character, 
HIGHLIGHT TEXT, and POST KEY the last character?

Having all keystrokes available to filter in On Before Keystroke and a POST 
FORM EVENT command would definitely be useful.

Jim Crate

**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Print settings Crash

2018-01-24 Thread Magnus Torell via 4D_Tech
Dear Chuck,

Thanks.
On the computer there were 2 admin users.
One works and the other one does not. Both are indeed admin.

Most likely this was an privileges problem, even though I don't
understand how, as both user were admins.
Something is probably corrupt with the privileges and has to be fixed.

I have not confirmed it is an privileges problem, but anyway 4D seems
a bit more sensitive to such kind of problems. Maybe Print Settings
could have reported a problem with "whatever went wrong" instead of
crashing 4D.

However many thanks for all responses

Best Regards

Magnus





--
Sent from: http://4d.1045681.n5.nabble.com/4D-Tech-f1376241.html
**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

RE: ADA Compliance ???

2018-01-24 Thread Randy Engle via 4D_Tech
Thanks to all for the ADA Resources!

Randy Engle, Director
XC2 Software LLC – XC2LIVE!


-Original Message-
From: 4D_Tech [mailto:4d_tech-boun...@lists.4d.com] On Behalf Of Graham Langley 
via 4D_Tech
Sent: Wednesday, January 24, 2018 8:21 AM
To: 4d_tech@lists.4d.com
Cc: Graham Langley 
Subject: Re: ADA Compliance ???

Randy,

This you give you a good overview of what’s required;

https://www.searchenginejournal.com/ada-compliant-website/200106/



--
Sent from: http://4d.1045681.n5.nabble.com/4D-Tech-f1376241.html
**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: SMTP error 10113 Error with Authentication

2018-01-24 Thread Chuck Miller via 4D_Tech
when using gmail at least you need the 
SMTP_Auth ($smtp_id_l;MAIL_UserName_s;MAIL_Password_s;2)
to have the additional param (2)
to match with smtp port 587 which is secure

Hope this helps

Regards

Chuck

 Chuck Miller Voice: (617) 739-0306
 Informed Solutions, Inc. Fax: (617) 232-1064   
 mailto:cjmillerinformed-solutions.com 
 Brookline, MA 02446 USA Registered 4D Developer
   Providers of 4D and Sybase 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. 

> On Jan 24, 2018, at 12:49 PM, David Ringsmuth via 4D_Tech 
> <4d_tech@lists.4d.com> wrote:
> 
> Wayne,
> 
> I’m trying to remember what the resolution was. I’ve worked through a number 
> of SMTP related things….
> 
> For one of the systems I support for SMTP relay we’ve begun using AWS SES, 
> because it works, it’s fast, it’s cheap. (https://aws.amazon.com/ses/)
> 
> Hth, sorry for not remembering this specific incident….
> 
> David Ringsmuth
> 
> From: Wayne Stewart via 4D_Tech
> Sent: Tuesday, January 23, 2018 9:15 PM
> To: 4D iNug Technical
> Cc: Wayne Stewart
> Subject: Re: SMTP error 10113 Error with Authentication
> 
> Hi,
> 
> Did this sort the problem?
> 
> 
> Regards,
> 
> Wayne
> 
> 
> [image: --]
> Wayne Stewart
> [image: http://]about.me/waynestewart
> 
> 
> 
> On 11 May 2017 at 05:08, David Ringsmuth via 4D_Tech <4d_tech@lists.4d.com>
> wrote:
> 
>> Tim,
>> 
>> Great suggestion. At first I thought it did.
>> 
>> The smtp auth password has only lowercase letters and numbers.
>> 
>> It is using SSL (true) SMTP AUTH (true).
>> 
>> I had that problem on another system. Special characters broke it.
>> 
>> David Ringsmuth
>> 
>> From: Timothy Penner via 4D_Tech
>> Sent: Wednesday, May 10, 2017 1:34 PM
>> To: 4D iNug Technical
>> Cc: Timothy Penner
>> Subject: RE: SMTP error 10113 Error with Authentication
>> 
>> David,
>> 
>> Just a wild guess - Is there a strange character in the password?
>> If so, maybe the character is being handled differently on 4D Server?
>> I don't know why this would be the case, I just thought it might give you
>> something to investigate.
>> 
>> -Tim
>> 
>> 
>> 
>> 
>> **
>> 4D Internet Users Group (4D iNUG)
>> FAQ:  http://lists.4d.com/faqnug.html
>> Archive:  http://lists.4d.com/archives.html
>> Options: http://lists.4d.com/mailman/options/4d_tech
>> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
>> **
>> 
>> **
>> 4D Internet Users Group (4D iNUG)
>> FAQ:  http://lists.4d.com/faqnug.html
>> Archive:  http://lists.4d.com/archives.html
>> Options: http://lists.4d.com/mailman/options/4d_tech
>> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
>> **
>> 
> **
> 4D Internet Users Group (4D iNUG)
> FAQ:  http://lists.4d.com/faqnug.html
> Archive:  http://lists.4d.com/archives.html
> Options: http://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> **
> 
> **
> 4D Internet Users Group (4D iNUG)
> FAQ:  http://lists.4d.com/faqnug.html
> Archive:  http://lists.4d.com/archives.html
> Options: http://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> **

**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

RE: SMTP error 10113 Error with Authentication

2018-01-24 Thread David Ringsmuth via 4D_Tech
Wayne,

I’m trying to remember what the resolution was. I’ve worked through a number of 
SMTP related things….

For one of the systems I support for SMTP relay we’ve begun using AWS SES, 
because it works, it’s fast, it’s cheap. (https://aws.amazon.com/ses/)

Hth, sorry for not remembering this specific incident….

David Ringsmuth

From: Wayne Stewart via 4D_Tech
Sent: Tuesday, January 23, 2018 9:15 PM
To: 4D iNug Technical
Cc: Wayne Stewart
Subject: Re: SMTP error 10113 Error with Authentication

Hi,

Did this sort the problem?


Regards,

Wayne


[image: --]
Wayne Stewart
[image: http://]about.me/waynestewart



On 11 May 2017 at 05:08, David Ringsmuth via 4D_Tech <4d_tech@lists.4d.com>
wrote:

> Tim,
>
> Great suggestion. At first I thought it did.
>
> The smtp auth password has only lowercase letters and numbers.
>
> It is using SSL (true) SMTP AUTH (true).
>
> I had that problem on another system. Special characters broke it.
>
> David Ringsmuth
>
> From: Timothy Penner via 4D_Tech
> Sent: Wednesday, May 10, 2017 1:34 PM
> To: 4D iNug Technical
> Cc: Timothy Penner
> Subject: RE: SMTP error 10113 Error with Authentication
>
> David,
>
> Just a wild guess - Is there a strange character in the password?
> If so, maybe the character is being handled differently on 4D Server?
> I don't know why this would be the case, I just thought it might give you
> something to investigate.
>
> -Tim
>
>
>
>
> **
> 4D Internet Users Group (4D iNUG)
> FAQ:  http://lists.4d.com/faqnug.html
> Archive:  http://lists.4d.com/archives.html
> Options: http://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> **
>
> **
> 4D Internet Users Group (4D iNUG)
> FAQ:  http://lists.4d.com/faqnug.html
> Archive:  http://lists.4d.com/archives.html
> Options: http://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> **
>
**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Object focusable/tabable properties

2018-01-24 Thread Vincent de Lachaux via 4D_Tech
Since 16R4 you can use FORM SET TAB ORDER
https://blog.4d.com/define-the-tab-order-by-programming/

v i n c e n td el a c h a u x

Bee green - keep it on the screen




> On 24 Jan 2018, at 03:37, Jim Crate via 4D_Tech <4d_tech@lists.4D.com> wrote:
>
> Is it possible to programmatically set the Focusable or Tabable properties on 
> a form object (specifically a listbox)? I found the OBJECT SET FOCUS 
> RECTANGLE INVISIBLE command but nothing to actually prevent an object from 
> being tabable.
>
> Jim Crate
>
> **
> 4D Internet Users Group (4D iNUG)
> FAQ:  http://lists.4d.com/faqnug.html
> Archive:  http://lists.4d.com/archives.html
> Options: http://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> **

**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Print settings Crash

2018-01-24 Thread Charles Miller via 4D_Tech
Have you tried creating a new MAC OSX user and see if that exhibits same
behavior. Is one user logged in as admin and others not. Perhaps it is a
permissions thing. Have you tried deleting and  then recreating the printer?

Hope this helps

Regards
Chuck

On Wed, Jan 24, 2018 at 9:51 AM, Magnus Torell via 4D_Tech <
4d_tech@lists.4d.com> wrote:

> Thanks for replies,
>
> I have now installed fresh v16R5 on Server and same on
> client computer...
> Running same database (upgraded)
>
> Identical behavior as with previous v15R5. see earlier post.
> Crash upon print of a method (Page Setup works) and crash
> on Print Settings as before.
>
> Hmm...
> It is 32 bit mode.
> Client doesn't have any Apple updates waiting for Sierra.
> Server is newly GoldPartner licensed (upgraded).
> No messages on server
> However Client still shows a license info that my license expire in 7
> days...
> It is a Team Developer and I don't understand why the client
> computer -in remote mode- even looks for licenses as those resides
> on server... Can this be something? Though it is not expired.
>
> The MBP computer is a 2013 model and no Touch Bar 16 Gb Ram.
>
> Thinking what to try next...
>
> Regards
>
> Magnus
>
>
>
> --
> Sent from: http://4d.1045681.n5.nabble.com/4D-Tech-f1376241.html
> **
> 4D Internet Users Group (4D iNUG)
> FAQ:  http://lists.4d.com/faqnug.html
> Archive:  http://lists.4d.com/archives.html
> Options: http://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)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: ADA Compliance ???

2018-01-24 Thread Lee Hinde via 4D_Tech
I’m familiar with web accessibility:

https://www.w3.org/WAI/intro/accessibility.php 


I found this as an example for desktop software: 
https://www.justice.gov/crt/software-accessibility-checklist 


Generally, the question is how would a person with a disability use your 
software? On the desktop I assumed most people punted to the OS. Apple has done 
a lot in that regard.

I’m surprised (not) that this is the first time it’s come up for you, since the 
ADA was passed in 1990.


> On Jan 24, 2018, at 8:04 AM, Randy Engle via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> Every week, or so, one of our customers comes up with something that they 
> do/need that I've never heard of before.
> 
> This weeks winner is a major city in Southern California.  (no names 
> mentioned...)
> 
> They want to know at  what "Level" our web product is ADA compliant.
> 
> I'm aware of ADA compliance when it comes to physical spaces, ramps, 
> bathrooms, etc., but not for software (web pages, specifically)
> 
> Anybody had the pleasure of handling this one yet?
> Know of any resources?
> 
> Thanks
> 
> Randy Engle, Director
> XC2 Software LLC – XC2LIVE!
> 
> 
> **
> 4D Internet Users Group (4D iNUG)
> FAQ:  http://lists.4d.com/faqnug.html
> Archive:  http://lists.4d.com/archives.html
> Options: http://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> **

**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Object focusable/tabable properties

2018-01-24 Thread Chuck Miller via 4D_Tech
Do you want some one to be able to click in and not tab. If not you could use 
on enter event and deal with what you want cursor to do and where it should 
move to

Regards
Chuck

 Chuck Miller Voice: (617) 739-0306
 Informed Solutions, Inc. Fax: (617) 232-1064   
 mailto:cjmillerinformed-solutions.com 
 Brookline, MA 02446 USA Registered 4D Developer
   Providers of 4D and Sybase 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. 

> On Jan 24, 2018, at 11:12 AM, Chip Scheide via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> only way I know would be to enable/disable the object
> 
> On Tue, 23 Jan 2018 21:37:30 -0500, Jim Crate via 4D_Tech wrote:
>> Is it possible to programmatically set the Focusable or Tabable 
>> properties on a form object (specifically a listbox)? I found the 
>> OBJECT SET FOCUS RECTANGLE INVISIBLE command but nothing to actually 
>> prevent an object from being tabable.
>> 
>> Jim Crate

**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: ADA Compliance ???

2018-01-24 Thread Graham Langley via 4D_Tech
Randy,

This you give you a good overview of what’s required;

https://www.searchenginejournal.com/ada-compliant-website/200106/



--
Sent from: http://4d.1045681.n5.nabble.com/4D-Tech-f1376241.html
**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: ADA Compliance ???

2018-01-24 Thread Keith Culotta via 4D_Tech
No direct experience, but a couple of resources.

Government rules: 
https://www.access-board.gov/guidelines-and-standards/communications-and-it/about-the-ict-refresh/final-regulatory-impact-analysis#_Toc471376906

DOJ Quick Check: https://www.justice.gov/crt/software-accessibility-checklist

Real world example: https://www.dailymotion.com/video/x2zy0nd

Keith - CDI

> On Jan 24, 2018, at 10:04 AM, Randy Engle via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> Every week, or so, one of our customers comes up with something that they 
> do/need that I've never heard of before.
> 
> This weeks winner is a major city in Southern California.  (no names 
> mentioned...)
> 
> They want to know at  what "Level" our web product is ADA compliant.
> 
> I'm aware of ADA compliance when it comes to physical spaces, ramps, 
> bathrooms, etc., but not for software (web pages, specifically)
> 
> Anybody had the pleasure of handling this one yet?
> Know of any resources?
> 
> Thanks
> 
> Randy Engle, Director
> XC2 Software LLC – XC2LIVE!
> 
> 
> **
> 4D Internet Users Group (4D iNUG)
> FAQ:  http://lists.4d.com/faqnug.html
> Archive:  http://lists.4d.com/archives.html
> Options: http://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> **

**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: ADA Compliance ???

2018-01-24 Thread Chip Scheide via 4D_Tech
I would speculate that ADA compliance would include:
-- Read from screen capabilities - for visual impairment
-- zooming capabilities - for (less severe) visual impairment
-- maybe color redefinition - for color blindness
-- if your application uses sound to communicate - a visual prompt for 
hearing impaired
-- alternate input options for the physically impaired (voice vs 
keyboard), alternate mousing

I have NEVER tried any of these, but some of this capability *might* 
exist at the OS level.
I know that there are some options with OS X, but I have never tried 
any of them with 4D, or anything I have developed.


On Wed, 24 Jan 2018 08:04:44 -0800, Randy Engle via 4D_Tech wrote:
> Every week, or so, one of our customers comes up with something that 
> they do/need that I've never heard of before.
> 
> This weeks winner is a major city in Southern California.  (no names 
> mentioned...)
> 
> They want to know at  what "Level" our web product is ADA compliant.
> 
> I'm aware of ADA compliance when it comes to physical spaces, ramps, 
> bathrooms, etc., but not for software (web pages, specifically)
> 
> Anybody had the pleasure of handling this one yet?
> Know of any resources?
> 
> Thanks
> 
> Randy Engle, Director
> XC2 Software LLC – XC2LIVE!
> 
> 
> **
> 4D Internet Users Group (4D iNUG)
> FAQ:  http://lists.4d.com/faqnug.html
> Archive:  http://lists.4d.com/archives.html
> Options: http://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)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Object focusable/tabable properties

2018-01-24 Thread Chip Scheide via 4D_Tech
only way I know would be to enable/disable the object

On Tue, 23 Jan 2018 21:37:30 -0500, Jim Crate via 4D_Tech wrote:
> Is it possible to programmatically set the Focusable or Tabable 
> properties on a form object (specifically a listbox)? I found the 
> OBJECT SET FOCUS RECTANGLE INVISIBLE command but nothing to actually 
> prevent an object from being tabable.
> 
> Jim Crate
> 
> **
> 4D Internet Users Group (4D iNUG)
> FAQ:  http://lists.4d.com/faqnug.html
> Archive:  http://lists.4d.com/archives.html
> Options: http://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)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

ADA Compliance ???

2018-01-24 Thread Randy Engle via 4D_Tech
Every week, or so, one of our customers comes up with something that they 
do/need that I've never heard of before.

This weeks winner is a major city in Southern California.  (no names 
mentioned...)

They want to know at  what "Level" our web product is ADA compliant.

I'm aware of ADA compliance when it comes to physical spaces, ramps, bathrooms, 
etc., but not for software (web pages, specifically)

Anybody had the pleasure of handling this one yet?
Know of any resources?

Thanks

Randy Engle, Director
XC2 Software LLC – XC2LIVE!


**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Print settings Crash

2018-01-24 Thread John DeSoi via 4D_Tech


> On Jan 24, 2018, at 8:51 AM, Magnus Torell via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> However Client still shows a license info that my license expire in 7
> days...

I'm getting this too with 16R6 beta. Not sure why. I deleted my old developer 
licenses but still get it. Maybe you have to license it again after all the old 
licenses are removed.

> 
> The MBP computer is a 2013 model and no Touch Bar 16 Gb Ram.
> 
> Thinking what to try next...

Have you looked at the crash reports? Sometimes those give a clue. Open Console 
and click on "User Reports".

John DeSoi, Ph.D.


**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Print settings Crash

2018-01-24 Thread Magnus Torell via 4D_Tech
Yes, there is a default printer.

I have now also defined a couple of printers and tried with
both defined as default.
No difference.

Going through the debugger it crashes immediately when calling
Print Settings(2)
Calling Print Settings it crashes immediately after hitting OK in the second
dialog.

Regards

/Magnus



--
Sent from: http://4d.1045681.n5.nabble.com/4D-Tech-f1376241.html
**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Print settings Crash

2018-01-24 Thread Jeffrey Kain via 4D_Tech
There is a printer defined/installed, right? Eons ago having no default printer 
would crash 4D in various ways.

--
Jeffrey Kain
jeffrey.k...@gmail.com




> On Jan 24, 2018, at 9:51 AM, Magnus Torell via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> Thinking what to try next...

**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Print settings Crash

2018-01-24 Thread Magnus Torell via 4D_Tech
Thanks for replies,

I have now installed fresh v16R5 on Server and same on
client computer...
Running same database (upgraded)

Identical behavior as with previous v15R5. see earlier post.
Crash upon print of a method (Page Setup works) and crash
on Print Settings as before.

Hmm...
It is 32 bit mode.
Client doesn't have any Apple updates waiting for Sierra.
Server is newly GoldPartner licensed (upgraded).
No messages on server
However Client still shows a license info that my license expire in 7
days...
It is a Team Developer and I don't understand why the client
computer -in remote mode- even looks for licenses as those resides
on server... Can this be something? Though it is not expired.

The MBP computer is a 2013 model and no Touch Bar 16 Gb Ram.

Thinking what to try next...

Regards

Magnus



--
Sent from: http://4d.1045681.n5.nabble.com/4D-Tech-f1376241.html
**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Creating .docx files

2018-01-24 Thread Dani Beaubien via 4D_Tech
Hi Patrick,

I have approached this differently.

On disk, I have a php file for every “report” that I want to produce. Inside 
that php file I have a placeholder. When I need to run my report, I generate a 
series of php statements that define a data structure that I then insert into a 
copy the PHP file. I use an external version of PHP to execute the save php 
script.

Doing this method, I am able to have a PDF and Word versions of the same report 
and there is no changes to make in my 4D Structure other than decision logic to 
decide which PHP file to use as a source.

I have used composer to install phpword into a vendor folder.

Some advantages are that I can easily test my report by executing the php file 
directly from the command line. All that is needed is to insert some data into 
the file.

I will send you a sample of one of the reports offline.

Dani


> On Jan 24, 2018, at 6:26 AM, Patrick Emanuel via 4D_Tech 
> <4d_tech@lists.4d.com> wrote:
> 
> I forgot to answer to this: What do you have in your autoloader.php file? 
> it is not mine, but the phpword one. It is a part of the php librairy. 
> 
> Patrick
> 
> 
> 
> -
> Patrick EMANUEL
> 
> Administrator
> www.association-qualisoft.eu 
> (Soft1002, Simply Asso & QS_Toolbox)
> --
> Sent from: http://4d.1045681.n5.nabble.com/4D-Tech-f1376241.html
> **
> 4D Internet Users Group (4D iNUG)
> FAQ:  http://lists.4d.com/faqnug.html
> Archive:  http://lists.4d.com/archives.html
> Options: http://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> **

**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Print settings Crash

2018-01-24 Thread Kirk Brooks via 4D_Tech
Magnus,
I run v15.5 on my OLED MacBookPro with no problems under Sierra. I also
suggest upgrading from the v15R.

Kirk Brooks
San Francisco, CA
===

*We go vote - they go home*


On Wed, Jan 24, 2018 at 4:52 AM, Magnus Torell via 4D_Tech <
4d_tech@lists.4d.com> wrote:

> Dear,
>
> Strange problem I run into.
>
> The command Print Settings crash my 4D Remote on Mac OSX Sierra
> ​...
>
>
> 4D Version is v15R5. There are many clients that work without issues for
> more than a year.
> This is a semi new MB Pro that I setup for 4D client.
**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Object focusable/tabable properties

2018-01-24 Thread Arnaud de Montard via 4D_Tech

> Le 24 janv. 2018 à 03:37, Jim Crate via 4D_Tech <4d_tech@lists.4d.com> a 
> écrit :
> 
> Is it possible to programmatically set the Focusable or Tabable properties 

PS 
if your concern is about listbox, the tabable property is ignored (since the 
dawn of times?)
I send a bug report, status is "verified and reproducible". 

-- 
Arnaud de Montard 



**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Print settings Crash

2018-01-24 Thread Magnus Torell via 4D_Tech
Thanks Arnaud,

I tried that.

From A method window I choose Page Setup and it works.
When selecting Print (cmd+P) the application crashes immediately.

What does this tell me?

I will try to do the same thing with v16R5.
Nothing is setup for the moment, so it will be tonight.

Best for now

Regards
Magnus



--
Sent from: http://4d.1045681.n5.nabble.com/4D-Tech-f1376241.html
**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Print settings Crash

2018-01-24 Thread Jeffrey Kain via 4D_Tech
If it's a Touch Bar MacBook Pro you'll probably need to upgrade to a compatible 
version of 4D. v15R5 is very old at this point. I'd move to 16.3 if you can.


--
Jeffrey Kain
jeffrey.k...@gmail.com




> On Jan 24, 2018, at 7:52 AM, Magnus Torell via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> I am missing something but I have looked in archives for related topics,
> but can't find anything. I remember some printing issues some years
> ago if there was no printer defined at all in the system, but this seems not
> to be the case.

**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Creating .docx files

2018-01-24 Thread Patrick Emanuel via 4D_Tech
I forgot to answer to this: What do you have in your autoloader.php file? 
it is not mine, but the phpword one. It is a part of the php librairy. 

Patrick



-
Patrick EMANUEL

Administrator
www.association-qualisoft.eu 
(Soft1002, Simply Asso & QS_Toolbox)
--
Sent from: http://4d.1045681.n5.nabble.com/4D-Tech-f1376241.html
**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Print settings Crash

2018-01-24 Thread Arnaud de Montard via 4D_Tech

> Le 24 janv. 2018 à 13:52, Magnus Torell via 4D_Tech <4d_tech@lists.4d.com> a 
> écrit :
> 
> Dear,
> 
> Strange problem I run into.
> 
> The command Print Settings crash my 4D Remote on Mac OSX Sierra
> after I accept the first dialog.

No great help, but I'd try printing something from structure to see if it's 4D 
itself or just the runtime mode. 

-- 
Arnaud de Montard 




**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Print settings Crash

2018-01-24 Thread Magnus Torell via 4D_Tech
Dear,

Strange problem I run into.

The command Print Settings crash my 4D Remote on Mac OSX Sierra
after I accept the first dialog.
Print Settings(2) crashes immediately.
Print Settings(1) works fine.
Actually I can't print at all if I go through the print settings
confirmation.

I have made fresh install, deleted complete cashed folder etc.
This is only for one specific computer. Both compiled and interpreted.
There is a printer configured and made default and other programs print just
fine.

4D Version is v15R5. There are many clients that work without issues for
more than a year.
This is a semi new MB Pro that I setup for 4D client.

I am missing something but I have looked in archives for related topics,
but can't find anything. I remember some printing issues some years
ago if there was no printer defined at all in the system, but this seems not
to be the case.

Any ideas are welcome.

Best
Magnus Torell



--
Sent from: http://4d.1045681.n5.nabble.com/4D-Tech-f1376241.html
**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Creating .docx files

2018-01-24 Thread Patrick Emanuel via 4D_Tech
What's "Export_Echappement"? (echappement means "escape", right? Does this 
method add escape characters? 

Yes, indeed. I translate some method names but i'm too french sometimes ;-)
but you catch the wording.
I will update in my componant, thanks.
Here is the code:
C_TEXT($1;$0)
If (Count parameters=1)
C_LONGINT($i)
$value_t:=$1
$metacharacters_t:=Char(Quote)+Char(Double quote)+"\\[]{}<>"
For ($i;1;Length($metacharacters_t))
$metacharacter_t:=Substring($metacharacters_t;$i;1)
$value_t:=Replace string($value_t;$metacharacter_t;"";*)  // 
par un espace
End for 
$0:=$value_t
End if 

-

Regarding other points:

*SET DATABASE PARAMETER*(PHP use external interpreter;0) 
-> To be sure to use the php interpreter of 4D in case of you have your own
one.

$OK:=*PHP Execute*("";"quit_4d_php") 
-> I use it to clear the memory. I don't know if I'm right, but I get it by
looking some code from 4D-men

*PHP SET OPTION*(PHP raw result;*True*) 
-> to get all 'error' information.

$OK:=*PHP Execute*("";"relaunch_4d_php") 
-> I observe that sometimes, the first call do nothing. So, I restart the
'motor' before trying to do the job.

*DELAY PROCESS*(*Current process*;20) 
-> To let few  time but long time at processor time machine to finish all
previous commands.

Hope it's helpful

Patrick





-
Patrick EMANUEL

Administrator
www.association-qualisoft.eu 
(Soft1002, Simply Asso & QS_Toolbox)
--
Sent from: http://4d.1045681.n5.nabble.com/4D-Tech-f1376241.html
**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Creating .docx files

2018-01-24 Thread Pat Bensky via 4D_Tech
That's excellent, thanks Patrick!
A couple of questions ...

$script_t:=$script_t+"$section->addText(htmlspecialchars('"+Export_
Echappement($Texte)+"'));\r"


What's "Export_Echappement"? (echappement means "escape", right? Does this
method add escape characters?

*SET DATABASE PARAMETER*(PHP use external interpreter;0)

$OK:=*PHP Execute*("";"quit_4d_php")

*PHP SET OPTION*(PHP raw result;*True*)

$OK:=*PHP Execute*("";"relaunch_4d_php")

*DELAY PROCESS*(*Current process*;20)

Why quit and relaunch 4D?

Also ...
What do you have in your autoloader.php file?

Thanks!
Pat

On 24 January 2018 at 02:33, Patrick Emanuel via 4D_Tech <
4d_tech@lists.4d.com> wrote:

> Hi,
>
> I've extract and compile code lines for you.
> If you have able to participate to the next Summit, you will get special
> gift containing some example of phpword code.
> It works with the v0.12.1
>
> here the code, and let me know.
>
>
> C_BLOB($Blob)
>
> $NomSortie:="DocumentName.docx"
>
>
> $PhpCode:=Create document($script)
> $script_t:=""
> $script_t:=$script_t+"
> $script_t:=$script_t+"// PHP Word\r"
> $script_t:=$script_t+"require_once __DIR__ .
> '/PhpOffice/PhpWord/Autoloader.php';\r"
> $script_t:=$script_t+"use \\PhpOffice\\PhpWord\\Autoloader;\r"
> $script_t:=$script_t+"use \\PhpOffice\\PhpWord\\Settings;\r"
> $script_t:=$script_t+"use \\PhpOffice\\PhpWord\\IOFactory;\r"
>
> $script_t:=$script_t+"Autoloader::register();\r"
> $script_t:=$script_t+"Settings::loadConfig();\r\r"
>
> $script_t:=$script_t+"  // create new PHPWord object\r"
> $script_t:=$script_t+"$PHPWord=new \\PhpOffice\\PhpWord\\PhpWord();\r\r"
>
> $script_t:=$script_t+"  // new section\r"
> $script_t:=$script_t+"$section=$PHPWord->createSection();\r"  // portrait
> by
> default
> $script_t:=$script_t+"$section->getSettings()->
> setPageNumberingStart(1);\r"
> $script_t:=$script_t+"$section->addText(htmlspecialchars('"+Export_
> Echappement
> ($Texte)+"'));\r"
> $script_t:=$script_t+"$objWriter=\\PhpOffice\\PhpWord\\IOFactory::
> createWriter($PHPWord,
> 'Word2007');\r"
> $script_t:=$script_t+"$objWriter->save('"+$NomSortie+"');\r ?>"
>
>
> CONVERT FROM TEXT($script_t;"UTF-8";$Blob)
> $Texte:=Convert to text($Blob;"UTF-8")
> SEND PACKET($PhpCode;$Texte)
> CLOSE DOCUMENT($PhpCode)
>
> SET DATABASE PARAMETER(PHP use external interpreter;0)
> $OK:=PHP Execute("";"quit_4d_php")
> PHP SET OPTION(PHP raw result;True)
> $OK:=PHP Execute("";"relaunch_4d_php")
> DELAY PROCESS(Current process;20)
>
> ON ERR CALL("PHP_Error")
> While (($isOK=False) & ($compteur<3))  // Try 3 times before exit
> $Progression:=$Progression+$pas
> $compteur:=$compteur+1
> $isOK:=PHP Execute($script;"";$result)
> DELAY PROCESS(Current process;15)  // 1/4 seconde delay
> End while
>
> $isOK:=PHP Execute("";"quit_4d_php")
>
>
>
>
>
> -
> Patrick EMANUEL
> 
> Administrator
> www.association-qualisoft.eu
> (Soft1002, Simply Asso & QS_Toolbox)
> --
> Sent from: http://4d.1045681.n5.nabble.com/4D-Tech-f1376241.html
> **
> 4D Internet Users Group (4D iNUG)
> FAQ:  http://lists.4d.com/faqnug.html
> Archive:  http://lists.4d.com/archives.html
> Options: http://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)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Object focusable/tabable properties

2018-01-24 Thread Arnaud de Montard via 4D_Tech

> Le 24 janv. 2018 à 03:37, Jim Crate via 4D_Tech <4d_tech@lists.4d.com> a 
> écrit :
> 
> Is it possible to programmatically set the Focusable or Tabable properties on 
> a form object (specifically a listbox)? I found the OBJECT SET FOCUS 
> RECTANGLE INVISIBLE command but nothing to actually prevent an object from 
> being tab able.

I don't think it exists. I suppose you'll have to play with events… 

-- 
Arnaud de Montard 




**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**