JavaScript Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingJavaScript Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old February 16th, 2005, 10:26 AM
dbeard dbeard is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Feb 2005
Posts: 2 dbeard User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 48 m 43 sec
Reputation Power: 0
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!

Reply With Quote
  #2  
Old February 16th, 2005, 02:32 PM
Anibal Anibal is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jan 2005
Posts: 176 Anibal User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 4 h 20 m 48 sec
Reputation Power: 4
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.

Reply With Quote
  #3  
Old February 16th, 2005, 04:00 PM
dbeard dbeard is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Feb 2005
Posts: 2 dbeard User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 48 m 43 sec
Reputation Power: 0
Thanks for the link. Unfortunately, nothing there on capturing the mouse coordinates over an ActiveX control.

Reply With Quote
  #4  
Old February 16th, 2005, 04:50 PM
Anibal Anibal is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jan 2005
Posts: 176 Anibal User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 4 h 20 m 48 sec
Reputation Power: 4
Ouch!! Well...took my best shot there...best luck next time

Anibal.

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingJavaScript Development > Get mouse click coordinates on an ActiveX control


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway
Stay green...Green IT