Can you give me some help about how to distinguish Clicked
and Pressed
? Thank you .. and What does Released
means? would you give me a sample ?
Asked
Active
Viewed 2.4k times
27
2 Answers
55
Pressed: event is generated when you push down the mouse button
Released: event is generated when you release the mouse button (which has been pressed down before)
Clicked: event is generated when a mouse button Pressed & Released.
With these functions you can create a snap-switch for example:
when you press the button, the light will switch off / the music stop / etc , when you release it, light switches back on / the music starts again etc.

Gergely Bacso
- 14,243
- 2
- 44
- 64
-
How can I differentiate between left click and right click? – Yousuf Azad Feb 11 '16 at 15:19
-
Thanks, actually I was looking at that. Is there any way where I don't have to subclass `TableView`? – Yousuf Azad Feb 11 '16 at 15:31
-
I think you are better off posting your own question, and get a clear answer there. – Gergely Bacso Feb 11 '16 at 15:41
7
Clicked is a complete click (press and release), released is when you let go of the mouse button and pressed is when you press down on your mouse button.

f2lollpll
- 997
- 6
- 15