HISE Logo Forum
    • Categories
    • Register
    • Login

    panel.set("enabled", false)

    Scheduled Pinned Locked Moved Scripting
    3 Posts 2 Posters 200 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.
    • ulrikU
      ulrik
      last edited by

      I have a panel ("Container panel"), with several components of different types inside.
      If I set the ContainerPanel

      ContainerPanel.set("enabled", false);
      

      non of the components inside respond to mouse clicking or dragging, that's fine!

      I also have another panel inside, with mouseCallbacks enabled, and that panel responds to mouse events even if the ContainerPanel is disabled, why is that?
      And is it possible to disable the ContainerPanel to "leak" mouse events to the panel inside?

      Hise Develop branch
      MacOs 15.3.1, Xcode 16.2
      http://musikboden.se

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

        @ulrik I think I mentioned this issue at some point but can't find the post now (might be this one I'm thinking of). I believe my solution was to loop over the child elements and any that are panels I disable/enable along with the parent.

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

        ulrikU 1 Reply Last reply Reply Quote 1
        • ulrikU
          ulrik @d.healey
          last edited by

          @d-healey said in panel.set("enabled", false):

          @ulrik I believe my solution was to loop over the child elements and any that are panels I disable/enable along with the parent.

          Ok, thanks for the tip

          Hise Develop branch
          MacOs 15.3.1, Xcode 16.2
          http://musikboden.se

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

          46

          Online

          1.7k

          Users

          11.7k

          Topics

          101.8k

          Posts