HISE Logo Forum
    • Categories
    • Register
    • Login

    Table -> Disable deletion by right-clicking

    Scheduled Pinned Locked Moved Solved General Questions
    22 Posts 4 Posters 113 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.
    • dannytaurusD
      dannytaurus @Oli Ullmann
      last edited by

      @Oli-Ullmann Mmmm yeah.. good point. I do want to keep the right-click to drag the curve.

      Meat Beats: https://meatbeats.com
      Klippr Video: https://klippr.video

      1 Reply Last reply Reply Quote 0
      • dannytaurusD
        dannytaurus @Oli Ullmann
        last edited by

        @Oli-Ullmann I decided on removing just the remove drag section.

        This should keep the ability to right-click/command-click to drag a curve, but stop either click action removing a point.

        if(e.mods.isRightButtonDown() || e.mods.isCommandDown())
        	{
        #		if (dp != nullptr)
        #		{
        #			removeDragPoint(dp);
        #
        #			if (editedTable.get() != nullptr)
        #				editedTable->sendGraphUpdateMessage();
        #		}
        
        		lastRightDragValue = (float)e.getPosition().getY();
        	}
        

        Meat Beats: https://meatbeats.com
        Klippr Video: https://klippr.video

        Oli UllmannO 1 Reply Last reply Reply Quote 0
        • dannytaurusD
          dannytaurus
          last edited by

          @Christoph-Hart What are the chances of having the various clicks and drags exposed so we can customize them on a per-project basis? Or should we just override them in the plugin scripts?

          Meat Beats: https://meatbeats.com
          Klippr Video: https://klippr.video

          Oli UllmannO 1 Reply Last reply Reply Quote 0
          • Oli UllmannO
            Oli Ullmann @dannytaurus
            last edited by Oli Ullmann

            @dannytaurus

            if(e.mods.isRightButtonDown() || e.mods.isCommandDown())
            	{
            #		if (dp != nullptr)
            #		{
            #			removeDragPoint(dp);
            #
            #			if (editedTable.get() != nullptr)
            #				editedTable->sendGraphUpdateMessage();
            #		}
            
            		lastRightDragValue = (float)e.getPosition().getY();
            	}
            
            

            Yes, I think I tried that too, and I believe there's that unpleasant behavior with the curve when you right click on an existing point.

            But I'm in the middle of another project right now and can't try it out. Maybe you can let me know when you've tried it.

            dannytaurusD 1 Reply Last reply Reply Quote 0
            • Oli UllmannO
              Oli Ullmann @dannytaurus
              last edited by

              @dannytaurus said in Table -> Disable deletion by right-clicking:

              Or should we just override them in the plugin scripts?

              What do you mean by that?

              dannytaurusD 1 Reply Last reply Reply Quote 0
              • dannytaurusD
                dannytaurus @Oli Ullmann
                last edited by

                @Oli-Ullmann Oh, I just assumed we could react to mouse actions on a table in our own scripts? Maybe not. I've never done it.

                Meat Beats: https://meatbeats.com
                Klippr Video: https://klippr.video

                Oli UllmannO 1 Reply Last reply Reply Quote 0
                • dannytaurusD
                  dannytaurus @Oli Ullmann
                  last edited by

                  @Oli-Ullmann said in Table -> Disable deletion by right-clicking:

                  Yes, I think I tried that too, and I believe there's that unpleasant behavior with the curve when you right click on an existing point.

                  And, yeah - you're right about that weird right-click behaviour. Every right click shifts the curve by a certain amount, probably related to the mouse Y position.

                  But looking more into the existing right-click-to-change-curve behaviour - I'm not sure I like that very much either. If you right-click-drag up/down to change a curve, but then drag left-right it affects all the other curves, which will probably be quite surprising to the user.

                  Meat Beats: https://meatbeats.com
                  Klippr Video: https://klippr.video

                  Oli UllmannO DanHD 2 Replies Last reply Reply Quote 0
                  • Oli UllmannO
                    Oli Ullmann @dannytaurus
                    last edited by

                    @dannytaurus said in Table -> Disable deletion by right-clicking:

                    Oh, I just assumed we could react to mouse actions on a table in our own scripts? Maybe not. I've never done it.

                    You can use a broadcaster. However, this only allows you to add additional functionality. I don't think this overwrites the original behavior of a table. I think you can only do this in the source code.

                    1 Reply Last reply Reply Quote 1
                    • Oli UllmannO
                      Oli Ullmann @dannytaurus
                      last edited by

                      @dannytaurus said in Table -> Disable deletion by right-clicking:

                      And, yeah - you're right about that weird right-click behaviour. Every right click shifts the curve by a certain amount, probably related to the mouse Y position.

                      But looking more into the existing right-click-to-change-curve behaviour - I'm not sure I like that very much either. If you right-click-drag up/down to change a curve, but then drag left-right it affects all the other curves, which will probably be quite surprising to the user.

                      Yes, none of this is ideal! I'll take another look at it when I get a chance and let you know if I've been able to improve the behavior. In principle, it should be possible!
                      To prevent the curves of other points from changing when you drag to the left or right, you could create an index when you first click. In other words, the index of the point in question. And only this point would then be changed. I'll try to implement this when I get a chance.

                      1 Reply Last reply Reply Quote 0
                      • DanHD
                        DanH @dannytaurus
                        last edited by

                        @dannytaurus said in Table -> Disable deletion by right-clicking:

                        right-click-to-change-curve behaviour - I'm not sure I like that very much either.

                        No, nor me. Having curve nodes would be much more up-to-date. Is there anyone here who could write a new table which can interface with the existing Hise modules (LFO / ShapeFX)? For $$....

                        DHPlugins / DC Breaks | Artist / Producer / DJ / Developer
                        https://dhplugins.com/ | https://dcbreaks.com/
                        London, UK

                        d.healeyD DanHD 2 Replies Last reply Reply Quote 0
                        • d.healeyD
                          d.healey @DanH
                          last edited by

                          @DanH said in Table -> Disable deletion by right-clicking:

                          right-click-to-change-curve behaviour

                          You can also use the mouse-wheel

                          Free HISE Bootcamp Full Course for beginners.
                          YouTube Channel - Public HISE tutorials
                          My Patreon - HISE tutorials

                          dannytaurusD 1 Reply Last reply Reply Quote 1
                          • dannytaurusD
                            dannytaurus @d.healey
                            last edited by

                            @d-healey said in Table -> Disable deletion by right-clicking:

                            You can also use the mouse-wheel

                            No good for laptop users unfortunately.

                            Meat Beats: https://meatbeats.com
                            Klippr Video: https://klippr.video

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

                              @dannytaurus said in Table -> Disable deletion by right-clicking:

                              No good for laptop users unfortunately.

                              Most laptops have a scroll gesture, two fingers or similar. My Thinkpad has a scroll button, but I think that's uncommon.

                              Still clunky though.

                              Free HISE Bootcamp Full Course for beginners.
                              YouTube Channel - Public HISE tutorials
                              My Patreon - HISE tutorials

                              dannytaurusD 1 Reply Last reply Reply Quote 0
                              • dannytaurusD
                                dannytaurus @d.healey
                                last edited by

                                @d-healey Yeah, scrolling with two fingers works like this on Mac, but that gesture doesn't trigger the curve adjustment. Not on my Mac anyway, and I don't think I've changed any of the trackpad settings. I usually like to stick to default settings as much as possible.

                                Meat Beats: https://meatbeats.com
                                Klippr Video: https://klippr.video

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

                                  @dannytaurus You need to enable the scroll wheel behaviour with a HISE preprocessor, that might be the reason.

                                  Free HISE Bootcamp Full Course for beginners.
                                  YouTube Channel - Public HISE tutorials
                                  My Patreon - HISE tutorials

                                  1 Reply Last reply Reply Quote 0
                                  • DanHD
                                    DanH @DanH
                                    last edited by

                                    @DanH said in Table -> Disable deletion by right-clicking:

                                    No, nor me. Having curve nodes would be much more up-to-date. Is there anyone here who could write a new table which can interface with the existing Hise modules (LFO / ShapeFX)? For $$....

                                    Seriously though, can anyone help with this?!

                                    DHPlugins / DC Breaks | Artist / Producer / DJ / Developer
                                    https://dhplugins.com/ | https://dcbreaks.com/
                                    London, UK

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

                                    25

                                    Online

                                    2.0k

                                    Users

                                    12.8k

                                    Topics

                                    111.1k

                                    Posts