HISE Logo Forum
    • Categories
    • Register
    • Login

    Customizing combo boxes - how?

    Scheduled Pinned Locked Moved General Questions
    28 Posts 5 Posters 1.5k 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.
    • T
      tomekslesicki
      last edited by

      Ok, I know it must be an obvious things but somehow, I can’t get it to work even though it seems to be documented. So, I’d like to change the background color and font color on the combo boxes that appear on the custom settings floating tile. How should I do this exactly?

      Thanks again!

      LightandSoundL 1 Reply Last reply Reply Quote 0
      • d.healeyD
        d.healey
        last edited by

        This post is deleted!
        1 Reply Last reply Reply Quote 0
        • d.healeyD
          d.healey
          last edited by d.healey

          Ooops I answered too quickly. I just saw the last bit that you want to customise the custom settings. I don't think there is a built in way to do this

          1 Reply Last reply Reply Quote 0
          • LightandSoundL
            LightandSound @tomekslesicki
            last edited by

            @tomekslesicki https://forum.hise.audio/topic/2620/possibility-of-changing-look-and-feel-of-custom-settings/4 if you don't mind looking at C++, but that post covers it step by step, it's pretty straight forward.

            1 Reply Last reply Reply Quote 0
            • Christoph HartC
              Christoph Hart
              last edited by

              Actually I've just forgot to forward the global script look and feel to the UI elements of the settings windows. I've fixed that so you should be able to skin these combobox just like any other one.

              HiseSnippet 1252.3ocsV0saaaCElJMpX1cYqEXO.DFCE1XtZRN8OzggVam3hfkzXDmULfffBZIZKtPQZPQkD2h9DsWhc2tXuL6MX6PQaKqD2zTCLcgD44O8wC44im9JYHMMUpPNUNd5DJx4qcGLUni6FSXBzd6fb9F2CHoZpBaE0Y5DRZJMB43bmWaD3TYST9y+7xNDNQDRKDgPuUxBo6yRX5Bo8e0uv37djH5wrjkr9wuZuPonqjKy.7bGWezDR3Yjwz2PLlsgKx4t6FwzR0.MQSSAa5HilNHVdgvZ+aYorgbpYR.Z.DHqXT2XFOp+70ZJB4rY+hU9crq7uy8.VDag7hLv8yUfK7X4bfyFkgzlkfTvmBR8j7HS.9Dvy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cX7pw6Fq.uPA3+23cVmWa4tKbXMTW.1Mc68aqaaVeAPAZpvT1BW8oXFRf2jkL.JHCo.RDBJO0TzuggbxN22L2jYFPEQ4SL03yTFXl6LSYvbknDRnR9tPKoqo2tuJWBfIQdasUf9qg43.TNQL3mqumOJAJQdWXnIU7H.6q1mVqgOauF9730vmmrF97z0vmmsF977azGC6T6LfU2Vl.B5uaNsriyt1tEMmHQ+GvyaltA
              
              Dan KorneffD 1 Reply Last reply Reply Quote 5
              • Dan KorneffD
                Dan Korneff @Christoph Hart
                last edited by

                @Christoph-Hart yay!!

                Dan Korneff - Producer / Mixer / Audio Nerd

                1 Reply Last reply Reply Quote 0
                • T
                  tomekslesicki
                  last edited by

                  Awesome, thank you!

                  1 Reply Last reply Reply Quote 0
                  • T
                    tomekslesicki
                    last edited by

                    Ok, one quick question - can I define the width of the popup box in the custom settings lists?

                    1 Reply Last reply Reply Quote 0
                    • T
                      tomekslesicki
                      last edited by

                      • an additional question - how can I change the background, text and get rid of the beautiful little images in the boxes that popup?

                      Annotation 2020-07-26 175406.png

                      1 Reply Last reply Reply Quote 0
                      • Christoph HartC
                        Christoph Hart
                        last edited by

                        Funny I was working on exactly this customization on Friday...

                        I‘ll push this tomorrow.

                        T 1 Reply Last reply Reply Quote 3
                        • T
                          tomekslesicki @Christoph Hart
                          last edited by

                          @Christoph-Hart I love these moments!

                          1 Reply Last reply Reply Quote 0
                          • Christoph HartC
                            Christoph Hart
                            last edited by

                            There you go:

                            Link Preview Image
                            HISE | Docs

                            favicon

                            (docs.hise.audio)

                            T 1 Reply Last reply Reply Quote 3
                            • T
                              tomekslesicki @Christoph Hart
                              last edited by

                              @Christoph-Hart awesome, thanks so much!

                              1 Reply Last reply Reply Quote 0
                              • T
                                tomekslesicki
                                last edited by tomekslesicki

                                It's super awesome, but the only thing I can't get to work properly on this window is the font of the main text - it works fine on the headers. It works for fonts that are installed in the system like the mighty Comic Sans, but when I want to load a custom font from the images folder it doesn't work:

                                obj.font = "MyFont";
                                

                                I've loaded the font previously with:

                                Engine.loadFontAs("{PROJECT_FOLDER}Fonts/MyFont.ttf", "MyFont");
                                Engine.setGlobalFont("MyFont");
                                

                                Should I add it somehow else so that the obj.font can see it? It doesn’t work with the laf global font class either.

                                And one more thing - if I got rid of the icons, how can I center text to the center of the box?

                                1 Reply Last reply Reply Quote 0
                                • T
                                  tomekslesicki
                                  last edited by

                                  @Christoph-Hart ?

                                  1 Reply Last reply Reply Quote 0
                                  • T
                                    tomekslesicki
                                    last edited by tomekslesicki

                                    It would also be amazing to be able to specify the height of the menu items to customize the vertical spacing between items! Or is it possible already?

                                    1 Reply Last reply Reply Quote 0
                                    • T
                                      tomekslesicki
                                      last edited by

                                      This post is deleted!
                                      1 Reply Last reply Reply Quote 0
                                      • T
                                        tomekslesicki
                                        last edited by

                                        Hey @Christoph-Hart, I noticed you added the fix to the font problem in the latest version, thank you!

                                        In case anyone else was wondering about the height of the right-click popups and menu items, look at line 242 in HI_LookAndFeels.h file. You can change the height multiplier there.

                                        1 Reply Last reply Reply Quote 0
                                        • T
                                          tomekslesicki
                                          last edited by

                                          The last question is - how to center the text box of the alert window if there's no icon? I guess it should be doable in one of the .cpp files but I'd really appreciate some direction as to where to look for it :-)

                                          1 Reply Last reply Reply Quote 0
                                          • Christoph HartC
                                            Christoph Hart
                                            last edited by

                                            I've changed it so that if you want to not use any icon at all, just set the obj.type property to -1 in the script lookandfeel createIcon() method

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

                                            49

                                            Online

                                            1.7k

                                            Users

                                            11.7k

                                            Topics

                                            101.8k

                                            Posts