[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform.swt] Re: Passing events from Widget to Widget

Matthew Hall schrieb:
Display.post expects a point in the display's coordinate system, so I think you have to translate the shell's coordinates to the display's:

            Point toDisplay = s.toDisplay( event.x, event.y );
            event.x = toDisplay.x;
            event.y = toDisplay.y;
            s.close();
            display.post( event );


No difference.

Tom

--
B e s t S o l u t i o n . at
--------------------------------------------------------------------
Tom Schindl                                          JFace-Committer
--------------------------------------------------------------------