Re: Preventing Return and Enter from Closing a Dialog

2018-05-20 Thread Alan Chan via 4D_Tech
In additions to what you did in your link, did you also do the following : 1) Set standard action to no action instead of accept 2) Set form event to on clicked 3) Add a method in button to do your search or whatever and make sure no command of ACCEPT being used. It has been working for us for

Auto Positioning Print Forms

2018-05-20 Thread Sujit Shah via 4D_Tech
I am trying to automatically "center" the Form 4D prints using PRINT FORM. For some reason no matter where the form objects are placed I keep getting the same coordinates in the first line of code below: `Form event On Load OBJECT GET COORDINATES(*;"@";$lLeft;$lTop;$lRight;$lBottom) //The form

Re: Preventing Return and Enter from Closing a Dialog

2018-05-20 Thread Sannyasin Siddhanathaswami via 4D_Tech
Thanks for everyone's help. I couldn't get the Database Settings solution to work. Very weird. I set it to this and still "Enter" closed the window. https://www.dropbox.com/s/drzxr3othn8dti8/Screenshot%202018-05-20%2016.11.58.png?dl=0 I even restarted the server. Still didn't work. But, I was

Re: Preventing Return and Enter from Closing a Dialog

2018-05-20 Thread Alan Chan via 4D_Tech
Our system has all default Accept/Cancel shortcut unchecked in Database Design Interface setting. We disabled it 20+ years ago:-) It was a tough call back then. Alan Chan 4D iNug Technical <4d_tech@lists.4d.com> writes: >It gets weird if you have an application-wide default close and cancel

Re: Preventing Return and Enter from Closing a Dialog

2018-05-20 Thread Jeffrey Kain via 4D_Tech
It gets weird if you have an application-wide default close and cancel key. Even with no-action buttons, if you disable the button it passes through to the default behavior for the application. So if you have a dialog with an OK button of type Default Button which should only enable in certain

Re: Preventing Return and Enter from Closing a Dialog

2018-05-20 Thread Alan Chan via 4D_Tech
Would setting the Standard Action to No Action be OK in button properties? Then add a method in button to do whatever you like. Alan Chan 4D iNug Technical <4d_tech@lists.4d.com> writes: >Aloha, > >I'm playing with the "proper" way to open up a form. Here's what I have: > Open form

Re: Preventing Return and Enter from Closing a Dialog

2018-05-20 Thread Jeffrey Kain via 4D_Tech
You can also use an On Event Call to handle this if you don't want to change the default behavior for the entire application. Hook an event handler into the On Activate of the form, and restore it in the On Deactivate. -- Jeffrey Kain jeffrey.k...@gmail.com > On May 20, 2018, at 4:06 PM,

Re: Preventing Return and Enter from Closing a Dialog

2018-05-20 Thread Keisuke Miyako via 4D_Tech
using an invisible (type of object) button with the enter/escape key as shortcut does intercept the accept/cancel shortcut, but the button must be visible (property of object), enabled and available (page 0 or current page) and the "on clicked" form event must be activated. I would rather not

Re: Preventing Return and Enter from Closing a Dialog

2018-05-20 Thread Sannyasin Siddhanathaswami via 4D_Tech
Thanks! I've never noticed that setting. While changing that setting didn't work, I'm going to try rebooting the server later to see if that's needed to get the setting to work. I'm running v16.3 Mac on server and client. Two Way Communications via 4D_Tech May

Re: Preventing Return and Enter from Closing a Dialog

2018-05-20 Thread Two Way Communications via 4D_Tech
Hi, Check under the ‘Edit’ menu: ‘Database settings’ Then select the ‘Interface’ tab In the middle of the window, you will see the shortcuts that are being used for accepting and canceling input forms. Regards, Rudy Mortier Two Way Communications bvba > On 20 May 2018, at 22:06, Sannyasin

Preventing Return and Enter from Closing a Dialog

2018-05-20 Thread Sannyasin Siddhanathaswami via 4D_Tech
Aloha, I'm playing with the "proper" way to open up a form. Here's what I have: Open form window([ARInvoice_Payments];"Invoice_Payment_List";Plain form window;On the left;Vertically centered) DIALOG([ARInvoice_Payments];"Invoice_Payment_List") It works fine, but if a user presses

Re: Chromium Embedded Framework in built applications question

2018-05-20 Thread David Adams via 4D_Tech
Thanks for the answers, I wondered if it might be to do with Blink...seems pretty heavy if you're not using it. Actually, we might have a couple of Web areas in there. I wonder if 4D detects that and includes/excludes the framework accordingly. Thanks for the R6 suggestion, we can try that out