Forum
    • Categories
    • Register
    • Login

    IDEA: nullable button radio groups

    Scheduled Pinned Locked Moved General Questions
    16 Posts 3 Posters 106 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.
    • dannytaurusD
      dannytaurus @David Healey
      last edited by dannytaurus

      @David-Healey Do you think the Content.setRadioGroupNullable() call is the right way to go about it?

      Since the radio group itself isn't exposed in any other way, I thought a high-level setting would be best.

      Meat Beats: https://meatbeats.com
      Klippr Video: https://klippr.video

      David HealeyD 1 Reply Last reply Reply Quote 0
      • David HealeyD
        David Healey @dannytaurus
        last edited by

        @dannytaurus Yeah it makes sense, rather than having to apply it to individual buttons. I don't know if nullable is the most intuitive word for the behaviour.

        Free HISE Bootcamp Full Course for beginners.
        YouTube Channel - Public HISE tutorials
        My Patreon - HISE tutorials

        dannytaurusD 1 Reply Last reply Reply Quote 0
        • dannytaurusD
          dannytaurus @David Healey
          last edited by

          @David-Healey Good point. Any suggestions?

          Meat Beats: https://meatbeats.com
          Klippr Video: https://klippr.video

          David HealeyD ustkU 2 Replies Last reply Reply Quote 0
          • David HealeyD
            David Healey @dannytaurus
            last edited by

            @dannytaurus toggleable... lol don't use that. I can't think of anything better at the moment. Maybe someone else will chime in a with an idea.

            Free HISE Bootcamp Full Course for beginners.
            YouTube Channel - Public HISE tutorials
            My Patreon - HISE tutorials

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

              @dannytaurus That's usually made on the scripting level so having this at a C++ level seems a good idea 👍

              setExclusive
              allowDeselect (my preferred one)
              setDeselectable
              setExclusiveZeroAllowed

              Hise made me an F5 dude, browser just suffers...

              David HealeyD dannytaurusD 2 Replies Last reply Reply Quote 1
              • David HealeyD
                David Healey @ustk
                last edited by

                @ustk said in IDEA: nullable button radio groups:

                allowDeselect

                Yeah this seems good

                Free HISE Bootcamp Full Course for beginners.
                YouTube Channel - Public HISE tutorials
                My Patreon - HISE tutorials

                1 Reply Last reply Reply Quote 0
                • dannytaurusD
                  dannytaurus @ustk
                  last edited by

                  @ustk @David-Healey Yep, allowDeselect is good, but not for the whole function name surely?

                  Content.allowDeselect() ?

                  I should refer to radio group, radio button, or similar, right?

                  Meat Beats: https://meatbeats.com
                  Klippr Video: https://klippr.video

                  David HealeyD 1 Reply Last reply Reply Quote 0
                  • David HealeyD
                    David Healey @dannytaurus
                    last edited by

                    @dannytaurus setAllowRadioGroupDeselect()?

                    Free HISE Bootcamp Full Course for beginners.
                    YouTube Channel - Public HISE tutorials
                    My Patreon - HISE tutorials

                    ustkU 1 Reply Last reply Reply Quote 2
                    • ustkU
                      ustk @David Healey
                      last edited by

                      @David-Healey said in IDEA: nullable button radio groups:

                      @dannytaurus setAllowRadioGroupDeselect()?

                      yep much more better

                      Hise made me an F5 dude, browser just suffers...

                      dannytaurusD 2 Replies Last reply Reply Quote 1
                      • dannytaurusD
                        dannytaurus @ustk
                        last edited by

                        @ustk said in IDEA: nullable button radio groups:

                        @David-Healey said in IDEA: nullable button radio groups:

                        @dannytaurus setAllowRadioGroupDeselect()?

                        yep much more better

                        👍👍

                        Meat Beats: https://meatbeats.com
                        Klippr Video: https://klippr.video

                        1 Reply Last reply Reply Quote 0
                        • dannytaurusD
                          dannytaurus @ustk
                          last edited by

                          @ustk @David-Healey Actually, maybe the 'Allow' is redundant, since we call it with true or false.

                          Maybe just setRadioGroupDeselect, like this:

                          Content.setRadioGroupDeselect(1, true); // turn it on
                          Content.setRadioGroupDeselect(1, false); // turn it off
                          

                          Thoughts?

                          Meat Beats: https://meatbeats.com
                          Klippr Video: https://klippr.video

                          David HealeyD 1 Reply Last reply Reply Quote 0
                          • David HealeyD
                            David Healey @dannytaurus
                            last edited by

                            @dannytaurus I think the allow is good because we are saying "allow buttons in this group to be deselected"

                            Whereas without it we are saying "set buttons in this group to be deselected" which has a different meaning.

                            Also there are other similarly named functions

                            1314f686-983d-4388-b2d1-a3d70ced7adc-image.png

                            Free HISE Bootcamp Full Course for beginners.
                            YouTube Channel - Public HISE tutorials
                            My Patreon - HISE tutorials

                            dannytaurusD 2 Replies Last reply Reply Quote 0
                            • dannytaurusD
                              dannytaurus @David Healey
                              last edited by

                              @David-Healey Nice. I'll update the name now 👍

                              Meat Beats: https://meatbeats.com
                              Klippr Video: https://klippr.video

                              1 Reply Last reply Reply Quote 0
                              • dannytaurusD
                                dannytaurus @David Healey
                                last edited by

                                @David-Healey @ustk Function name changed in PR.

                                Meat Beats: https://meatbeats.com
                                Klippr Video: https://klippr.video

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

                                28

                                Online

                                2.1k

                                Users

                                13.1k

                                Topics

                                113.5k

                                Posts