# Transparent/custom PopupMenu's

**URL:** <https://forum.juce.com/t/transparent-custom-popupmenus/12923>\
**Category:** General JUCE discussion\
**Created:** [May 29, 2014, 6:34pm UTC](https://forum.juce.com/t/transparent-custom-popupmenus/12923 "2014-05-29T18:34:54Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![matibee](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/matibee/32/202_2.png) [@matibee](https://forum.juce.com/u/matibee)\
**Post date:** [May 29, 2014, 6:34pm UTC](https://forum.juce.com/t/transparent-custom-popupmenus/12923/1 "2014-05-29T18:34:54Z")

</div>

I feel a bit like I'm asking for the moon-on-a-stick but are they possible?&nbsp;&nbsp;I thought it might be doable in&nbsp;the LookAndFeel class but before my "drawPopupMenuBackground" is called it's already got an opaque white canvas.

&nbsp;

I'm trying to create&nbsp;a&nbsp;PopupMenu that looks something like a speech bubble so I'd need a large transparent area to work with.

&nbsp;

Cheers!

---

<div class="post-metadata">

**Author:** ![matibee](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/matibee/32/202_2.png) [@matibee](https://forum.juce.com/u/matibee)\
**Post date:** [May 31, 2014, 10:42am UTC](https://forum.juce.com/t/transparent-custom-popupmenus/12923/2 "2014-05-31T10:42:27Z")

</div>

Ok, so I dug through the source and the guide book&nbsp;to figure out the background colour id for the PopupMenu.

&nbsp;

Unfortunately using transparent colour values causes the menu to disappear behind the main app window. &nbsp;It's&nbsp;clearly visible on the desktop if it spawns at or near the edge of the app window. &nbsp;I've just tried it with the latest source and this is on Windows XP.

&nbsp;

The attached is what I'm ultimately aiming for. &nbsp;I figured I could achieve this with a completely transparent background big enough to draw the rounded rect and left arrow, then nudge the position of the menu items accordingly.

&nbsp;

PS &nbsp;Adding the menu windows to the desktop so they're not bound by the graphics window is a real class act --&nbsp;just one of many things that sets JUCE apart. :)

---

<div class="post-metadata">

**Author:** ![nikolaiaudios](https://avatars.discourse-cdn.com/v4/letter/n/77aa72/32.png) [@nikolaiaudios](https://forum.juce.com/u/nikolaiaudios)\
**Post date:** [June 2, 2014, 6:48pm UTC](https://forum.juce.com/t/transparent-custom-popupmenus/12923/3 "2014-06-02T18:48:16Z")

</div>

Looks like a calloutbox to me.

I ve used that when ever i need that kind off popup box.&nbsp;

If you haven't tested it, just see the docs, very easy to setup

---

<div class="post-metadata">

**Author:** ![matibee](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/matibee/32/202_2.png) [@matibee](https://forum.juce.com/u/matibee)\
**Post date:** [June 2, 2014, 8:13pm UTC](https://forum.juce.com/t/transparent-custom-popupmenus/12923/4 "2014-06-02T20:13:46Z")

</div>

Just what I'm looking for.
