HISE Logo Forum
    • Categories
    • Register
    • Login

    Multiplying Panel & child components

    Scheduled Pinned Locked Moved General Questions
    11 Posts 4 Posters 407 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.
    • d.healeyD
      d.healey
      last edited by d.healey

      Don't do it. Use a panel + paint routine + mouse callback and a slider pack or two to store values.

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

      orangeO 1 Reply Last reply Reply Quote 1
      • orangeO
        orange @d.healey
        last edited by

        @d-healey Thanks. Is there any starting point or example? I am really ignorant for this kind of things....

        develop Branch / XCode 13.1
        macOS Monterey / M1 Max

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

          @orange I'll make an example, one moment...

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

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

            Something like this

            HiseSnippet 1358.3ocsW0uSiaDD2FvsGoEodp8AXq+iSNGgPbtCZUy0Vf.zhJeDQtdsRnHzh8l3UrY2T60.QTd25iReD5aP6rd8WABAD8vHQ7NeryuY1YFOamPgGIJRDZXt36GOhXX94VcGykAsCvTtwdaCzs1mFIo7AFaMdDNJh3aXZN+OoXat3BFIO+yOtElg4djBRFFePP8H6SGRkET6rwuPYrcw9j2SGVR52twddBdaASDCPYdqFFivdmiGPNDqDaNKCyOYGepTD1UhkjHCyE1R3Otaf3RtV9OPinmwHpEtFcgMRSdWAyWgXEUi1ATlemLWNx.1kNEAf40Afux5.pOMmdQf3KRXfJznb7vbtYAO2xvqwiGdlkf2BZ38RqtdgzQxBNJr8YV6wkjv9X3HnLrzxZL2WtnUaAHAWVeH9bxtgvhbMbVuQiZn0ZznZqkpn9CNJhjnKvgJm0O1Spx.PeO5jkpfPWq9GBYygSF6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3YYB5GKbeoUGpzKX53ctofW3764Fuo2GYIqc52G9RXAXWvZ2e+4+xGF5IEG.MoCoPFk0gwC6Beczi.HgC4YpJFy4T4150MTqUQltDtexh+EdRY5pValxzMiowPrWn3TOccp5FOuHgBfIdxE+Vz5.0ZjqQRsKnmUi5MLFBWD6TOOUnXE.6SWmlOAcdySPm29DzYsmfNq+Dz4adB57syTG0cf2LVJFpKS.Bc1Ioglo4NbLjkkjQZ7enPm0g.
            

            If you need to save values in the preset you can use a sliderpack. If you want to have a scrollable list you can put the panel inside a viewport. I have a few tutorials on YouTube about panels, paint routines, and mouse callbacks.

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

            orangeO 1 Reply Last reply Reply Quote 1
            • orangeO
              orange @d.healey
              last edited by

              @d-healey Great example, thank you so much!

              develop Branch / XCode 13.1
              macOS Monterey / M1 Max

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

                Nonononono, that's advice from 2019 :)

                What you need is anonymous child panels that can be added dynamically:

                404 Not Found

                favicon

                (docs.hise.audio)

                This way you can build up complex UI lists with dynamic content. You cannot add other UI elements in there (so the buttons need to be ScriptPanels, but that shouldn't be a big problem).

                d.healeyD 1 Reply Last reply Reply Quote 2
                • d.healeyD
                  d.healey @Christoph Hart
                  last edited by

                  @Christoph-Hart Is performance affected by adding lots of a additional panels?

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

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

                    It starts to get laggy with 1000s of them, but they are much more lightweight than real UI elements in the tree hierarchy.

                    orangeO 1 Reply Last reply Reply Quote 2
                    • orangeO
                      orange @Christoph Hart
                      last edited by

                      @Christoph-Hart Thank you, I will look at it.

                      develop Branch / XCode 13.1
                      macOS Monterey / M1 Max

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

                        And I'm using crazy mouse CB to simulate buttons and complex behaviours per line... :crazy_face:

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

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

                        14

                        Online

                        1.8k

                        Users

                        12.0k

                        Topics

                        104.4k

                        Posts