HISE Forum
    • Categories
    • Register
    • Login

    itemText instead of value

    Scheduled Pinned Locked Moved General Questions
    12 Posts 4 Posters 102 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.
    • resonantR
      resonant @Chazrox
      last edited by

      @Chazrox I have a list of numerous items in subcategories within a ComboBox. I don't want to worry about backward compatibility issues when I add items to this list as I update the plugin In the future.

      So, I wanted to ask how to save the selected item as text, rather than the CB value.

      Or perhaps it would be more accurate to ask what needs to be done about this.

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

        @resonant theres a number of posts about this backwards compatability of combobox issues in the forum , try searching, but essentially:

        HiseSnippet 964.3ocsV0saaaCElx1bqQcEnEnO.B9lorEDXYmebVwv7hS7lwZRMlyB1UqflhJhHRjBTzownnuq8QnuAcGJIaI633VXr4KLv42uOd34bnFojTVZpTgrruZVBCY8c3wyD5v9gDt.M7LPO90jIrnSk2iNcVBIMk4irrp+aF6V6z.k86S+xojHhfxJUgPWK4T1q4wbco1Q89CdTz.hO6JdbEuOn2PpTzWFImBboNtEJgPukbC6RhwsZXzuSRCQV+.tcvDZ6fi6z06DuSN9fS77Nr6jCZ0l5e3Ic5bTG+f1cIG0EB5aN2mqkpwZhlkhrZbpze13P46D4.bMOkOIhYD7PiAjyUOPF4aNhFsn9g7H+QyKRoHHKiJKY0yKYuDeA2muPeYo64YFbJinZAzp1xzq9RzyqJ8ZUgdqgRVUnTibJ8B7XphmnKsX3ySwCEZlJf.2SUoRtunZSqg6KAOD58iI2xFn.gEQ3dTqV64.+s6qrsg6pTsycDkSVygmyO6LOxaX59x3Do.DbalatoIFatHhKXNASETMWJbjhbqlHUxHW57v1CxbzT1t1u2dGvXpLhsehhaxmuzIUFyzgbwMNuiqCczgrb2+olN+XQfux9C.falQ6mZTmgbeRTzDncycEFkw50waHcSjvDwloddtL331TytW2bOmE9YH0PMK9JPu6t.Py8lFRD2v7c23YXA9O1wXUBBYqB8uTpYuQ3lQR6OX6rpoff0ZqHWQL0ZMaFnUaJPWwz3ILU0RjwQnoc4IA7iOITcPklWZp3nTLTv0uIgIdrwWTQ8zL0TvJvUc1LyyJlYxtHPbXx3I4q97PYD13wUgbkuy0Yhn+Z3YDMYdpfrBHkvTZt4PXcF6NX8W933N3yXo2pkIvlrEWivBpuHv2uXC4GS5Mqbc4k8RI2wFJFoXv8OfVMSC1CXXEr91brddAVyaPxf6o3E8KUPzQUEw+oWLArgspCBq.dcNzICm4uGOfqf8BYnaOlA2PETwtBsrgWAdvBKXUozeZDQu79SyqLEFfVokVZYVLIR45YUeEZ0kpM95Vpt4c9esz8E3QbMMb87s1Z3Kz57+MeKdh5Y3yCBXTcIYafG72a78n+anxeJmpgU0WPzJto84xowigm3oLfIBAKxLtaUyLXlK2xHapLiYB+LgOC+JL5YjsJL5M2HJlPUx2RyGmMOH9jLM.mDYe7vN3KLxNKliKq+wv6yukRWNUOHv1aafc11.OXaC7vsMvi11.OdaCr6WNPymO8qS0x37wID5hQmmsy0x5bAA5Fy5bQ+KrOkBoB
        

        HISE Development for hire.
        www.channelrobot.com

        resonantR 2 Replies Last reply Reply Quote 1
        • resonantR
          resonant @Lindon
          last edited by

          @Lindon Clever solution, thanks!

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

            @Lindon Because saveInPreset is disabled in the ComboBox, the selected text in the ComboBox is not visible when the plugin is first loaded.

            Is there a solution for this?

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

              @resonant well my solution is to LAF the Combo box such that the selected value display is always blank, and then just put it over the top of thelabel, so then labels value is showing you the selected text...

              HISE Development for hire.
              www.channelrobot.com

              resonantR 1 Reply Last reply Reply Quote 1
              • resonantR
                resonant @Lindon
                last edited by resonant

                @Lindon I understand, thanks.

                Is it ok to select the text of the CB using the label?

                If we do this without using "CB.changed()", it won't loop infinitely through the CB, right? I couldn’t figure it out.

                1 Reply Last reply Reply Quote 0
                • resonantR
                  resonant @resonant
                  last edited by resonant

                  @Christoph-Hart In addition to save the integer values ​​in the ComboBox presets, Could you add an option to save the selected item texts?

                  I'm sure this would easily solve many backward compatibility issues in short and easier way.

                  ChazroxC ulrikU 2 Replies Last reply Reply Quote 0
                  • ChazroxC
                    Chazrox @resonant
                    last edited by

                    @resonant What are you setting with your combobox?

                    1 Reply Last reply Reply Quote 0
                    • ulrikU
                      ulrik @resonant
                      last edited by

                      @resonant you could set up a companion to the combo box (panel with saveInPreset enabled)
                      were you can store the item text

                      HiseSnippet 1191.3ocsVssSiaDFdLfq13sqztU8hd4HeUfhXSBABkppRI.sokCQMzUqTOflXOIdJimwxdBPzJd.5aUej5aP6+L1N1lD1EE0MJJN+ml46+f+loerziljHiQVNWNMhhr9T6ASEpftADl.06HPu8ojgT9gx6PGNMhjjP8QVVq98Z6V0VCY97Oe6gDNQ3QKTgPuQx7nmxBYpBs8O3mXb9IDe5krvRd29fddRQWIWNAvxp1MPQDuqIiomSztshM5GHIAHqMr2tytjQs5zgRGsaiupSmQ61wizhRauc61C8ICas2dd6sSm8PVexw9LkLdfhnnIHq0NT5OcPf7VQ5F7FVBaHmpEZhF.6bp5SjbecJp0h5Fv398yKRIHXU5WTxVMsj841mw7YyzWT5dow.tHhxEPqUpBuUq.ulkgWiRvaAPxpDjVKERuxdfWLKRUXQimma2SnnwiHPepLTR8Esx0qY2UBdHTaERtldRLHLKh561nwlX3m0+ZGGnWknvckgCkvfQS72fyCbLUApijBPnt6LObgnlIrUBErMIg1cRhRF1WFMIxcSrJdBUu3u9007ztNTdGlongINwzwo+C1ne0ciMNaJtmVbiMfvbu5pqzOFoabwM2eesolyoo0bZ1tPSqTMsmSyNUzbJk3mr+9b3QyGyPK2eetT0fcH.yys9SIST282Dtqqy1JoK3MVIwIjan8D8ioZ4QDdB0gI3LAEOZhvSwjBr9kkr8PW5ik75d408Mw2P3Psz4cN03ROBGCk4X3koGqOMKRsZ.t9tq+ktCRiQ24pkEuNadidoq+NWyV3tOtRr5R1kz6T0W+dHr6gz6CNWnWyrLnKgyGBu1We9ja9JUVF4kECtdDQP4XU.QguE3XLdPAYJ1Djt3xodJpOXIlIFu9BpoY476shBnPEvRvv2YKdNhfE233lXenKJCofmhw.dTAPy2oFrvIRNcqH..p5FW2JckeRUqYsjEWzphdSIqTtctTQuPT2jCN26fenoQiVnsrUiSiWnYMMd76Kv5hIgCowkqfZGAppp7e1ON+WY5YuzJTIGkhdBl5hHp3wHsQYkUMWYFp.WUFlxWjyTpmdPLfO7yreX8FYfNx5Kr+wAWbdwnuaJQv8Hzuz6Hhhju9vVAaeDMVwzYl0QzafSBSYlqYeDM4ZkLBNTaVKFY8rTz7xLzji.CfddAfP2M6Hy+levzhyO+iCBIfMaqZfPY5CM+tg1AY8W1kYNc.ZSmpblUEaUUbampTkUE2wYgjjKTaKTUpeMrsPl1zCqGOotiIu0wOM+O2x7UAZAePHfxFGnxktIerxZ0GTlVAM+4nvI3R+Ibhp5w55K+jY.l0qbVp97RQBSMs7ki9e6r9mJDekcelxKXwXbkEfQXz8iAFytgzKrOdzHf6s.fqYexa+3bcHzOKmn.R2yH.Kudz37IgCfaU5QgcW.iQZtFnYqC0H2HepY.U3aD9W3Slwl4CmZiMyMhBIdwxq7R4Rz2A6YFM.lDl6qVy9LsLtYN0QQcNDtR3UddUWp4Br0xF31KafsW1.2YYCb2kMvNKaf68gCTei8uaBPMk9ZCBcV+iMb6VVGKHvDnYZE8efRD+sU
                      

                      Hise Develop branch
                      MacOs 15.6.1, Xcode 16.2
                      http://musikboden.se

                      resonantR 1 Reply Last reply Reply Quote 1
                      • resonantR
                        resonant @ulrik
                        last edited by

                        @ulrik Good to know that. Thanks!

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

                        24

                        Online

                        2.1k

                        Users

                        13.0k

                        Topics

                        112.3k

                        Posts