itemText instead of value
-
Is it possible to store the text of the selected item in the preset instead of the selected value in the ComboBox?
-
@resonant using the same indexing you're combobox is using to set whatever its setting, you should be able to grab the item text. Store it in an array, or an object.
What are you trying to do specifically?
-
@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.
-
@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 -
@Lindon Clever solution, thanks!
-
@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?
-
@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...
-
@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.
-
@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.
-
@resonant What are you setting with your combobox?
-
@resonant you could set up a companion to the combo box (panel with saveInPreset enabled)
were you can store the item textHiseSnippet 1191.3ocsVssSiaDFdLfq13sqztU8hd4HeUfhXSBABkppRI.sokCQMzUqTOflXOIdJimwxdBPzJd.5aUej5aP6+L1N1lD1EE0MJJN+ml46+f+loerziljHiQVNWNMhhr9T6ASEpftADl.06HPu8ojgT9gx6PGNMhjjP8QVVq98Z6V0VCY97Oe6gDNQ3QKTgPuQx7nmxBYpBs8O3mXb9IDe5krvRd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