FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

evt.x evt.y etc..

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.     Forum Index -> DWT
View previous topic :: View next topic  
Author Message
thedracle



Joined: 25 Dec 2005
Posts: 11

PostPosted: Mon Jan 02, 2006 6:08 pm    Post subject: evt.x evt.y etc.. Reply with quote

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
View user's profile Send private message
Shawn Liu



Joined: 09 Mar 2005
Posts: 104
Location: Shanghai, China

PostPosted: Mon Jan 02, 2006 9:32 pm    Post subject: Re: evt.x evt.y etc.. Reply with quote

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
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.     Forum Index -> DWT All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group