HISE Logo Forum
    • Categories
    • Register
    • Login

    Attach broadcaster to CB item click

    Scheduled Pinned Locked Moved General Questions
    18 Posts 5 Posters 593 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.
    • ustkU
      ustk
      last edited by ustk

      using a value broadcaster is of course the same problem

      HiseSnippet 961.3ocsVs0aaaCElxIZnV6BZA1K6MB8jJVVf8VugUrMWKaGHz3TiXufALLTPSQaQDIRCJ5jZLj+a6+Seo+C1NT28hyZfwpdvvm6e56vygZhRRYooRExp8rMqXHquvd5FgNxOhvEnfAHquxdLIUyT3bU82rhjlxBQVVGbhQgU6CQYOe3W5ShIBJqVEBcgjSYmxS35ZsS58Zdb7HRHaFOog2OoW.UJ7kwx0.dNvtCZEgdIYI6LhwsV1HqOaXHWKUS0DMKEYcXeY3loQxqE49eAOkOOlYD5hlBIJW8HYbnAwFsH+Hdb3jx26TDjkI0rvA4rvWaOlGxqzWyFOLy.tNhl7gUqsg2AaAutMgWmFvaGPxpAjNLGROxdJUwWoqsXvymaGHflyBBP6MgRtunVuuksuD7PnONgbIajBDphv6Yc5bDF94wuzA7JUFyNlFyHJOPgCzKR03qHPmWlLW1W9tt3eBWlskLMndkT.BdtUd3ZhrQn88gXFJVxEPpULfW5qjjPZ1QJu+zosKOz8GwtAZVheLmdIKz8HPKQsLEz+6tzxh3dD1kck4O+gyMYUou+wDslPilIqfxEj30LuJ3.w3V4aX3obnrBnvtWGAP4Jlxj0WIvbn73HRJdNiIvzRffWrVP0bovqBFGAuVPIdrCf8RNakhaHgeFGLa3Xr+oA9ud3.72k6I7xg+1hfdYAxcb3hXfRpxO1btu.yFFVIiumkzuOd14AmbxvyuqR114Fnlez91woFKYk1mDGOGF87tMpf70.ymI0r2H7xPlyMN3+soEK1oshbECMhcY1rUP8eEnmXcxblpIuXbDFU1d9y9tm+ZtdflSMMbTJBDb8aVwD20RCTAeZlUKPE3pNaR8gESpkbGhGZFTqnRTFrarkrG5WCFPzjxjA4Ep0JlRyMuFVCXWAaQyWCz1d.K8RsbUluEMRj0Ctmk9cUk8ul2aSMF38tlGpipsp5Ew3KiZr1NnmYJAvy2XOBlivPcUabRY.8ElKfRHP9ssZksk+Vavfcmxv0wD81KTM2hTX.5xasEyroRjx0aZdKy+aaYuuP7Q1S3ZZztwXqcfQnO9o.iE2M8k1CWrfQ00.7P6Q+1mlKhPmKWq4hkiIZE2zaOacxT35YJCptPvhSK62ExcLxFFXJSDlI72vSgwtFYqBicKMBmZnJ4ao4SQla+dPlF.ShrK9aCeABHiu8fCJAtL9sT51o5VA986af+v9F3S12.e59F3y12.e99F3K93AZ9VoWsVKSxGaPnwSFlsnyxZnf.m.yNsh9GjlA9BC
      

      It would be nice to have a selected item to trigger at least something.
      Could also be an option in the property editor for those who don't need a CB to be triggered in that case

      Can't help pressing F5 in the forum...

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

        @ustk said in Attach broadcaster to CB item click:

        I am trying to get a broadcaster to react on item click.
        All I get at the moment is when you click the actual combo box itself, not the items.

        Of course, the combo box callback can trigger for such an action, but not when there's only one item inside and it is already selected

        I need a solution to trigger a function in that specific case

        Do we need a specific broadcaster that reacts with items only?
        or there's is a solution with what we have currently?

        HiseSnippet 928.3ocsVssZabDFdVYugraSKIPuo2MduRFDBozzjRKk5nUREkXYKpbCEJkvnYGocv6NyxLyZaQwua8QpuAI+ydRxwFGGAUWHz+4u+iilojTlVKUHGuyVmwPNOwc9ZgINLlvEnICQNei6Th1vT3RVCVmQzZVDxwYueyxvwaeTwm+6WGPRHBJaCKD5cRNkcLOka1vc1QukmjLlDwNimtk1u3nIToHTlHyA7rmaOTFgdNYE6DhUsVtHmGMJhajp4FhgoAcFHiVOOVdonT+2w07EILKQezbvQkrQgw7jnY04pFgb1e1lLeuxL+acmxi3M72TAdZg.7FK1tF3z59fT+u.H4rEj1uDROycNUwyLajXwyW4NQ.MjkDnTuMTJ0E05MsbCkfFBS2Tx4rwJfnwh1urWuNX3qC+YeeendqM3KHP2UltPNPdUe7ufqsdEy.ryjBfncPiFAehoCBAaFIVwErtTECpCCTRRDsXro8+36EviB9IbvDCKMLgSOmEEzA3RTqz.++JfVGjfN3.1E1e729WWDkAgcIFCgFelrAJSk4Z1HqZ51MfBrrv2Z7ohj0VGkZUCW3NcPiyhhNlC3R.HK3xX.qWvTVses.yA7giIZ7BFSfo0HEuLWPMboncCN6T51C8gjiurcAQ2JCNzy2CX6AEQsLg0MSwsUuImMZJN73IguczvCN3.Kf7ttJI8qi.VJNQZXmJZW3Z+q8wepnkKuSY1VlRlj.o0cI1tnotOCaKxSWvTcfFZRNqQQXR7li2O5gMdSKmf1RQoXhfaNMiUQOVlDYGas+91KCnpQP6ZQEBAUMEKEOsZont0i3Q1chlIATQJr8cIzeLYHwPpcF3WHVYLkgaSImgrKfiTkabdtCY5yMxrBcqZ2HmG+.C8UMg8eWbz5MXfezk7HSLxw0oiCBEy3qhMVpmaEByc.N9N2wvjIFhmZsulAkvnRBTJ4JqtsJNddqiDv4IYTdBwbyaV1iyUBfN8MNTXOFHzby5sKReAGx5cuGxdnP7Yty3FZ7ciwV2AFg92+GXr57+W6NZ4RF0rAf66N9O20a8elv+6xbCWrZJwn31d6I4oygW8nLH5BAKQW2uqn6YosUf4LQTAwGfOUB6aocpD1uVHL0PUx2SK2drOv73BN.lDEum5AOrCz3asvfPov6cumRuoqtkgOeWM762UCewtZ3OrqF9xc0vWsqF9iedCs+cjWmajokqMHzzYiJNv43LRPfIvhoUzGAitGvMC
        

        Have you tried - in the comboBox callback setting the comboBox value =0... I think I recall this makes the comboBox CB active even if you select the only item in it...

        HISE Development for hire.
        www.channelrobot.com

        ustkU 1 Reply Last reply Reply Quote 0
        • ustkU
          ustk @Lindon
          last edited by

          @Lindon Unfortunately in that case the item is not shown as selected anymore

          Can't help pressing F5 in the forum...

          Christoph HartC 1 Reply Last reply Reply Quote 0
          • Christoph HartC
            Christoph Hart @ustk
            last edited by

            @ustk can you elaborate why you need this? Usually you never need to retrigger the callback with the current value so it might be better for your use case to use a different solution altogether.

            ustkU 1 Reply Last reply Reply Quote 0
            • ustkU
              ustk @Christoph Hart
              last edited by ustk

              @Christoph-Hart Of course
              Once I select an item, I perform a few things, then I show a specific panel.
              This panel can be closed/replaced by another one
              If I select another item, the panel shows again as it should
              However this doesn't work for the currently selected item, so I had to add a button just for this edge case, and the user will be confused.

              Can't help pressing F5 in the forum...

              d.healeyD 1 Reply Last reply Reply Quote 0
              • d.healeyD
                d.healey @ustk
                last edited by

                @ustk said in Attach broadcaster to CB item click:

                This panel can be closed/replaced by another one

                Can you put your combo box into a default state when this happens?

                Libre Wave - Freedom respecting instruments and effects
                My Patreon - HISE tutorials
                YouTube Channel - Public HISE tutorials

                ustkU 1 Reply Last reply Reply Quote 0
                • ustkU
                  ustk @d.healey
                  last edited by

                  @d-healey this is what I tried following @Lindon idea of setting the Cb to 0, but the item is then unselected leading the "main area" to reset and don't show the selected item anymore (also the item itself loses the "ticked" property)

                  Can't help pressing F5 in the forum...

                  1 Reply Last reply Reply Quote 0
                  • ustkU
                    ustk
                    last edited by

                    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't help pressing F5 in the forum...

                    1 Reply Last reply Reply Quote 0
                    • d.healeyD
                      d.healey
                      last edited by

                      Can you make a little snippet that demonstrates the setup?

                      Libre Wave - Freedom respecting instruments and effects
                      My Patreon - HISE tutorials
                      YouTube Channel - Public HISE tutorials

                      ustkU 1 Reply Last reply Reply Quote 0
                      • ustkU
                        ustk @d.healey
                        last edited by ustk

                        @d-healey here ya go

                        HiseSnippet 1207.3ocsWstSibCE1SfAQR6RYk5CfE+JHQyBa2tsRUUkMWfFsjKJI6R29mcclwIiKyXOx1CPTEuZ8MouC8Mfd7bIYBjDfHZ9QTN2r+Ne93iOoqT3PUJgDYUb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jBspQZsfGiscryegOGB+hZd9KgDfgcl1CEwTsDAv5SjfmVEnbBr0lW9OiRjbCFdBj7ihIKYmc2doH8db4snExkopeN4xuwdtVCK6393vTxbW64am9LSn2e5HXtLgaD7d07CqYlJM0.zOYtIjLSAwUL8j7Ss9Dlf6vUNA2iEhuztKS63sXLVXAXD5z7+AFSm68E1MfQibzy.3l1m76q6PtOv12SDYlUqEQKYPAkc6nf9PQrCE1cNbuPYNuKXt+jHenQ1v.8ob2XgagOoFOxHakZ7nLin.hiT7YmjWQLSVucrF.S73+HQQ3ez.xPWy3WVxyyAP04mcbleotWfudcC76W2.ey5F3OrtA910MvebcC7md3.MMOdWjVDjbsAgZ0sQ7SwVVMh6tDWsh9O.xxyQTB
                        

                        Can't help pressing F5 in the forum...

                        d.healeyD 1 Reply Last reply Reply Quote 0
                        • d.healeyD
                          d.healey @ustk
                          last edited by

                          @ustk So when I click show green. Why don't you want the combo box to reset to say "SELECT TO SHOW RED"?

                          Libre Wave - Freedom respecting instruments and effects
                          My Patreon - HISE tutorials
                          YouTube Channel - Public HISE tutorials

                          ustkU 1 Reply Last reply Reply Quote 0
                          • ustkU
                            ustk @d.healey
                            last edited by ustk

                            @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

                            Can't help pressing F5 in the forum...

                            d.healeyD 1 Reply Last reply Reply Quote 0
                            • d.healeyD
                              d.healey @ustk
                              last edited by

                              @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.

                              Libre Wave - Freedom respecting instruments and effects
                              My Patreon - HISE tutorials
                              YouTube Channel - Public HISE tutorials

                              ustkU 1 Reply Last reply Reply Quote 0
                              • ustkU
                                ustk @d.healey
                                last edited by

                                @d-healey yes it makes more sense in the real context

                                Can't help pressing F5 in the forum...

                                Christoph HartC 1 Reply Last reply Reply Quote 1
                                • Christoph HartC
                                  Christoph Hart @ustk
                                  last edited by

                                  @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).

                                  ustkU 1 Reply Last reply Reply Quote 0
                                  • ustkU
                                    ustk @Christoph Hart
                                    last edited by

                                    @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: 😉

                                    Can't help pressing F5 in the forum...

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

                                    27

                                    Online

                                    1.7k

                                    Users

                                    11.8k

                                    Topics

                                    102.8k

                                    Posts