HISE Logo Forum
    • Categories
    • Register
    • Login

    Can't hide child panels?

    Scheduled Pinned Locked Moved Scripting
    7 Posts 2 Posters 168 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

      Is this intentional?

      const var Panel1 = Content.getComponent("Panel1");
      
      for (x in Panel1.getChildPanelList())
      	x.removeFromParent();
      
      const cp = Panel1.addChildPanel();
      cp.showControl(false);
      

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

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

        KSP style workaround cp.set("x", -1000);

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

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

          @d-healey Give it a paint routine and it'll work.
          Please do me a favour, don't ask why... 😁

          const var Panel1 = Content.getComponent("Panel1");
          
          for (x in Panel1.getChildPanelList())
          	x.removeFromParent();
          
          
          const cp = Panel1.addChildPanel();
          cp.showControl(false);
          
          cp.setPaintRoutine(function(g)
          {
          	g.fillAll(Colours.antiquewhite);
          });
          

          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 d.healey

            @ustk Strange, in my real project they have a paint routine and it still doesn't work. I wonder if it's because my child panels have child panels (also with paint routines).

            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's a nested child situation, it still works:

              HiseSnippet 1019.3ocsV8taiSDDecR8wEC2INo6yHq9IGoPjs45ARmNQullBQz+XQNJvmNs0dS7pZuaX851FPmDhm.dD3ogmCdD3M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I75IMyOAKETn3v7z7zovjkPBDcFbiHSUDzQUhqkcUxpLvTBKpP3efuRkdJYiRkdUJQo3PA+Mg569pW17vhU.NwJdTWO30kfr8pNFlltCcQovirdSXnZ6+oPeoMiwuEX9rVf4Ys.yds.yyaAlOuEX9hshQ891WkK4o5qCvBAiKZ8ZXLlggJqhpPz+tGStkB
              

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

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

                @ustk Interesting, I shall play around some more, thanks!

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

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

                  Aha yes it's working. I had to move the order of some calls around.

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

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

                  50

                  Online

                  1.7k

                  Users

                  11.7k

                  Topics

                  101.8k

                  Posts