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: 29
Registered: July 2009
Junior Member
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
transparent).

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.)?

Thanks,

Philip
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
Hi,

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.

Cheers,
Alex
Previous Topic:Connections on top
Next Topic:How to add ScrollingGraphicalViewer to Formpage
Goto Forum:
  


Current Time: Sun Dec 21 23:26:53 GMT 2014

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

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