iControl::SetMousePassThrough()

Hello there,

uhh id like to have two iControls on top of each other / overlapping. when clicking on the upper, the mouse should be captured and also passed on to the underlying IControl, where their TargetRects overlap. So an iControl::SetMousePassThrough() Function is what id like to see as feature.
i tried to implement it myself, but it seems that the internal structure is set up to capture only one IControl at a time and for now that seems a little bit too much over my head at the moment.
So i leave this here, as a feature proposal and for discussion :slight_smile:

edit:
the solution for this, which doesnt need an iplug change, that works for me, is to pass the underlying icontrol into the upper icontrol class and then call the desired mouse function of the underlying icontrol from the mousefunction in the upper icontrol. :melting_face:

Welcome to the IPlug2 Forum.
FWIW: I do it in a similar way…
If you don’t want to touch your original controls you could also attach some kind of “remote control” which e.g. could distribute mouse events on different conditions.

1 Like

thank you for the welcome :slight_smile:
great idea! thats even way better.