* * *

Author Topic: Triple click mouse button  (Read 534 times)


  • New member
  • *
  • Posts: 39
Triple click mouse button
« on: July 24, 2017, 01:59:13 pm »
I need to detect and handle a triple click mouse button event on a form. I see the protected property TControl.OnTripleClick but i'm not able to work with it. Some suggestions? Thanks in advance!


  • Hero Member
  • *****
  • Posts: 659
    • Burdjia
Re: Triple click mouse button
« Reply #1 on: July 25, 2017, 12:07:18 pm »
May be it is not published because the control you're using can't handle triple click properly.

You can try publishing it by yourself.  For example:
Code: Pascal  [Select]
  1.   TYPE
  2.   (* Extends TButton to publish the triple click event. *)
  3.     TButtonTripleClick = CLASS (TButton)
  4.     PUBLISHED
  5.       PROPERTY OnTripleClick;
  6.     END

You'll need to create the control "by hand" to test it.


  • Hero Member
  • *****
  • Posts: 4805
Re: Triple click mouse button
« Reply #2 on: July 25, 2017, 12:18:28 pm »
Note that tripleclick on windows (select all of  line) is an OS determined event and not cross-platform.
"Logically, no number of positive outcomes at the level of experimental testing can confirm a scientific theory, but a single counterexample is logically decisive."



Get Lazarus at SourceForge.net. Fast, secure and Free Open Source software downloads Open Hub project report for Lazarus