Forum

    • Register
    • Login
    • Search
    • Categories

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

    General Questions
    2
    6
    136
    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.
    • DanH
      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 😂

      Can you set a boundary? Script a mousecallback perhaps?

      d.healey 1 Reply Last reply Reply Quote 1
      • d.healey
        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

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

          @d-healey I meant in the compiled plugin 🙂

          d.healey 1 Reply Last reply Reply Quote 0
          • d.healey
            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.healey
              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

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

                @d-healey 👏

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

                25
                Online

                1.1k
                Users

                7.0k
                Topics

                64.6k
                Posts