HISE Logo Forum
    • Categories
    • Register
    • Login

    Last hurdle: Does anyone know how to make a simpler drop down menu that displays the user presets?

    Scheduled Pinned Locked Moved General Questions
    32 Posts 5 Posters 3.8k 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 @Delamere
      last edited by Lindon

      @Delamere well at the very least you will need to add ".preset" to the end of your file name.

      local Selected_Preset = component.getItemText() + ".preset";
      

      HISE Development for hire.
      www.channelrobot.com

      D 1 Reply Last reply Reply Quote 1
      • d.healeyD
        d.healey @Delamere
        last edited by

        @Delamere Where's the part where you populate the combo box?

        Libre Wave - Freedom respecting instruments and effects
        My Patreon - HISE tutorials
        YouTube Channel - Public HISE tutorials

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

          @Lindon Thanks for the reply.

          When adding + ".preset"; It Crashes Hise?

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

            @Delamere show us the output from this

            Console.print(Selected_Preset);
            

            HISE Development for hire.
            www.channelrobot.com

            D 1 Reply Last reply Reply Quote 0
            • D
              Delamere @d.healey
              last edited by

              @d-healey Is this right?

              Content.makeFrontInterface(260, 50);
              
              const var Preset_Browser = Content.getComponent("Preset_Browser");
              
              inline function onPresetSelected(component, value)
              {
              
                  local Selected_Preset = component.getItemText();
                  Console.print(Selected_Preset);
                  if (Selected_Preset.length > 0)
                  Engine.loadUserPreset(Selected_Preset);
              
              }
              
              Preset_Browser.setControlCallback(onPresetSelected);
              
              inline function updateUserPresetList()
              {
                  local User_Presets = Engine.getUserPresetList();
                  Console.print("User Presets: " + User_Presets.join(", "));  
                  Preset_Browser.set("items", User_Presets.join("\n"));
                  
              }
              
              updateUserPresetList();
              
              
              d.healeyD 1 Reply Last reply Reply Quote 0
              • D
                Delamere @Lindon
                last edited by

                @Lindon with the code that I replied to @d-healey with, it says: API call with undefined parameter 0

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

                  @Delamere said in Last hurdle: Does anyone know how to make a simpler drop down menu that displays the user presets?:

                  Is this right?

                  Not sure, post a snippet so I can see exactly what you're doing

                  Libre Wave - Freedom respecting instruments and effects
                  My Patreon - HISE tutorials
                  YouTube Channel - Public HISE tutorials

                  D 1 Reply Last reply Reply Quote 0
                  • D
                    Delamere @d.healey
                    last edited by

                    @d-healey

                    HiseSnippet 1315.3ocsW01aiTCD1aZ2x0b7xcRHw2Pqh3CoPUzlj1RuqBnMMsPzcsWTSuCjNfJmccRL0wNx1aaiP2W3WB+R32z8M9HLd2MYeIaeUvVolLdlG6mY1YFOoqT3QTJgDYU9zoSHHqOzt2Ttdz9ivTNpSaj0Sr6JIJh9rVRwkJhD0Z5DrRQ7QVVK88FqrVcYT3y6+tVXFl6QRVBgdif5QdIcLUmrZ2ceAkwND6SNkNNk0araGOAeeASD.LZIaWzDr243gjiwFyJYi9ArZDx5KsazXf21tta2r4ltXbSeLdi5jlOiLXqAda59LW+9a5B+sExZkC7oZgrmFqIJXSaI7m1aj3RdzA7Fph1mQLB0Q8fSNZYz9inL+tyBOJDxZ4tIAqkhBVep8QTe570SGzLJbRPjNnYU5lnT86AkrRQokinzSs64IoSzIZL74w1c3Zhb.Fd2jlJQ1hJ8YKYuu.rfqqMFeN4PIHLGQ0sbcW2A92Z6TtL79Qoct.KcxlV37MNy1ggD89hwSDbPnZkrlUwrGTNixINCB3dZpf6H3QF0ivHdZheUuYvWGNIV.Ysx+d4xNvCS3gYNyr6rHXvQOGf4v6nIiOkbktJbVFP.uTBFo1DIEHTNvw1PG3jWSMFgOTOx4acbWKzlC3CAZWiIv9uFbkHqJX+J+txky500TlPBWKEr8wLVeHotZdmtn.SvDeHEI4vdIUAdEDLRhEFkwGsBBDwbDhB4QUTrnhwn3Wjpm6Tw4qxre09MAkWsx5NUVascbbB2fEcrpUnP.WAlU.1elavFhzDVJ1g1IUlvwBM4U7PmbU.gSdUCFTnt3nKiHKTsoMi7l.VkGLtOQlJeKzPnrJas5J2sZUunRgTFJ3c3T8qlPhkOTv7M0fluuXkMJtVBpwKEyPvTcXE9ShqvgZr9hVhqPT+B5RG5GoaMixuOeb79ziQ8A.lc4CreAWzuddvvyq6zFqwlVNwLCX6DhTSMAEq1jKfl7QMfV0tMQctVLANn4sAPVO59P9qRN6uX2ooEtj5qgK.rsdOHNhPGNRaj9bPJLKzz.rMYrvwsd4nOafFiuxXSITXbcNidrNtGdDiNDpq0T9vSovqSCq9jXVcajpytwgjH+OOr9Cmce1pq.V+2nXplr5+.OYWsQrwgOgA9R+UIaSYeESJUO7EjVAZsfW44NZY.Y8YZN3pIXtBxrU6ofsJXrwhAXlJwjvDOYwvMUXpEPXp.hrWkFPxxPQI3vft5tyAsmuewmwIDNbYdw5ZC8B0WitdDrzaTKrbQOBegPBAOyrCYTdX.i0EqGMyfrtVrK0AhW9jVBIDUxn+3fwQgPCr5gKEI+ilbvSfjEAn3sg81bq0L2y52y0gk+kvyvzRbOIAOOnFeBqWzGyQEwrSDW1E66CYw2UbyipsDAbeim91HEGIjwuHxqII6KulYw4EzV9cn4EtsKktv8WsxVTtxs1a5ZJC+yoI8F9iL8FZDNw4BCJAinI7CXXc141LSzFq.JixLrjYfHHYQOMca07Cys70eAgapKHtk1+2Q59T6tTs2nh4aoB3q49j+m4a7nwej8ACF.C1jP1ksO7mtw4f+ugJmHBLswOBqkTSeenLtGzR0i.LgyIL0r6BhkcMxlHSOB2OTvzONVYcirUrx5yTB2n3IEm4EcgpYP7GEtBvId3OTYU6iLxNEbS5X32EblmW1sZAfMdn.a9PAtwCE3lOTfa8PA90OTfae6.M+rs8BzhwQkSHzQcOH7BXKqC3XHaLLyE8uYcgRBA
                    
                    d.healeyD 1 Reply Last reply Reply Quote 0
                    • d.healeyD
                      d.healey @Delamere
                      last edited by

                      @Delamere Disable saveInPreset on your combo box.

                      And you need to add +".preset" as Lindon suggested

                      Engine.loadUserPreset(Selected_Preset + ".preset");

                      Libre Wave - Freedom respecting instruments and effects
                      My Patreon - HISE tutorials
                      YouTube Channel - Public HISE tutorials

                      D 1 Reply Last reply Reply Quote 1
                      • D
                        Delamere @d.healey
                        last edited by

                        @d-healey @Lindon

                        Great it works, cheers guys.

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

                          @Delamere I should have said, it's the saveInPreset thing that was causing your crash because it created an infinite loop. The preset would load which would trigger the combo box callback, which loads the preset, which triggers the callback, which loads the preset, which goes kaboooom!

                          Libre Wave - Freedom respecting instruments and effects
                          My Patreon - HISE tutorials
                          YouTube Channel - Public HISE tutorials

                          1 Reply Last reply Reply Quote 3
                          • D
                            Delamere
                            last edited by

                            Is there a way to change the maximum height of the ComboBox drop down so it becomes scrollable & doesn't cover the whole GUI.

                            d.healeyD ChazroxC 2 Replies Last reply Reply Quote 0
                            • d.healeyD
                              d.healey @Delamere
                              last edited by

                              @Delamere Not that I'm aware of

                              Libre Wave - Freedom respecting instruments and effects
                              My Patreon - HISE tutorials
                              YouTube Channel - Public HISE tutorials

                              1 Reply Last reply Reply Quote 0
                              • ChazroxC
                                Chazrox @Delamere
                                last edited by Chazrox

                                @Delamere use a viewport and check 'useList' then you can populate it and use it just like a combobox, so you can set a max height and utilize the scroll-bar feature.

                                Screenshot 2025-06-08 at 12.55.38 PM.png

                                rglidesR D 2 Replies Last reply Reply Quote 2
                                • rglidesR
                                  rglides @Chazrox
                                  last edited by

                                  @Chazrox Oh I didn't know about this, very handy! Thanks man!

                                  ChazroxC 1 Reply Last reply Reply Quote 1
                                  • ChazroxC
                                    Chazrox @rglides
                                    last edited by

                                    @rglides I just found this not too long ago and now im gonna replace MY comboboxes that were through the roof. 😆

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

                                      Another solution might be to use submenus, if appropriate.

                                      Libre Wave - Freedom respecting instruments and effects
                                      My Patreon - HISE tutorials
                                      YouTube Channel - Public HISE tutorials

                                      ChazroxC 1 Reply Last reply Reply Quote 1
                                      • ChazroxC
                                        Chazrox @d.healey
                                        last edited by Chazrox

                                        @d-healey Im still trying to understand how to do that. I dont have an understanding of separators yet. I've tried to find a good example of submenus but I havent found anything in docs or the forum. Theres an example of sub menus in the master tutorials but thats not exactly the sub menu im trying to do. I just want a combobox list to break into categories. How would I do that? Easy enough to explain?

                                        oh, and how would values work in the case of sub categories in a combobox list?

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

                                          @Chazrox https://forum.hise.audio/topic/9027/multi-column-comboboxes/5?_=1726656891655

                                          Libre Wave - Freedom respecting instruments and effects
                                          My Patreon - HISE tutorials
                                          YouTube Channel - Public HISE tutorials

                                          ChazroxC 1 Reply Last reply Reply Quote 0
                                          • ChazroxC
                                            Chazrox @d.healey
                                            last edited by Chazrox

                                            @d-healey nice! Got it! Thank you. 🤛

                                            Screenshot 2025-06-10 at 5.58.53 AM.png

                                            Thinking about how to populate this via script. Any pointers? 🙏
                                            ...mostly concerned about the category titles and how to send what where...thats pretty much everything. So yeah, thats all. lol.

                                            d.healeyD 1 Reply Last reply Reply Quote 2
                                            • First post
                                              Last post

                                            18

                                            Online

                                            1.8k

                                            Users

                                            11.9k

                                            Topics

                                            104.0k

                                            Posts