HISE Logo Forum
    • Categories
    • Register
    • Login

    How to Disable Mouse Interaction on Slider Without Changing Color?

    Scheduled Pinned Locked Moved Scripting
    4 Posts 3 Posters 131 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.
    • pelleP
      pelle
      last edited by pelle

      Hello everyone,

      I’ve created a custom meter using a Slider, linking the value change to the output level. However, I noticed that if I accidentally click and drag the mouse over the meter, it changes the value. Is there a way to prevent the user from modifying the Slider value with the mouse?

      I tried disabling the “enabled” option in the Property Editor, but it causes a color change that I’d prefer to avoid. I’ve attached a demo video for reference.

      Thanks in advance for your help!
      Video: http://e.pc.cd/veuy6alK

      orangeO 1 Reply Last reply Reply Quote 0
      • orangeO
        orange @pelle
        last edited by

        @pelle Just place a panel in front of it. Set the color of the panel as transparent. That’s a fast workaround 😃

        develop Branch / XCode 13.1
        macOS Monterey / M1 Max

        pelleP 1 Reply Last reply Reply Quote 2
        • pelleP
          pelle @orange
          last edited by

          @orange Easy :beaming_face_with_smiling_eyes: Thank you

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

            Even I did this trick in my last project after complaining to the designer that he should stop sending me half transparent filmstrips, oops…

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

            29

            Online

            1.7k

            Users

            11.7k

            Topics

            102.3k

            Posts