codetoad.com
  ASP Shopping CartForum & BBS
  - all for $20 from CodeToad Plus!
  
  Home || ASP | ASP.Net | C++/C# | DHTML | HTML | Java | Javascript | Perl | VB | XML || CodeToad Plus! || Forums || RAM 
Search Site:
Search Forums:
  Mouse click coordinates on an ActiveX control?  dbeard at 21:09 on Wednesday, February 16, 2005
 

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!









CodeToad Experts

Can't find the answer?
Our Site experts are answering questions for free in the CodeToad forums








Recent Forum Threads
•  Re: ASP.NET web controls
•  netscape 6 browser problem
•  Re: Print .doc file from the website using System.Diagnostics.Process
•  Re: Print and print preview file on the website without using the File - Print on the IE
•  Re: JavaSript Problem In Mac Safari Browser
•  Re: DHTML div positionning Problem
•  Convert script to NS6 compatible - Please Help!
•  Re: Fullscreen code
•  Re: iframe targeting


Recent Articles
Communicating with the Database (Using ADO)
MagicGrid
Simple Thumbnail Browsing Solution
Type Anywhere
A Better Moustrap: FmtDate to replace FormatDateTime
ASP.NET Forum Source Code
Internal Search Engine
Javascript Growing Window
Simple date validation
Search engine friendly URLs using ASP.NET (C#.NET)


Site Survey
Help us serve you better. Take a five minute survey. Click here!

© Copyright codetoad.com 2001-2005