HISE Logo Forum
    • Categories
    • Register
    • Login

    Draggable Filter Points

    Scheduled Pinned Locked Moved Solved Scripting
    4 Posts 2 Posters 330 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.
    • T
      treynterrio
      last edited by

      Hi there, is it possible to remove the digits of the points clicked on a floating tile with a draggable filter panel and set the points set to a maximum of 5?

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

        @treynterrio Yes, use a LAF for drawing the drag handles:

        const var eq_laf = Content.createLocalLookAndFeel();
        
        eq_laf.registerFunction("drawFilterDragHandle", function(g, obj)
        {
        	g.setColour(Colours.white);
        	
        	obj.handle[0] += 5;
        	obj.handle[1] += 5;
        	obj.handle[2] -= 10;
        	obj.handle[3] -= 10;
        
        	g.fillEllipse(obj.handle);
        });
        
        Content.getComponent("FloatingTile1").setLocalLookAndFeel(eq_laf);
        

        In order to set the max number to 5, create as many bands as you want the user to have, then use the AllowFilterResizing property:

        {
          "ProcessorId": "Parametriq EQ1",
          "AllowFilterResizing": false,
          "Index": -1,
          "FollowWorkspace": false
        }
        
        T 2 Replies Last reply Reply Quote 2
        • T
          treynterrio @Christoph Hart
          last edited by

          @Christoph-Hart thank you!!! :folded_hands_light_skin_tone:

          1 Reply Last reply Reply Quote 0
          • T
            treynterrio @Christoph Hart
            last edited by treynterrio

            This post is deleted!
            1 Reply Last reply Reply Quote 0
            • T treynterrio marked this topic as a question on
            • T treynterrio has marked this topic as solved on
            • First post
              Last post

            30

            Online

            1.8k

            Users

            12.1k

            Topics

            105.1k

            Posts