Find editPart/modelObject [message #184487] |
Tue, 14 June 2005 07:06 |
Eclipse User |
|
|
|
Originally posted by: hayes234.hotmail.com
Dear all,
In my GEF editor I would like to find an edit part or model object
depending on where the user dragged a component with the mouse. What I get
is a ChangeBoundsRequest with the mouse location where the user released
his mouse and additionally I now the absolute bounds of all edit parts
that are displayed.
My problem is that when the user has scrolled down using the scroll bar
then the mouse coordinates are not relative to the top left corner of the
first component but relative to the first visible top left corner in the
editor.
So my question: how can I find out how much the user scrolled in order to
translate the mouse location? Or is there another way to find the edit
part where the user released his mouse.
TIA, Peter
|
|
|
Powered by
FUDForum. Page generated in 0.02937 seconds