* * *

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


  • New member
  • *
  • Posts: 45
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: 798
    • 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.
Are you interested in game programming? Join the Pascal Game Development community!
Also visit the Game Development Portal


  • Hero Member
  • *****
  • Posts: 6350
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.
I am enjoining wine, not whine....



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