
Signature
Programming ASP.NET with VB.NET
Thank's (if you try to help me)
Hope this help you (if I try to help you)
ruca
Ruca,
Look at System.Drawing.Point
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/
frlrfsystemdrawingpointclasstopic.asp
And
Control.PointToScreen method
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/
frlrfsystemwindowsformscontrolclasspointtoscreentopic.asp
HTH,
Raymond Lewallen
> How can I get the coordinates of where I click with the mouse?
> It is possible to know?
[quoted text clipped - 4 lines]
> Hope this help you (if I try to help you)
> ruca
Raymond Lewallen - 06 Apr 2004 16:27 GMT
Ruca,
Wasn't paying attention :) I don't believe the Drawing namespace of
Control.PointToScreen method will work for you in a web based solution..
only in windows forms solutions.
Sorry for trying to confuse you :)
Raymond Lewallen
> Ruca,
>
> Look at System.Drawing.Point
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/
> frlrfsystemdrawingpointclasstopic.asp
>
> And
>
> Control.PointToScreen method
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/
> frlrfsystemwindowsformscontrolclasspointtoscreentopic.asp
>
[quoted text clipped - 10 lines]
> > Hope this help you (if I try to help you)
> > ruca
you can handle it in the event such as click or doubleclick (depending on if
its availiable).
you can hittest.
you can use the API.
> How can I get the coordinates of where I click with the mouse?
> It is possible to know?
Hi Ruca,
Are you using fixed webpages.
I do not believe that this is standard possible with HTML pages. Maybe you
can use the area map for this or something.
(I type this more to show the others you are using ASPX)
:-)
Cor
try these routines, they are pretty accurate:
function findPosY(obj){
var curtop = 0;
if (document.getElementById || document.all) {
while (obj.offsetParent) {
curtop += obj.offsetTop;
if (typeof(obj.scrollTop) == 'number')
curtop -= obj.scrollTop;
obj = obj.offsetParent;
}
}
else if (document.layers)
curtop += obj.y;
return curtop;
}
function findPosX(obj) {
var curleft = 0;
if (document.getElementById || document.all) {
while (obj.offsetParent) {
curleft += obj.offsetLeft
obj = obj.offsetParent;
}
}
else if (document.layers)
curleft += obj.x;
return curleft;
}
-- bruce (sqlwork.com)
> How can I get the coordinates of where I click with the mouse?
> It is possible to know?
[quoted text clipped - 4 lines]
> Hope this help you (if I try to help you)
> ruca
ruca - 08 Apr 2004 11:45 GMT
Where should I call them?

Signature
Programming ASP.NET with VB.NET
Thank's (if you try to help me)
Hope this help you (if I try to help you)
ruca.
> try these routines, they are pretty accurate:
>
[quoted text clipped - 36 lines]
> > Hope this help you (if I try to help you)
> > ruca
bruce barker - 09 Apr 2004 04:31 GMT
in client code. if you the x & y on the server, then you want to use an
image map
-- bruce (sqlwork.com)
> Where should I call them?
>
[quoted text clipped - 44 lines]
> > > Hope this help you (if I try to help you)
> > > ruca
Lithium - 09 Apr 2004 13:01 GMT
This easy solution is for internet explorer - PS Mozilla suck
<html onclick="get_Coords();"><body
for internet explore
set in the html tag an onclick event
<p>dsjkafdskfda</p><script language="JScript"
function get_Coords(
alert ("relative to Client Area Origin: \r\n"
event.clientX+"\r\n"
event.clientY
"\r\n relative to Screen Area Origin: \r\n"
event.screenX+"\r\n"
event.screenY)
</script></body></html