| RE: [platform-swt-dev] To get the mouse cursor location relative to the widget |
-----Original Message-----
From: platform-swt-dev-admin@xxxxxxxxxxx [mailto:platform-swt-dev-admin@xxxxxxxxxxx]On Behalf Of Steve Northover
Sent: Wednesday, July 14, 2004 8:36 PM
To: platform-swt-dev@xxxxxxxxxxx
Cc: platform-swt-dev@xxxxxxxxxxx; platform-swt-dev-admin@xxxxxxxxxxx
Subject: Re: [platform-swt-dev] To get the mouse cursor location relative to the widget
Use Display.map(). Check the Javadoc.
"Arunachalam" <arunachalaml@xxxxxxxxxxxxxxxxx>
Sent by: platform-swt-dev-admin@xxxxxxxxxxx07/14/2004 09:22 AM
Please respond to
platform-swt-dev
To<platform-swt-dev@xxxxxxxxxxx> cc Subject[platform-swt-dev] To get the mouse cursor location relative to the widget
The following link explains the drag under effect.
http://dev.eclipse.org/newslists/news.eclipse.platform.swt/msg12216.html
This approach works fine within the StyledText widget. Lets take this
scenario,
One element is dragged from one view and dropped into StyledText widget. If
We want to implement the same among the widget (using DropTargetEvent), the
corresponding event gives us the X, and Y position of mouse cursor relative
to the display. In this case, we are unable to get the x,y position relative
to the StyledText widget.
How can we solve this?
Thanks and regards,
Arun
_______________________________________________
platform-swt-dev mailing list
platform-swt-dev@xxxxxxxxxxx
http://dev.eclipse.org/mailman/listinfo/platform-swt-dev