Recent

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

simsee

  • Full Member
  • ***
  • Posts: 196
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!

Ñuño_Martínez

  • Hero Member
  • *****
  • Posts: 1195
    • 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
  7.  

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

Thaddy

  • Hero Member
  • *****
  • Posts: 16520
  • Kallstadt seems a good place to evict Trump to.
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.
But I am sure they don't want the Trumps back...

 

TinyPortal © 2005-2018