[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
RE: [platform-swt-dev] To get the mouse cursor location relative to the widget
|
Thanks
Steve. Thanks for your help. I got the solution.
Display.map(null,textControl,x,y) works fine.
Arun
Use Display.map().
Check the Javadoc.
"Arunachalam"
<arunachalaml@xxxxxxxxxxxxxxxxx> Sent by:
platform-swt-dev-admin@xxxxxxxxxxx
07/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