Forum
    • Categories
    • Register
    • Login

    Look & Feel - ComboBox Background.

    Scheduled Pinned Locked Moved General Questions
    13 Posts 5 Posters 937 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • LindonL
      Lindon @DanH
      last edited by

      @DanH gives me this;
      ddb3c96b-4007-40bb-8500-63c22ba9e38a-image.png

      and whilst thats a nice colour :-), its not what I'm looking for...

      HISE Development for hire.
      www.channelrobot.com

      DanHD 1 Reply Last reply Reply Quote 0
      • DanHD
        DanH @Lindon
        last edited by

        @Lindon can't you make it 0x00000000?

        DHPlugins / DC Breaks | Artist / Producer / DJ / Developer
        https://dhplugins.com/ | https://dcbreaks.com/
        London, UK

        LindonL 1 Reply Last reply Reply Quote 0
        • LindonL
          Lindon @ulrik
          last edited by

          @ulrik - oh yeah, very odd I think...

          HISE Development for hire.
          www.channelrobot.com

          1 Reply Last reply Reply Quote 0
          • LindonL
            Lindon @DanH
            last edited by

            @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)

            HISE Development for hire.
            www.channelrobot.com

            DanHD LindonL 2 Replies Last reply Reply Quote 0
            • DanHD
              DanH @Lindon
              last edited by

              @Lindon so sorry

              DHPlugins / DC Breaks | Artist / Producer / DJ / Developer
              https://dhplugins.com/ | https://dcbreaks.com/
              London, UK

              1 Reply Last reply Reply Quote 0
              • LindonL
                Lindon @Lindon
                last edited by Lindon

                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:

                11b4eab6-5aa0-420e-a445-bd4b8a6e05b7-image.png

                -- 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:
                37f31bf6-90c5-44b5-a2b9-42665e46b8d8-image.png

                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:

                e897277b-97b0-46c0-958c-a0c6d06427a1-image.png

                HISE Development for hire.
                www.channelrobot.com

                David HealeyD 1 Reply Last reply Reply Quote 0
                • David HealeyD
                  David Healey @Lindon
                  last edited by David Healey

                  @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.

                  Free HISE Bootcamp Full Course for beginners.
                  YouTube Channel - Public HISE tutorials
                  My Patreon - HISE tutorials

                  LindonL 1 Reply Last reply Reply Quote 0
                  • LindonL
                    Lindon @David Healey
                    last edited by

                    @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,....

                    HISE Development for hire.
                    www.channelrobot.com

                    1 Reply Last reply Reply Quote 0
                    • DabDabD
                      DabDab
                      last edited by

                      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.

                      Bollywood Music Producer and Trance Producer.

                      1 Reply Last reply Reply Quote 0
                      • David HealeyD
                        David Healey
                        last edited by

                        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::backgroundColourId to 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 transparentWhite but still the combo boxes show a white background.

                        @Christoph-Hart Any ideas?

                        Free HISE Bootcamp Full Course for beginners.
                        YouTube Channel - Public HISE tutorials
                        My Patreon - HISE tutorials

                        1 Reply Last reply Reply Quote 0
                        • First post
                          Last post

                        30

                        Online

                        2.1k

                        Users

                        13.0k

                        Topics

                        113.0k

                        Posts