Multi Combo Box Problem - Deactivated Items
-
@CyberGen Oh, that's a cool idea
-
@CyberGen this should work but it doesn't, I have to compile between each selection to get the other combobox to really "disable" the item that the first combobox has selected.
It shows the right string with the "disable" tildes before and after the item name but it is selectable,I guess it's a bug with this system @Christoph-Hart ?
HiseSnippet 1067.3oc2W8+aaZDE+vIjMXaRoR8O.D+DVMJ0PbRmzTTciSxj0ZRslyplT2TEFNGeKvcH3nKVS0+Mu+C1duCrARbbyrZ+kYoft2WuO74NduWFlJBnYYhThlwUyRnDsuUezLtbZ+o9LNYvoDsmp2WDOVbh3VKPYTDkeMkbxrD+rLZHQSaqeD8TyXah52e+xS7i74AzJUDxaEr.5qYwLYk1g89IVTz49gzqXw07tauAABdeQjHGP0V5cHI9A23eM8RezsV5DscNKjIEoij9RZFQa6SDgyFMU7m7B+eKKiMNhhBtjQPhJTetHJDQLpkzeJKJb3h29LBjkgUbwVEbwS0ufExVpuhS1UYvpJh57gVqlvaqFvysN75TCdq.RZ0fz1EP5I5iBRYIxJKHd9F8AbIMchePyilBeIsbzgCQvCtb+X+anmmBBKivwqSm8rb6zo8OXBLelz5C9oVAwicsN1ZQXWSkv0fDAGDbrQi120cu04tG5dS+GHowYPLluyzvFEbs2qbkm8dVkKOXoxtKWc3xUGYa96XdA7reFE1p7LZ+7LoHdnHIOARiKBSX+WiYym+bKTNBNuJduYHzpkUkL38BTu+eHXbG6eia2dEw6UEu2iJdHAFpOxrFCek4Zx3QLN0ZRNOPxDbKAGgBxsohHmfED6d.SFkSaa9WlFQh.+HK4Tp.9KMhAz7wVuC3lRKYzHZfjFBZWFOdJgv4J5sRG.GFlFSDoVNHZsX7knssogAaRo9iOdYtP8F02x8Sxyl5XOet8yPeeFtByqAMJitZmQ+J156yVM7tAi8QfzV2MSLOkzUenj0Xn.hSCRrj0sJXcr1l2pYcu+Wy5FE7t6mEd2aM7tWcd2zrFGeoPReC2QQmlezz5tllLYk1JyWDMcklwVJoqKPGdd7XZZ8CSzQnNayh25Obw658V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ey Yes you can, with a little more scripting though, and in your example it's possible to select an "hidden" item
It seems like the "~~" isn't really working, nor in the default component or in LAF configured?
-
@ulrik said in Multi Combo Box Problem - Deactivated Items:
it's possible to select an "hidden" item
What's wrong with that? OP asked for deactivated, not hidden.
-
@d-healey The issue is that if it lets you select a disabled option it defeats the purpose of what we are trying to achieve. Which is to not allow the selection of an option that has been selected elsewhere as it could impact the performance of the plugin in a negative way or in some cases cause a crash. I realize now I had not made that clear in the initial post.
-
-
@CyberGen said in Multi Combo Box Problem - Deactivated Items:
@d-healey @ulrik Maybe there is a way to simulate a recompilation of the script?
I tried .changed() and .repaint(), neither worked.I tried that too with no success I'm afraid
-
@ulrik said in Multi Combo Box Problem - Deactivated Items:
I guess it's a bug with this system @Christoph-Hart ?
I'm inclined to agree with you. Considering that four different ways of going about this problem are getting the same result more or less. Mine being the most rudimentary admittedly. Something about them wiggly lines. :face_with_raised_eyebrow:
Thanks for helping out anyway. :folded_hands_light_skin_tone:
-
@CyberGen you have an option to do it with panels instead, the "wiggly" lines works there
HiseSnippet 1330.3ocyW01aaaCDlxIpXxaEaEXXeVSeXPFMy01MMa.CYKMNIaFstwHtqn.cYELRz1bghTPjJoAE0X+j2+ftijRVxsNsAFq.K.wf738xy8BuiZTlHhHkhLji2SuJkfb9B2wWwUy5OCS4nAGfb9FW0kB+njyj9WRUy7SwbBSh1+pTrTRhQNNa7qZdc71DY96e9k8wLLOhTQBgdlfFQdLMgppnNZuGQYrivwjmRSpw816MHRv6KXhb.Wa31AkhiNGOk7DrlsFtHmacXLUIxFqvJhD4r49h3qFOSbI2x+ynR5YLhdSWzXPQVxGIXwZDqoh5OixhGU5+RDnkQUQiMrQiu1cHMltfdUT4qLG3WIQ83gSikg2FKAut0gWmZvaEPxoFj1zBo63NNJilppNQimO2c.WQxlfgvdcnX4E0nmqaeAvAW0NAeN4nLXyBIB60oyV9c6zo0O0rID5kJ+9ImMhyj965WJ1Th5gLVeQRpfC6kgAVdB.grxbANSWmLPQRzB9h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.to6QO+SyqkQ1gTSGhUYTnXv8I4IigTcDArN27UKNtNMz2mr66n2qi.iI7XyFcUZwgc06cJNra4gnDbTl3kEOfQ+D8OyPAvD270IdtC068q5MuHNm.ewvKihVVUumf8VWAu+5J31qqfOXcEbm0UveXcE7G+3Bp+ftGlqDI1qMHzvQGZlF53bHGCUflpUz+BCB9WsB
-
@ulrik :exploding_head: Yesssss!!! Method number 5 for the win!
Oh man, Thank you so much!
One more question, in my project I'm using a group of 4 comboBoxes rather than two, I made the example with two just for the sake of simplicity. Though your code works perfectly for two, when I add two more panels to your snippet, it doesn't do its trick properly. Panels one and two still work fine but 3 and 4 don't. My question is, How do I modify the code to make it work with 4 panels rather than 2?
Things also fall apart if I introduce subgroups to the items list.HiseSnippet 2044.3oc6Z8EabbTFeWaukbWaoMzzzRfBKmRQqUMWuy1IAZqiu3y1IWacxI6PHUAS55cm6tAu2rm1cV6XBwJR7GwSvqfDRviU7.fTQHwCPrnOTDzJAphhDOYnBTK7RDBIdAH7Myr6s65as8wcqoomvRVZmu46a999866a9lcVcUcrMPtt1NRxYt3FsPRx2mxRaPnMJ2PGSjpLqj7QUnqaqZzbEW00wzFpszIHKWoY1nktqKxTRVd3yxzUNyHR7+t8zynaoSLPghjjtjM1.873lXZnzpkdNrk075lnKhaFQ6IKUwvlT11x1ChqgUJH0R2XU85nyqyTaHEI46YNSL01YIpNE4JIOxL1larTC60IB8uD1EuhEhMnnzRvBIDOuskIKhYRkJ2.aYVM.+tRvpTMjMFVvFGQYArIts7PV4A4SnFZQT9Pdn3g2vwBuhQCuBQBuDBI4HgzHhP5vJKY3faQCmgEO2qREBE4TSGn8nghPWoglUQorMnAgluo9pn4cfAssPa7BEFSchBEF8oylEndWpZ4lqTkX4pNkZfY0QzyXYU1tYKaBL1UKmPmbfQBaVS2gUmTghZxL7J4XOUL2Xp7GFO3gIXObVmVEepmhMbx3COQ7gmL2xPLUy1QUCVZULIHxFMaFPPdWDUKWK6VdsV.Q73tFVffnH+m2FSz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l+xGL2dUR7Jh0WPm5fghAky60bIHUaf.uS3eEAYE4gX6tDiKvFyXfkPDS9.VMq+jEYik8mrXvjRM0Mbrup+0GXWY9PbIPLQ3esfLJKvFqlvaF0DtA+UMLhuTcX338pgSzqFNYuZ3I5UCOYuZ3o5UC+j6ugrOvxY7n1MEaajje7vWqWR9diNPTXDoZO5mCg6P+9QhkFprcnQc8bDyvyDuZo48rr5PGlvcn2RqhVmM9W+ZG6muc9aOM2m.tXxt9Q99m8O7E9xSeFJT7uhGU7gqpPfF3Tw9Lo8.NCkZvA540UvAzK.NAiSO3Lbe.msmNVXNaRYmsmtC3La6rye5e7x3h27MSQ3LR5kcz5thMPu3YmsSQ3nzGv41wxNk9FIAma2Q1AzK.NYG+aei+k0uMEgy6avZuygFrfSlzCNucWBm29.DN2WOAmO0O5Wr1O667GukeX5OLNbBzIBbBz6fCNu+AqryCLXs24AGrfygGrfyGH8fy1cIb19.DNOTe.mIKEML+ZuQRuUvjk1Ib.8Bfyu5K9Nm5K070SQ3bjAqhsGNkfyKVqVtt4UP45E.mW5G7sN0wJ721O3D9Q16VTcz94dB2Z+2Bs8s9e5VnGoOfyghuE5URJIcnN2B8JsSR+le7Idnm8zuQJBmGM0tmPxvoy6IDANWV9W9Sd7YRS37A6c3r0k2JVQjX2RG5zQwljT.bd4id7+5XdObozCNGqOxNGOdw1akT143cVr8VsyN+ka8mele++7USwryGZvpe8GdvpUviMX0J3iLX0J3i1GYm7cQqf76Uqfu4W8q+Xeu+dZ1J3j8Abdgs1+O21Kr0d741l7YNm7zWISJlclZvpy172sAm.Y8FbNap0YS5Q6tNafdGbYmykd6cRpyVR6cB6r8UlXpW8e+H2IEgSk2MgyoM9oud8eXZ1n9Ye27N1Edy24k9c3WKEyNKLX0J3pCVvY02CVrsP043+D.kkminuhk3GMgz+Awr1QGB```
-
@CyberGen it needed a lot of thinking to solve, I think this will work, however if you need the hierarchy to be deeper than 2 levels, you need some more code :)
I wrote som comments for you in the code
HiseSnippet 2824.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wtmm25MLLp7kQBU9x00Q0mnmjqdrdx5pizShpi1ShpOYmCUa1lnZytOpd78ApxkW1a+luUqNaQt7aGUfb9n529xu2ve0puYmGUGqmLC7I5Pn5kJVLd6b5Vtb9n5U9we2gOd5+YmGUO494lH26AWWs48dXTW8T6CTcnv0UuVq3pC0bc0q0fq98+rAe7m6BuUmGUOcG6lHsFUMeSDITcyH+le9yNQW.Uep8Npt+MuenLKQITSxzTFnhhOpd0m7j+ij0eh7cbTc78AWcxvYfuSq3pS1bF36zfq9626uc9+z+4067b0mtmry9I5I6V7L8jcK9L8jcK9r6CtJUazsH0t0s367M9VOyO7e0E5VLz9.Uu38evuOvW796x6CL24uRjwWPsyyUi0S1Cb5OrgJ+41Wn5xcrdfJOc60CDjqqyUWoyUW0pdfsptJnG3Wefwd8+2S89cdTMyCSTcA8ewaV5mzE5r+bOLuge5298dk+H4M57b0r8jcKtUOIpp7Q2LvYKbI9eBmQhbIKskLE+Ain7+AkkrPWA
-
@CyberGen last post doesn't work as intended , there is something strange going on at init and I haven't found what the problem is yet (I hope I do) , I let you know if I find the issue
-
@ulrik I tried the last post and it works well for me.
Is there a specific combination where it doesn't work for you? -
@CyberGen When loading the project I get this:
Interface: CmbPnl1 931.6500244140625 Interface:! Unknown function 'indexOf' {SW50ZXJmYWNlfHw3NTZ8MjJ8MTg=} : function() - Line 22, column 18 {SW50ZX
the log is from inside the paint routine and shows a crazy value from the first panel in the panels array,
CmbPnl1 931.6500244140625
which leeds to next log, the "Unknown function "indexOf"
I can't for my life find what is causing the crazy value -
@ulrik oh, that's strange, I don't get any error messages. And it appears to be working just fine.
To me the challenge now is how to implement it in my project. My code had one callback per combobox and each callback had slightly diffrent functions. In the process of "simplifying" it, it got a bit too "simplified" for me to understand it, so I'm still dissecting it so I can make it work with what I have.
I'm still hoping @Christoph-Hart finds time to take a look at the tildes issue inside the comboboxes as it would require much simpler coding without panels and paint routines.
Anyway, I thank you again for your help in figuring this out.
-
I was able to implement the above snippet into my project. Well, almost. I still have one issue I have not been able to crack.
Ideally, these four combo boxes should serve as 12 combo boxes divided into 3 groups of 4. To do this, the combo boxes need to recall the values they had when the user switches between groups with scriptButtons. So basically they need to have a memory of their individual values for each group. I've tried a number of things to get that to happen but no cigar. This was easy to implement with scriptComboBoxes, but I can't get it to work with this script for scriptPanels. I was hoping you could point me in the right direction?
-
@CyberGen So 3 groups with 4 cmbs in each, with the same items array?
If cmb3 in group2 have item7 selected, will it deactivate that item in all groups or only in group 2? -
@ulrik said in Multi Combo Box Problem - Deactivated Items:
@CyberGen So 3 groups with 4 cmbs in each, with the same items array?
If cmb3 in group2 have item7 selected, will it deactivate that item in all groups or only in group 2?Good question. I forgot to specify that. Yes, deactivate the item only in the boxes of the selected group. (Only in group 2) And yes it would be the same item list for all 3 groups.
-
@CyberGen Ok, I'll have a look later