Understanding how Event Reply work when using stacked UMG Widgets and mouse events

Onoa
Sat, 09 May 2015 15:37:44 +0000
UI

Hi,

I’m trying to understand how Event Reply works. Based on what I’ve read in the documentation and on the forums, it seems that when you return a Handled reply from a mouse event, if it is handled , then the event won’t “bubble” and be propagated to other widgets in the hierarchy.

Following this logic, I have been trying to setup something where I have two stacked widgets. The foreground widget is a border that I want to use to process Right Click mouse events only. Behind it, I have a button that I want to be click-able using the Left Mouse Button input.

The setup looks like something like this:

Now here’s what I am expecting to happen but that doesn’t work:

When I click on the Border in front of the button and the Mouse Button Down is processed and is “unhandled” (the Event Reply I return), I am expecting the mouse click to actually get passed to the button behind it. But it seems that it doesn’t work that way or I am doing something wrong.

Note: I have also tried using an image instead of a button, but with the same result.

Is what I am trying to achieve even possible or is my logic or setup faulty?

Thanks,

8 posts - 6 participants