HISE Logo Forum
    • Categories
    • Register
    • Login

    Dragging Panels... Off the side on the plugin. never to be seen again!

    Scheduled Pinned Locked Moved General Questions
    6 Posts 2 Posters 280 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.
    • DanHD
      DanH
      last edited by

      Dragging panels around is quite fun in a plugin, until you manage to drag it outside of the plugin window, at which point it's impossible to get it back :face_with_tears_of_joy:

      Can you set a boundary? Script a mousecallback perhaps?

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

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

        @DanH

        You can use the X/Y sliders to quickly bring it back on to the canvas.

        Peek 2021-03-03 18-31.gif

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

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

          @d-healey I meant in the compiled plugin :)

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

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

            I've not used draggable panels but assuming they trigger the drag mouse callback you should be able to track the position of the panel as it's moved and prevent it going off screen.

            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

              I just realised there's a Panel.setDraggingBounds() function, might be what you're after

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

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

                @d-healey 👏

                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

                17

                Online

                1.7k

                Users

                11.8k

                Topics

                102.4k

                Posts