Board index » delphi » How To disable "DoubleClick" in TButton

How To disable "DoubleClick" in TButton

Some users are clicking two times (doubleclicking) a button and it is
triggering the event attached to OnClick event, wich causes an error.

Does anyone knows how to prevent or disable this functionallity?

Thanks in advantage,

Raphael,

 

Re:How To disable "DoubleClick" in TButton


Quote
Raphael wrote:
> Some users are clicking two times (doubleclicking) a button and it is
> triggering the event attached to OnClick event, wich causes an error.

> Does anyone knows how to prevent or disable this functionallity?

Teach your application not to accept the second click. It isn't
the double click that is causing the problem. Two single clicks
would do the same thing. So when you get the first click message,
disable the button so that it won't accept any more clicks. Do
your processing for the first click. When your processing is
complete, you can enable the button again.

Good luck.

Kurt

Other Threads