Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Tracking mouse pointer over a composite
Tracking mouse pointer over a composite [message #771502] Tue, 27 December 2011 13:07 Go to next message
Jan Krakora is currently offline Jan KrakoraFriend
Messages: 477
Registered: December 2009
Location: Prague
Senior Member
Hi guys,

imagine you have a composite and some other controls within it.
I would like to draw this composite with my custom background color when I move
the mouse pointer over it. How can I do it?

When I add a MouseTrackListener to the composite, mouseExit is called whenever
I move mouse over a control inside the composite. I would like to have the composite colored
even when the mouse is over a control inside it.
Re: Tracking mouse pointer over a composite [message #771549 is a reply to message #771502] Tue, 27 December 2011 15:36 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
You can attach a filter on the display and calculate if they have
happened inside the composite.

Tom

Am 27.12.11 14:07, schrieb Jan Krakora:
> Hi guys,
>
> imagine you have a composite and some other controls within it. I would
> like to draw this composite with my custom background color when I move
> the mouse pointer over it. How can I do it?
> When I add a MouseTrackListener to the composite, mouseExit is called
> whenever I move mouse over a control inside the composite. I would like
> to have the composite colored
> even when the mouse is over a control inside it.
>
Re: Tracking mouse pointer over a composite [message #771909 is a reply to message #771549] Wed, 28 December 2011 14:01 Go to previous message
Jan Krakora is currently offline Jan KrakoraFriend
Messages: 477
Registered: December 2009
Location: Prague
Senior Member
Yes, it works for me. Thanks, Tom
Previous Topic:Source Attachment for SWT and JFace
Next Topic:Combo box popup
Goto Forum:
  


Current Time: Tue Mar 19 07:52:55 GMT 2024

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

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

Back to the top