Look & Feel - ComboBox Background.
-
@DanH gives me this;

and whilst thats a nice colour :-), its not what I'm looking for...
-
@Lindon can't you make it 0x00000000?
-
@ulrik - oh yeah, very odd I think...
-
@DanH said in Look & Feel - ComboBox Background.:
@Lindon can't you make it 0x00000000?
hmm, just randomly throwing hex values into the ring isnt helping here...try it yourself and see if this works (hint: it doesnt)
-
@Lindon so sorry
-
this gets a strange result:
ComboBoxLAF.registerFunction("drawPopupMenuBackground", function(g, obj) { //var a = obj.area; g.setColour(Colours.red); g.drawRect([0,0,2000,2000], 1); });you get this:

-- see the little red line on the left side?
ComboBoxLAF.registerFunction("drawPopupMenuBackground", function(g, obj) { //var a = obj.area; g.setColour(Colours.red); g.fillRect([0,0,2000,2000]); });predictably gets this:

but this:
ComboBoxLAF.registerFunction("drawPopupMenuBackground", function(g, obj) { //var a = obj.area; g.setColour(0x00000000); g.fillRect([0,0,2000,2000]); });gets us back to this:

-
@Lindon I'm pretty sure you can't make the background of the combo box transparent. It will give a white outline (the panel is opaque basically). You can make the individual items have a transparent background though.
-
@d-healey - yeah that's the position I'm rapidly reaching. Thanks. I'm not sure this is a bug but its certainly a feature it would be nice to have,....
-
BG CB transparent is not a bug. Transparent is not possible right now with out altering the source Code. How ever it will be a good feature request to have CB transparent BG.
-
I would like to give this one a bump. According to everything I read on the JUCE forum, the popup menu is by default opaque, unless you set
PopupMenu::backgroundColourIdto a colour with an alpha < 1.0.I've been through all the HISE popup look and feel functions I could find and set this property to
transparentWhitebut still the combo boxes show a white background.@Christoph-Hart Any ideas?