Jump to content

How to avoid/block double click in a UniButton?


Rafael P

Recommended Posts

Is there a property or something else that i can block or simple don't allow user to click twice in a button in less than five seconds? 

I've tried this, but unfortunately doesn't work right:

  pUltimoClick := Now;

  if SecondsBetween(pUltimoClick, Now) < 5 then
    Exit;
Link to comment
Share on other sites

10 hours ago, Rafael P said:

Is there a property or something else that i can block or simple don't allow user to click twice in a button in less than five seconds? 

Hello,

Do you want to avoid a second click while a "certain process is running"? If I understand correctly, there are many ways, for example:

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...