# Customization of combobox popup menu

**URL:** <https://forum.juce.com/t/customization-of-combobox-popup-menu/45468>\
**Category:** General JUCE discussion\
**Created:** [April 11, 2021, 5:59pm UTC](https://forum.juce.com/t/customization-of-combobox-popup-menu/45468 "2021-04-11T17:59:04Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![acid-2](https://avatars.discourse-cdn.com/v4/letter/a/ed8c4c/32.png) [@acid-2](https://forum.juce.com/u/acid-2)\
**Post date:** [April 11, 2021, 5:59pm UTC](https://forum.juce.com/t/customization-of-combobox-popup-menu/45468/1 "2021-04-11T17:59:05Z")

</div>

I’m trying to customize combobox popup menu.  
 ![1618163633307_screen](https://us1.discourse-cdn.com/flex026/uploads/juce/original/2X/4/47c645ecef8eb7b1218c53e9be8dd86bd9cc8a4a.png)  
I want to remove the white horizontal lines and make the menu with rounded corners.  
Is it possible to do with PopupMenu::Options?

---

<div class="post-metadata">

**Author:** ![reuk](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/reuk/32/21494_2.png) [@reuk](https://forum.juce.com/u/reuk)\
**Post date:** [April 11, 2021, 6:33pm UTC](https://forum.juce.com/t/customization-of-combobox-popup-menu/45468/2 "2021-04-11T18:33:39Z")

</div>

The simplest approach is probably to derive from `LookAndFeel_V*` and to override `drawPopupMenuBackgroundWithOptions` to draw the desired style. You’ll need to set this custom look and feel on your combo box, or alternatively as the default look and feel for the entire application.

---

<div class="post-metadata">

**Author:** ![acid-2](https://avatars.discourse-cdn.com/v4/letter/a/ed8c4c/32.png) [@acid-2](https://forum.juce.com/u/acid-2)\
**Post date:** [April 11, 2021, 7:10pm UTC](https://forum.juce.com/t/customization-of-combobox-popup-menu/45468/3 "2021-04-11T19:10:46Z")

</div>

Tried  
void PresetComboBoxLookAndFeel::drawPopupMenuBackgroundWithOptions(Graphics& g,  
int width,  
int height,  
const PopupMenu::Options& options)  
{  
g.fillAll(Colours::transparentBlack);  
g.fillRoundedRectangle(2, 2, width - 4, height - 4, 5);  
ignoreUnused(width, height);  
}

But still can’t get rid of white rectangle around the popup menu, although got rounded corners inside it.

---

<div class="post-metadata">

**Author:** ![aamf](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/aamf/32/19941_2.png) [@aamf](https://forum.juce.com/u/aamf)\
**Post date:** [August 10, 2021, 5:16pm UTC](https://forum.juce.com/t/customization-of-combobox-popup-menu/45468/4 "2021-08-10T17:16:37Z")

</div>

In case someone else stumbles with this and has trouble getting round corners: PopupMenu::backgroundColourId must not be completey opaque (it must have an alpha value of less than 1.0f), otherwise the entire area behind the popup menu is painted white, regardless of the colour of the backgroundColourId.

---

<div class="post-metadata">

**Author:** ![thecargocult](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/thecargocult/32/10988_2.png) [@thecargocult](https://forum.juce.com/u/thecargocult)\
**Post date:** [January 30, 2025, 2:24am UTC](https://forum.juce.com/t/customization-of-combobox-popup-menu/45468/5 "2025-01-30T02:24:17Z")

</div>

wow, thank you so much for posting this solution.
