Detect mouse clicks with multiple widgets on screen

So, first of all, sorry for my english. My problem is I can’t listen to the mouse click on multiple widgets. For now, i have this:

I create a widget every time I need a new character sheet for my project. Those sheets are movable when I click on them (except when I click on a button on them) and stay pressed; I can drag them where I want on my screen. The problem is when I create a new one, I can’t interact anymore with the previous ones. (for exemple, if the A00339 is the last one that i created i cant move the A00025 anymore). I find the node “Event On Mouse Enter” that allows me to know if the mouse enters on a widget (and it works well), but I’m stuck there. Now, here I want to say that if I enter in a widget (with this node), then this widget must listen the mouse clicks and not the others widgets. Currently, I have tried a lot of things like this, for example:

That put the widget in the foreground, but I still can’t interact with it. So it’s where I am. If you need more information, tell me.

did you update the focus to focus on the clicked widget?

I cant update the focus on the clicked widget because I cant click on the widget only hover it. And I tried to set the focus on the “Event On Mouse Enter”, but it didn’t work for now.

My widget is built like that, it’s a canvas in a canvas, I learn like that, but it’s maybe not the best method:

And I call it like that when I create it:

set the outer canvas to not hit testable. i think the new widget canvas blocking the previous canvas?

All of my canvases were already in not hit testable, and I have just done tests with that and didn’t work :frowning:

Hello @Julos83 , welcome to forums!
You can speak in Spanish or English, whichever is more comfortable for you. And if I understood correctly what you’re trying to do, I think you should use the On Mouse Button Down event instead of On Mouse Enter. This video might be helpful .
Let me know if it works!!

Tbh, my Spanish is probably worse than my English! :upside_down_face:
Currently, I’m not using the On Mouse Enter event for drag and drop, I’m only using it to check which of my widgets is currently being hovered (I did this to try to set up the focus on the hovered widget).
To do the movable widget, I simply take the position of the mouse cursor, and if it is on the canvas I want to move, I can drag and drop it:

I have this on my widget:

with CanWidgetMove is:

And then i have this (always in my widget i want to move):

With WidgetIsMoving is:

I started watching this guy’s video, but he uses a banner that he places in these widgets, and I wanted there to be no need for a banner and for it to be possible to move it by clicking anywhere on the canvas (except on a button).