View previous topic :: View next topic |
Author |
Message |
thedracle
Joined: 25 Dec 2005 Posts: 11
|
Posted: Mon Jan 02, 2006 6:08 pm Post subject: evt.x evt.y etc.. |
|
|
I'm trying to access the location of a SelectionEvent on a List widget. Apparently the x and y variables do not get packed with location information. I've traced it back into eventhandler.d--- where it seems the given event still doesn't have the apropriate x or y values. Where is the interface directly to SWT located?
-Jason Thomas. |
|
Back to top |
|
|
Shawn Liu
Joined: 09 Mar 2005 Posts: 104 Location: Shanghai, China
|
Posted: Mon Jan 02, 2006 9:32 pm Post subject: Re: evt.x evt.y etc.. |
|
|
thedracle wrote: | I'm trying to access the location of a SelectionEvent on a List widget. Apparently the x and y variables do not get packed with location information. I've traced it back into eventhandler.d--- where it seems the given event still doesn't have the apropriate x or y values. Where is the interface directly to SWT located? |
Use
Code: | Point pt = display.getCursorLocation(); // fullscreen location
pt = control.toControl(pt); // control relative locatioin |
|
|
Back to top |
|
|
|