mouse coordinates [message #165288] |
Thu, 13 December 2007 17:39 ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
Originally posted by: ali.akar.geensys.com
hello,
how can I receive the mouse coordinates in the diagram ??
Thx in advance,
Ali
|
|
|
|
Re: mouse coordinates [message #165313 is a reply to message #165296] |
Thu, 13 December 2007 22:06 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
Originally posted by: ali.akar.geensys.com
Hi Carson,
when the cursor is inside a figure, I want to calculate the distance
between the actual cursor position and the bounds of the figure.
Ali
Carson Li a écrit :
> Hi Ali,
>
> To give you a proper response, I think you'll have to tell me where
> you're trying retrieve the mouse coordinates.
> But if you're somewhere with access to a DragTracker, it has a method
> getLocation() which returns the mouse coordinates.
>
> -Carson
>
> Ali Akar wrote:
>> hello,
>>
>> how can I receive the mouse coordinates in the diagram ??
>>
>> Thx in advance,
>> Ali
|
|
|
Re: mouse coordinates [message #165337 is a reply to message #165313] |
Fri, 14 December 2007 08:56 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) |
Boris Blajer![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=boris.blajer%40gmail.com) Messages: 217 Registered: July 2009 |
Senior Member |
|
|
Hi Ali,
org.eclipse.draw2d.MouseMotionListener may help.
Best regards,
Boris
Ali Akar wrote:
> Hi Carson,
>
> when the cursor is inside a figure, I want to calculate the distance
> between the actual cursor position and the bounds of the figure.
>
> Ali
>
>
>
>
> Carson Li a écrit :
>> Hi Ali,
>>
>> To give you a proper response, I think you'll have to tell me where
>> you're trying retrieve the mouse coordinates.
>> But if you're somewhere with access to a DragTracker, it has a method
>> getLocation() which returns the mouse coordinates.
>>
>> -Carson
>>
>> Ali Akar wrote:
>>> hello,
>>>
>>> how can I receive the mouse coordinates in the diagram ??
>>>
>>> Thx in advance,
>>> Ali
|
|
|
Powered by
FUDForum. Page generated in 0.04724 seconds