|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Get mouse click coordinates on an ActiveX control
Can anyone shed some light on how to capture the X,Y coordinates of a mouse-click on an ActiveX control? I can capture to coordinates if the mouse is clicked anywhere else in the document. And I can capture the coordinates from the click event of the ActiveX control. However, the coordinates returned from the click event of the ActiveX are limited to the X,Y coordinates inside of the control.
Basically, I'm trying to get the X,Y coordinates of the screen when the user clicks on the ActiveX control to display a pop-up menu and I would like the menu to pop-up at the X,Y position of the mouse pointer. I don't really want to use the "oncontextmenu" approach because this page may be accessed from a touch-screen where no right-click is available to the user. This will be used only in IE 5+ environment. Many thanks! |
|
#2
|
|||
|
|||
|
Hey Mate! This a link to a page with amazing stuff about Mouse movement, etc
http://www.codelifter.com/main/java...eposition1.html I'm sure that's what you're looking for! Good Luck.. Anibal. |
|
#3
|
|||
|
|||
|
Thanks for the link. Unfortunately, nothing there on capturing the mouse coordinates over an ActiveX control.
![]() |
|
#4
|
|||
|
|||
|
Ouch!! Well...took my best shot there...best luck next time
Anibal. |
![]() |
| Viewing: Dev Articles Community Forums > Programming > JavaScript Development > Get mouse click coordinates on an ActiveX control |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|