Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » set location of Dialog
set location of Dialog [message #461317] Tue, 20 September 2005 19:23
Patrick is currently offline PatrickFriend
Messages: 55
Registered: July 2009
Member
I've created a custom extension of Dialog. Right now it is initially
drawn in the upper left hand corner. I want it to show up at the current
mouse position.
How do I get the current mouse X + Y position so I can use in
Dialog.setLocation?

Thanks!
Re: set location of Dialog [message #461319 is a reply to message #461317] Tue, 20 September 2005 19:18 Go to previous message
Eclipse UserFriend
Originally posted by: richkulp.us.NO_SPAM.ibm.com

Display.getCurrent().getCursorLocation()

Patrick wrote:
> I've created a custom extension of Dialog. Right now it is initially
> drawn in the upper left hand corner. I want it to show up at the current
> mouse position.
> How do I get the current mouse X + Y position so I can use in
> Dialog.setLocation?
>
> Thanks!

--
Thanks,
Rich Kulp
Previous Topic:TreeColumn events
Next Topic:HTML text rendering in a text widget (like JLabel in Swing)?
Goto Forum:
  


Current Time: Sat Aug 17 12:35:51 GMT 2019

Powered by FUDForum. Page generated in 0.01851 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top