Re: button clicks

2020-01-30 Thread Keisuke Miyako via 4D_Tech
for listboxes and hierarchical lists, we are should be using On Selection 
Change for the most part,
On Clicked is only useful for detecting a click in the blank region or 
processing a contextual click.

using On Clicked for row selection was the convention reserved for scrollable 
areas.
it worked, because the object had no concept of focus,
no concept of selection by keystroke and no concept of multiple row select.

2020/01/31 8:28、Charles Miller via 4D_Tech 
<4d_tech@lists.4d.com>のメール:

I tried enable object first. It has no effect. I cN get Multiple clicks in.
I even tried disable object  first line of code and enable on click for
select in hr list box. Also had no effect. I can get multiple clicks in



**
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: button clicks

2020-01-30 Thread Charles Miller via 4D_Tech
I tried enable object first. It has no effect. I cN get Multiple clicks in.
I even tried disable object  first line of code and enable on click for
select in hr list box. Also had no effect. I can get multiple clicks in



On Thu, Jan 30, 2020 at 5:14 PM Keisuke Miyako via 4D_Tech <
4d_tech@lists.4d.com> wrote:

> yes, that is how click events work.
>
> similar to keystrokes, the actions are queued.
>
> if you have genuine concerns that the user can click multiple time before
> the object method completes,
> you can surround the code block with OBJECT SET ENABLED.
> the appearance will not change (4D only refreshed the UI at the end of the
> even cycle)
> but you will block clicks during method execution.
>
> no need to do it everywhere, if your method is quick enough.
>
> and for object methods that take more than a millisecond to complete,
> the recommendation is to use a worker and CALL FORM to not block the UI.
>
> 2020/01/31 5:32、Charles Miller via 4D_Tech <4d_tech@lists.4d.com 4d_tech@lists.4d.com>>のメール:
>
> When I click the up or down buttons I find that I can click them a
> second time before the code to perform the action has completed. Is
> that what others would expect?
>
>
>
> **
> 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
  https://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: button clicks

2020-01-30 Thread Keisuke Miyako via 4D_Tech
that's not a good example.

try

If (Form event=On Clicked)

ALERT("ouch!")

End if

click really fast, see how many events you can generate before the modal window 
blocks the button.

2020/01/31 5:51、Dennis, Neil via 4D_Tech 
<4d_tech@lists.4d.com>のメール:
Run the form click the button multiple times before the alert comes up... I 
only get one alert.
Try this simple test in your database and let us know what the result is.



**
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: button clicks

2020-01-30 Thread Keisuke Miyako via 4D_Tech
yes, that is how click events work.

similar to keystrokes, the actions are queued.

if you have genuine concerns that the user can click multiple time before the 
object method completes,
you can surround the code block with OBJECT SET ENABLED.
the appearance will not change (4D only refreshed the UI at the end of the even 
cycle)
but you will block clicks during method execution.

no need to do it everywhere, if your method is quick enough.

and for object methods that take more than a millisecond to complete,
the recommendation is to use a worker and CALL FORM to not block the UI.

2020/01/31 5:32、Charles Miller via 4D_Tech 
<4d_tech@lists.4d.com>のメール:

When I click the up or down buttons I find that I can click them a
second time before the code to perform the action has completed. Is
that what others would expect?



**
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: button clicks

2020-01-30 Thread Dennis, Neil via 4D_Tech
> When I click the up or down buttons I find that I can click them a second 
> time before the code to perform the action has completed.
> I would have thought that button clicks were not stacked up until code 
> underneath has completed.

I just created a sample using 4D v18... a one form button with the following 
code in the button:

For ($i;1;1000)
  IDLE
End for 
ALERT("Hello")

Run the form click the button multiple times before the alert comes up... I 
only get one alert.

Try this simple test in your database and let us know what the result is.

Neil






--










Privacy Disclaimer: This message contains confidential information and is 
intended only for the named addressee. If you are not the named addressee you 
should not disseminate, distribute or copy this email. Please delete this email 
from your system and notify the sender immediately by replying to this email.  
If you are not the intended recipient you are notified that disclosing, 
copying, distributing or taking any action in reliance on the contents of this 
information is strictly prohibited.

The Alternative Investments division of UMB Fund Services provides a full range 
of services to hedge funds, funds of funds and private equity funds.  Any tax 
advice in this communication is not intended to be used, and cannot be used, by 
a client or any other person or entity for the purpose of (a) avoiding 
penalties that may be imposed on any taxpayer or (b) promoting, marketing, or 
recommending to another party any matter addressed herein.
**
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
**