3

This sounds easy, but I couldn't find a clue.

I have two Composites, one (small) above the other (big), absolutely positioned. When I click on the above Composite, I need it to be transparent to the event, because it should be caught by the below Composite.

The only possible solution I came up with is associating the same MouseListener to both the Composites and add logic to discriminate. But I would be much easier if the below Composite could receive the event as it was originated on it.

4

1 回答 1

3

Typically the event is associated with the source of event, i.e. widget. You cannot substitute one widget onto another widget. If you want that another widget receive that event, you should make that event occurred there. This could be done if you create the event manually and do either widget's notifyListeners or display's post that event.

于 2012-08-30T16:28:10.760 回答