Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » [Draw2D] Mouse Down in StackLayout - reaching "lower" pane
[Draw2D] Mouse Down in StackLayout - reaching "lower" pane [message #249006] Sun, 17 May 2009 11:23 Go to next message
Philip Mayer is currently offline Philip MayerFriend
Messages: 30
Registered: July 2009
Dear all,

I am on Draw2D (do not want to use GEF) and I'm trying to get my mouse
events where they belong.

I have a pane ROOT with a StackLayout, and two panes LOWER and HIGHER in
that pane. So, they are place on top of one another (the HIGHER one is

I cannot seem to get mouse events to the LOWER pane. If I add a mouse
listener to HIGHER, I get them in HIGHER; if I add a mouse listener to
ROOT, I get them in ROOT, but if I remove all listeners and only add one
to LOWER, nothing happens.

Can I change this behaviour somehow? If not, I'd like to "forward" the
mouse events captured in ROOT to LOWER. What is the best way for doing
this (i.e. coordinate transformations etc.)?


Re: [Draw2D] Mouse Down in StackLayout - reaching "lower" pane [message #249187 is a reply to message #249006] Thu, 04 June 2009 06:07 Go to previous message
Alex Boyko is currently offline Alex BoykoFriend
Messages: 200
Registered: July 2009
Senior Member

What if you change the order of the children HIGHER first and LOWER
second. Would you get events on LOWER now instead of HIGHER?
I think you should use a vertical ToolbarLayout instead of StackLayout.

Previous Topic:How to JUnit-test Draw2D applications?
Next Topic:[Announce] GEF 3.5.0RC1 is available
Goto Forum:

Current Time: Sat Jun 23 21:59:56 GMT 2018

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

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

Back to the top