Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[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



Back to the top