ComboBox Sub Categories



  • In my LFO Section, I have the combobox where a user can select the destination. I'm wondering if, instead of having to scroll down one long list showing each Parameter, Can I set it up to where when you click on the combobox, you can hover/click the Module you want to send to, then have that bring out another list to select the exact Parameter? Hope that makes sense.



  • @D-Williams23 You should be able to perform that using 2 comboboxes
    The first populates the second



  • Again: ScriptPanel to the rescue 🙂

    HiseSnippet 953.3ocsVs0aaaCElxwpqVatnEXOsmDxS1XcF1oIcCoXXowIYvXyIF0cA6sBFoisHBEolHURMJBv9Iu+AamitDY64l0ZfI8hN2+H424PMIUG.FiNk4z5sKR.lyW4NcgxFMLhKTrQmvbdh6XtwBo9EpNdQB2XfPliyN+LovoUSV9ye8SGykbU.TqhwtTKBfeUDKr0ZmbzuHjxy3gvaEwK489GMJPqFpk5LDO631mkvCtlOGNmSt0vk47nSCEVc5TK2BFzmi0gKlFouUU3+kBi3JIPBCXSwDUnlMLRHCmTsVMLlSyI0q7cJV4es6XQn3d806.OM2fecDKuG3zXUH0bEHM3iAoyzxPJAeD34rD7ZV.um4NMHUjXqsPX6KcGovCmYbbaeYXU3Kqw2zvcnF8PY6EyuFNKEEtOhNure+m6eP+9ceUaO5UnjBE3OKSEXEZkuVMgq.4.JEoZYm.cbhVgI6492vkYP21densWKzrQKgdIoBksytSAIDXgP+QVH1ezIG5uq+2VF.VHe7os2c4krBayA6vpb2Y2hhta2dFRcdoGxkxqP1Pm0fTExQhiwh0H0uvr+O5+v4NOtBApLi0YF39hTsAzAtACpq2G7ZYiDFxwKokQg9dofISZoTUXNHhqlCgcpVkd208UdKsYdt1BWn5jmOu677W2zrYazV4RUBoazL0Dk9PA1QkEeEjVclU4HxrVk59nOMpaPw95RNpUiTB6EIPobM4dvFH2rxCFhlWhPzUaNIucEImNXXBLGO1s3PhkCdliqyWPyJ9sQmvs7pTfYCqPBjZEzBw4D3FbrSQeSK2S.y0VcRtuk7.rw4+rfumJ1sXsVPenvOtUDZiHgm3vXQfXdT8Ts+bzQH6QeaEGxPSNyw16s9iAUFKQmjkPeQsEn4+vcZ1Uj7fCOjTMvaU48VS9EqIu+ZxGTIu2Z4qTduBDbg5MDvGJEAWSSJtGVuVJliGfNML7afQpIH6FrjL6eOLBGIpCyjb6pyIoKDJMfLvUFHQCcTFgcwxWX7YL7r+FGdtQ90mHbel6DgMHZy3swFvKx19+FukWE018zYyvYn0fso6Y+91duymATdiNyJTyGysoBh+edV7T713..QhB6JLD6uA0CWH2mjoclofJLW3uwmRiCHYmRiCpLxh4Ao52ETz4SW183bMHlT42y2B+gCT1utk2seu9rX7N32EDPaEeGh8MGydaQLuXKhY+sHlC1hXd4VDy2uEw7COXLzu+75LqNtnMAUL4z7wuNNmp3HKKmQx9GfB0W6I
    

    Set these properties of the panel to make it create a nested context menu:

    {
      "popupMenuItems": "SubMenu1::Item1\nSubMenu1::Item2\nSubMenu1::Item3\nSubMenu1::Item4\nSubMenu1::Item5\nSubMenu2::Item1\nSubMenu2::Item2",
      "allowCallbacks": "Context Menu",
      "popupMenuAlign": true,
      "popupOnRightClick": false
    }
    

    As you can see in the popupMenuItems property, using the Menu::Item syntax creates a nested menu. The numbers are consecutively.



  • @ustk Thats what I was thinking also!

    @Christoph-Hart Thanks for that. Thats exactly what I had in mind. I understand this part, now how would I get the selected options name to display inside the panel once selected? For example when using this method to select Instrument Categoeires, then SampleMaps



  • @Christoph-Hart said in ComboBox Sub Categories:

    HiseSnippet 953.3ocsVs0aaaCElxwpqVatnEXOsmDxS1XcF1oIcCoXXowIYvXyIF0cA6sBFoisHBEolHURMJBv9Iu+AamitDY64l0ZfI8hN2+H424PMIUG.FiNk4z5sKR.lyW4NcgxFMLhKTrQmvbdh6XtwBo9EpNdQB2XfPliyN+LovoUSV9ye8SGykbU.TqhwtTKBfeUDKr0ZmbzuHjxy3gvaEwK489GMJPqFpk5LDO631mkvCtlOGNmSt0vk47nSCEVc5TK2BFzmi0gKlFouUU3+kBi3JIPBCXSwDUnlMLRHCmTsVMLlSyI0q7cJV4es6XQn3d806.OM2fecDKuG3zXUH0bEHM3iAoyzxPJAeD34rD7ZV.um4NMHUjXqsPX6KcGovCmYbbaeYXU3Kqw2zvcnF8PY6EyuFNKEEtOhNure+m6eP+9ceUaO5UnjBE3OKSEXEZkuVMgq.4.JEoZYm.cbhVgI6492vkYP21densWKzrQKgdIoBksytSAIDXgP+QVH1ezIG5uq+2VF.VHe7os2c4krBayA6vpb2Y2hhta2dFRcdoGxkxqP1Pm0fTExQhiwh0H0uvr+O5+v4NOtBApLi0YF39hTsAzAtACpq2G7ZYiDFxwKokQg9dofISZoTUXNHhqlCgcpVkd208UdKsYdt1BWn5jmOu677W2zrYazV4RUBoazL0Dk9PA1QkEeEjVclU4HxrVk59nOMpaPw95RNpUiTB6EIPobM4dvFH2rxCFhlWhPzUaNIucEImNXXBLGO1s3PhkCdliqyWPyJ9sQmvs7pTfYCqPBjZEzBw4D3FbrSQeSK2S.y0VcRtuk7.rw4+rfumJ1sXsVPenvOtUDZiHgm3vXQfXdT8Ts+bzQH6QeaEGxPSNyw16s9iAUFKQmjkPeQsEn4+vcZ1Uj7fCOjTMvaU48VS9EqIu+ZxGTIu2Z4qTduBDbg5MDvGJEAWSSJtGVuVJliGfNML7afQpIH6FrjL6eOLBGIpCyjb6pyIoKDJMfLvUFHQCcTFgcwxWX7YL7r+FGdtQ90mHbel6DgMHZy3swFvKx19+FukWE018zYyvYn0fso6Y+91duymATdiNyJTyGysoBh+edV7T713..QhB6JLD6uA0CWH2mjoclofJLW3uwmRiCHYmRiCpLxh4Ao52ETz4SW183bMHlT42y2B+gCT1utk2seu9rX7N32EDPaEeGh8MGydaQLuXKhY+sHlC1hXd4VDy2uEw7COXLzu+75LqNtnMAUL4z7wuNNmp3HKKmQx9GfB0W6I

    wow - much nicer than my version...


Log in to reply
 

12
Online

747
Users

3.0k
Topics

24.8k
Posts