Various mouse events

Their sequence of mouse is as follows
When we click mouse following things happens in sequence
1)MouseDown
2)Click
3)MouseClick

lets see what are main differences between them

MouseDown event:
1)It helps us to identify which mouse button was pressed(ex: left,middle, right)

2) Does not fire through a keyboard

3)can also be used to give coordinates(X and Y coordinates where the mouse

was pressed)

Click event:
1)we cannot identify the mouse button that was pressed

2) Does fire through keyboard (enter, spacebar keys for example)

3)Does not give co-ordinates

MouseClick event:
1)Fires through the default button(Left Button)

2)Does not fire through keyboard.

3)Gives coordinates where the Mouse was clicked.

Ebook Download
View all
Learn
View all