Double click

<< Click to Display Table of Contents >>

Navigation:  Forum >

Double click

Forum link

 


 

05-18-2019, 09:58 AM:

 

Hi

 

My users are not the most brilliant ones  , in stead of clicking a button once the often doubleclick.

 

What is a good strategy to handle these doubleclick?

 

Eric

 


 

05-18-2019, 01:19 PM:

 

Hi Eric, if the click are Async events, you can set on LockOnAsyncEvents [aeClick := True];

 


 

05-19-2019, 07:19 AM:

 

Hi 

 

Thanks

 

I'm using CGDevTools button and i dont see anything like that , i will ask on their forum.

 

Eric

 


 

05-19-2019, 09:35 AM:

 

Hello,

 

Here's two ways to handle it with CGDevTools using 'btnSearch' as an example:

 

To disable / enable the button - OnCreate{   btnSearch->JQEvents->OnClick->Script =  "function (e) { $(<#btnSearch#>).button({ disabled: true }); }";}btnSearchJQButtonOptionsClick{  ...process  btnSearch->JQButtonOptions->Disabled = false;}To lock / unlock the whole form - OnCreate{  btnSearch->JQEvents->OnClick->Script =  "function (e) { ActivateLock(); }";}btnSearchJQButtonOptionsClick{  ...process  WebApplication->CallBackResponse->AddJavaScriptToExecuteAsCDATA("ReleaseLock();");}

 

 

 


 

05-19-2019, 01:17 PM:

 

Hi

 

Looks to work fine!

 

Great, thanks for your help!

 

Eric