Attach broadcaster to CB item click
-
-
I could build my own cb using panels but I have so much to rework for this...
If a broadcaster is not interesting here for anyone else then I might go down the panel route, otherwise I can wait a wee bit :smiling_face_with_halo: -
Can you make a little snippet that demonstrates the setup?
-
@d-healey here ya go
HiseSnippet 1207.3ocsWstSibCE1SfAQR6RYk5CfE+JHQyBa2tsRUUkMWfFsjKJI6R29mcclwIiKyXOx1CPTEuZ8MouC8Mfd7bIYBjDfHZ9QTN2r+Ne93iOoqT3PUJgDYUbvjPJx5qs6Ogq8p4QXbTy5HqcraQTZpDmnp5jPhRQcQVVabpQgUwMQwe92esJwmvcnyTgPeTvbnmwBX5YZ6d76Y99mPboCXA479MG2zQvqI7EQ.d1v9PTHw4BxXZahwsB1HqsZ3xzBYeMQSUfOUEtS56Ithm3+GYJ1PepQ3HTeXgRTip4w7c6lkqJDxZytyx7MRx7u0tEykMU+LFX2XC3YQjmCrJrJHczS.RV4fzlIP5k18cjrP8LKF77U1M4vAxHBP04gRhunB+yl10DfGbck.xEzSjfvzHJ+1CO7.L709+boRk.9VowWRjXI0sK2G+K3rPGS00DAgBNHTduDy6AAMKjwRJkupfxbvDVxBTQALiwYovu7HhuhBlxbagFMed0qv8+sNmi60nNF+c3yExKTXA2eBlMBqn9TGMiOFS3XllFf0dT7HlDPoFpuN.KjXB1kMZDUBvBBjVhw8YbvqHNDpfC5L6cOpasgY.vIKON.RV+H59k9qREWPVnkQFbVbkYwMPhrXNZ59t29UTFKwAVi36ODJ9KeefcGN4zdMZzFWcPafXZpwLElKzFpPDFmYZAbzBKbLq.4zPwPw0XOfJN.OTn8vpIvs6.ElHo3Htj5C0wtUpTYIbzolzrpluRZBNVJmJUDDKthC+hKl3xX0ad.pKCNqh8tCjSIPCCddmdu+c857g10SYPhqK0EnJhFOj3BDzD7eFAERifZHsGPtgQxPghtX94JnvjHEQb2mABJiAVcg0JIn4vyxXnEAZXgykVsEZZGd4XfW5lR36ZZznEZKcs7oxEZ1z6Wtp.KyiBFRk4oMiiPyw463t0iqiqSBEkyQAuImo6DRSkOQ36Z5jZ9886OiR4X3WenYchlXZYmpC7KjJ0LCbrpSuDdyKoAdQ65T0EZQHxxd5ACnVGac2z160LWKqJtFwbMc2mdiGc8rGG+zwSlIvN1znC1rssaNnQK7QHE4RZSd23q5l2Bth4p8fM05uA28nrwdZiTYPRSuVadsqeiyZTa.dPmoMWM43cw3KxdBhvo9w.ba6jp0khtOEitr2wKtEBc6swndp1WmW8Rf5e.RWlcTZsQdnUJAZ6jBspQZsfGiscryegOGB+hZd9KgDfgcl1CEwTsDAv5SjfmVEnbBr0lW9OiRjbCFdBj7ihIKYmc2doH8db4snExkopeN4xuwdtVCK6393vTxbW64am9LSn2e5HXtLgaD7d07CqYlJM0.zOYtIjLSAwUL8j7Ss9Dlf6vUNA2iEhuztKS63sXLVXAXD5z7+AFSm68E1MfQibzy.3l1m76q6PtOv12SDYlUqEQKYPAkc6nf9PQrCE1cNbuPYNuKXt+jHenQ1v.8ob2XgagOoFOxHakZ7nLin.hiT7YmjWQLSVucrF.S73+HQQ3ez.xPWy3WVxyyAP04mcbleotWfudcC76W2.ey5F3OrtA910MvebcC7md3.MMOdWjVDjbsAgZ0sQ7SwVVMh6tDWsh9O.xxyQTB
-
@ustk So when I click show green. Why don't you want the combo box to reset to say "SELECT TO SHOW RED"?
-
@d-healey because I still wants it to be activated with the selected item
The buttons and the combobox are not related in the project, they just show a different panel when needed -
@ustk From a UX perspective, if I press a button and it visually affects something I selected from a combo box, then isn't it related? I think I'm not seeing enough context here to understand exactly why you need this behaviour.
-
@d-healey yes it makes more sense in the real context
-
@ustk why don‘t you decouple the popup from the combobox value callback and then add the logic as mouse callback broadcaster to it? It will then show the popup whenever you click on the combobox no matter what is selected (or was selected).
-
@Christoph-Hart I tried this using the doc example but I wasn't convinced I could do it, so now you say so :thumbs_up: