mouse coordinates [message #165288] |
Thu, 13 December 2007 12:39  |
Eclipse User |
|
|
|
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 #165337 is a reply to message #165313] |
Fri, 14 December 2007 03:56  |
Eclipse User |
|
|
|
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 1.06322 seconds