Skip to main content



      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 07:23 Go to next message
Eclipse UserFriend
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 02:07 Go to previous message
Eclipse UserFriend
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: Thu Mar 27 17:12:13 EDT 2025

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

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

Back to the top