Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » how to handle mouse click outside component?
how to handle mouse click outside component? [message #442668] Fri, 10 September 2004 15:54 Go to next message
Eclipse UserFriend
Originally posted by: marcin.NOSPAM.swt-controls.com

Hi,
I have a form with my custom control extending Composite.
When control is active (has focus) I want to handle mouse click outside it.
Is there any way to handle such event?

parent.setMouseListener is not enough for me...

Any ideas?

Thanks
Marcin
Re: how to handle mouse click outside component? [message #442671 is a reply to message #442668] Fri, 10 September 2004 16:11 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: marcin.NOSPAM.swt-controls.com

marcin naglik wrote:
> Hi,
> I have a form with my custom control extending Composite.
> When control is active (has focus) I want to handle mouse click
> outside it. Is there any way to handle such event?

I've searched group for a moment and found some partial solution.
Tell me if I'm wrong.

On get focus I can register mouse listener on display and then unregister it
on focus lost.

?
Re: how to handle mouse click outside component? [message #442672 is a reply to message #442668] Fri, 10 September 2004 16:30 Go to previous message
Charlie Surface is currently offline Charlie SurfaceFriend
Messages: 40
Registered: July 2009
Member
Control.setCapture

"marcin naglik" <marcin@NOSPAM.swt-controls.com> wrote in message
news:chsigo$4pq$1@eclipse.org...
> Hi,
> I have a form with my custom control extending Composite.
> When control is active (has focus) I want to handle mouse click outside
it.
> Is there any way to handle such event?
>
> parent.setMouseListener is not enough for me...
>
> Any ideas?
>
> Thanks
> Marcin
>
>
Previous Topic:Default font for a SWT app
Next Topic:Context menu for StyledText widget
Goto Forum:
  


Current Time: Fri Apr 19 13:38:08 GMT 2024

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

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

Back to the top