# Trapping mouse events on an overlay

**URL:** <https://forum.cabbageaudio.com/t/trapping-mouse-events-on-an-overlay/4981>\
**Category:** Csound Noobs\
**Created:** [19 January 2026 17:31 UTC](https://forum.cabbageaudio.com/t/trapping-mouse-events-on-an-overlay/4981 "2026-01-19T17:31:03Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![exmachina](https://forum.cabbageaudio.com/user_avatar/forum.cabbageaudio.com/exmachina/32/6202_2.png) [@exmachina](https://forum.cabbageaudio.com/u/exmachina)\
**Post date:** [19 January 2026 17:31 UTC](https://forum.cabbageaudio.com/t/trapping-mouse-events-on-an-overlay/4981/1 "2026-01-19T17:31:03Z")

</div>

I could have sworn I saw a flag for trapping mouse clicks on groupbox overlays but now can’t find it.

In my use case I have a hidden groupbox that when activated overlays the interface to display credits and helpful tips, but if I click on the overlay I can trigger widgets underneath. Any easy way to prevent these clicks from passing through?

Thanks!

M1 Pro MBP 32/1T Tahoe 26.2 / Cabbage 2.10.0

---

<div class="post-metadata">

**Author:** ![exmachina](https://forum.cabbageaudio.com/user_avatar/forum.cabbageaudio.com/exmachina/32/6202_2.png) [@exmachina](https://forum.cabbageaudio.com/u/exmachina)\
**Post date:** [19 January 2026 17:56 UTC](https://forum.cabbageaudio.com/t/trapping-mouse-events-on-an-overlay/4981/2 "2026-01-19T17:56:03Z")

</div>

I’ve tried adding mouseInteraction(1) to the overlay groupbox but that doesn’t appear to do anything.

---

<div class="post-metadata">

**Author:** ![exmachina](https://forum.cabbageaudio.com/user_avatar/forum.cabbageaudio.com/exmachina/32/6202_2.png) [@exmachina](https://forum.cabbageaudio.com/u/exmachina)\
**Post date:** [19 January 2026 18:26 UTC](https://forum.cabbageaudio.com/t/trapping-mouse-events-on-an-overlay/4981/3 "2026-01-19T18:26:34Z")

</div>

I’m noticing the SVG I also display on the overlay _does_ block mouse actions, so I guess I could make it cover the bounds of the groupbox.

---

<div class="post-metadata">

**Author:** ![rorywalsh](https://forum.cabbageaudio.com/user_avatar/forum.cabbageaudio.com/rorywalsh/32/165_2.png) [@rorywalsh](https://forum.cabbageaudio.com/u/rorywalsh)\
**Post date:** [19 January 2026 19:45 UTC](https://forum.cabbageaudio.com/t/trapping-mouse-events-on-an-overlay/4981/4 "2026-01-19T19:45:16Z")

</div>

Groupboxes can’t consume mouse clicks, but an image can. So either place an image into your groupbox, or simply use an image instead 👍
