Forum
    • Categories
    • Register
    • Login

    How to change ComboBox row height?

    Scheduled Pinned Locked Moved Scripting
    32 Posts 4 Posters 1.7k 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.
    • ustkU
      ustk @David Healey
      last edited by

      @d-healey Nice one, there's the showPopup override here I was looking for! I'm sure my eyes slipped over it hundreds of times...

      Hise made me an F5 dude, browser just suffers...

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

        @ustk I've added the property, the last thing to do is get the property into the showPopup function. I'd also like to know why Christoph is using the #if...

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

        ustkU 1 Reply Last reply Reply Quote 0
        • ustkU
          ustk @David Healey
          last edited by ustk

          @d-healey Nice!
          If you struggle with the property I'll be back tomorrow to help...

          Hise made me an F5 dude, browser just suffers...

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

            @ustk Yeah I'm giving up on it for today. I'll wait for you :) Just need to figure out how to pass the property from the ScriptComboBox to HiComboBox

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

            ustkU 2 Replies Last reply Reply Quote 0
            • ustkU
              ustk @David Healey
              last edited by

              @d-healey that is the hard part I'm not sure how to do…

              Hise made me an F5 dude, browser just suffers...

              1 Reply Last reply Reply Quote 0
              • ustkU
                ustk @David Healey
                last edited by

                @d-healey please share the branch with me so I can have a look tomorrow git -> ustk

                Hise made me an F5 dude, browser just suffers...

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

                  @ustk https://github.com/davidhealey/HISE/tree/comboBoxHeight

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

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

                    Any hints @Christoph-Hart ?

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

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

                      Yeah, this is one of a classic case of "Too late to the party and too lazy to catch up"...

                      But adding a showPopup() method is not as easy as it looks because there is a strict decoupling of the scripting objects that are representing a UI element and the actual element (because the actual UI element has a much shorter lifespan and can exist multiple times).

                      A much more simple approach would be using this method:

                      https://docs.juce.com/master/structPopupMenu_1_1LookAndFeelMethods.html#a2e003680abbe4a5921bf5ce815edce09

                      and add a scripting layer to access it through a LAF object.

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

                        Wrong link, I meant the getIdealPopupMenuItemSize a little bit above...

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

                          @Christoph-Hart

                          Too late to the party and too lazy to catch up"...

                          No need to add the showPopup any more. We can change the property directly. I've added the property here https://github.com/davidhealey/HISE/tree/comboBoxHeight

                          But I don't understand how to pass it from ScriptComboBox to HiComboBox.

                          And I'm curious to know why you did this https://github.com/christophhart/HISE/blob/develop/hi_core/hi_core/MacroControlledComponents.h#L375

                          and add a scripting layer to access it through a LAF object.

                          I think the property approach is more straightforward...

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

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

                            I would like to keep the amount of properties as low as possible, also there might be other use cases where this could come in handy.

                            The addition was super simple.

                            https://github.com/christophhart/HISE/commit/24c8360b2ac969919778e4e755e6a530fc47dd15

                            HiseSnippet 970.3ocsV0uaaaCDmxIZXV6CzBrG.h7WN.YtxoIo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x.SAYTgv+fOUFG3j8pLNXkQRJiqUujW1T3tK5iKzfbRVbMbW76APYZcefueX+PRJds3K4b21+KwNtMi4vs.yi2BLGsEXNdKvbxVf4IaAlu5chw8EIOM2pRKaGPEStrXdjm2kRFVYUTER9W.kkguiC
                            
                            Christoph HartC 1 Reply Last reply Reply Quote 2
                            • Christoph HartC
                              Christoph Hart @Christoph Hart
                              last edited by

                              And I'm curious to know why you did this

                              No idea, but my educated guess is that I needed to customize the behavior of the combobox at some ancient point in history (perhaps to scale with the zoom factor) and then it got implemented in JUCE so I removed it again.

                              From looking at it there's not much use to it.

                              David HealeyD 1 Reply Last reply Reply Quote 1
                              • David HealeyD
                                David Healey @Christoph Hart
                                last edited by

                                @Christoph-Hart

                                The addition was super simple

                                Oh thank you! I'm building now.

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

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

                                  I've added the documentation for this and the drawPresetBrowserIcons LAF function.

                                  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

                                  11

                                  Online

                                  2.1k

                                  Users

                                  13.1k

                                  Topics

                                  113.4k

                                  Posts