Make custom scrolling panel?



  • I'm looking for a solution to scroll through the items inside a panel.

    I have a panel, inside that I have other panels on a vertical row, however those other panels are so many so the row will be higher than the height of the project.

    This is an example

    PanelDrag.gif

    I've made it so it's possible to drag the size of the panel (container) but instead I want to be able to scroll through the items inside.
    Any hints how to do that?

    HiseSnippet 1069.3ocsW1saaaCEGmxIJsVaYqEaXWkAHDrKb.RLjSS5FPwvbhsylwpS8h85VuJfQhVhMRjdTzN0XMXEXWuGfcStYuH6QpuAcGpOrjSkyZLbDfALOeP9SG9mzG2UvsIggbARqb+ICIHsOVu2DlzqgGlxPsahz9L8tXFw2ro.6Z9CDpqmDc3jg3vPhCRSakuWEnV4UQQOu86ND6iY1jLSHzy4TaxSoATYl0t0+Qpu+QXGReZPtn2qdaaNqA2mOBfZEcKzPr84XWxwXUXkzQZq0xgJ4hdRrjDhzV8Ptyjdd7KXww+bZH8LehZPMTOXhhMeD22QQrxJpgG02oa5KeHBlktYkhUhKEetdGpCcp8rRxChbXlkQ95gVoaBuZ4wy5CGOsb3sZLdOTumsfNTl4Qw1Go2lIIhAXXKHOVwwhJ8kkzavgHXxpA3yIGIfASynx9VVaatmk0VOYcCXaHTZNFKLadxA+xocO9oleqYZttDYCdvPNCFTYyz.1Tk25FoCqFRjcghl7D9HIkQpLXDyVR4rJtaY76FkcqN.z.G36WId+NrpqfLYqmXbI7Y1ooCeTHoA12+LPMjMOjwv5Cy05FlvihUO.RoGMTQXrZshBJkaixzAwYT01mZeNww70u1L1fCnt2JNrjIKcBGi8GQfIsCV5UUfYtjj4Xx1l6lUsRSIZsAfqroWzpu41wy.7FobeYz6VJ+lb1wbI4YrJQ0CiKMLutqACJzmZePv88IhBcqNSItoDqvFEbFQjBWZff3ZV0q97Uu4ObYGKKxEHm0lQkOaHgMOMMJQKAe6ma2DKwJYdhMHtgDgjpPPqIYLb+QrnurdSR34R9P3pfoBPj18kQdWO8Hg5FKDED9eRdK0PuJ+0RSxO3BpizapAq+nd712TKu8U0oRRP5ESkWamc14cJGYV2UYdiM1HxLJGc2adzYnmpwyQ1abqOI+8gyRF5EWmr5r5v4B9EomNfR1mpCGpLyYXsbzTddzbO818a0YlhzWkGkGbcT5ecTP+T8gXArJ4VtbuiyV.QnqJp.hP+06U.+ePd24g7aNYIib++oPj6cqQ9QysJe1RF4+t3pbh4aAx6MOj+2WtbQ9KtBUDxoluEHu+bQ92VtHe0eVHxoluEH+34gr43kLxHQgHmXF89Mb.s8vcF4iky1KjpAvDGvOwLSSGpFKXgT4j7MHdmzfzGJtOTuKUZ6ULukJfW3Gktq4Mocy00aMX.wVlA6p5G8q288Vhh6NyEZvQPAwm9wiB5AxAaBPBCTmp1.zJoTwwisTiUUldDlSzf2AOINqoFqk3rVpST.1VvO0Nt4CUCs2OxBvDKpu9x5cTiMqghZHAxS2ppEJ.5y9TaaUoXGf8hyY2EHmGs.4r2Bjy9KPNOdAx4qWfb9laLG0ew4fQRdP7wDvP2VQcooo0hgAUVjhD8et0.pYA
    


  • @Christoph-Hart btw, thank you for the "save XML" option in the latest scriptnode! 👍



  • Yes that was totally me. Nobody else wrote that code.



  • @ulrik Never mind, I've figured it out

    HiseSnippet 1457.3ocsX9taaaCD.mJIpMwsoqEaO.BF8CNXotx+2YEC0o1IcFKI0MNqn4ScLRz1rQVzUhNodsEKuQ6UXOJ8a6SCnuAaGEkrjcrRrMrcAJB4cG4OdG4QwqgCyf35xbPJabxfdDjx8UaNvl2oZGL0FUuFR46UafsIVZ0bvs09EBscGN5EC5gccIlHEkUeoPQkMVC486aO+EXKrsAIrKD5MLpA4.ZWJOr2FU9Upk09XSxIztQzNek5FL6pLKVe.pUU0Q8vFmiaSNBKTaEUjxc1yjxYNM4XNwEor1KXlCZ1gcosT+2PcomYQDMxfZBCjr68YVlBhE8hp1gZY1HXw6hfQoQnqXUoq3GTOjZRG1enK4gdBzBsHp+PYkaBuLQwSe5wSIBdqIw6QpMMbn83gRDrcO051bhSKLDBhhkTWzJ+6ZpUYfF17zcwmS12AZLzhTEz02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cc48z5wgdk2uvQeQk90G8X+Trq9vx.8ERBXezyFG5es+heCyrkBdrzdGfOarOC1qmQ78mF8qMdbvBPUwDZNN70qvIezKUmWUCZr6Q6Ao5f2Kf8dRfxpyNKQcl+t6bvxC7S6NIZtdMfdn5gLy9VX9nkmRTSNeAvqjFoNPhZ8X6R4ChVytkRMqlVbejZCJ2nyj4ckIvK7tpkMu9U.bS08Z0hXvCgcM08e6xubeHYAOZCOj2gBanTOpe2lvYECBPhMb9U7RVkUDu4T1VWzV3YZRrM8Z7evOegYDsU7ElIPHpK1vg8NC46mE0Xbcud.lr8J05FpGJZqkA48lZvNU8z5ntTS56LLDthm.rOYaxNG1jaNrI+bXSg4vlhygMklCaJei1Hp57t84rtxiIPGM1yqPCJJ6E9AZn+GjlhzWJ
    

    Drag and scroll.gif



  • You could use a viewport



  • @d-healey Hmm...I thought I tried that but I could not get it to work with panels inside



  • @Christoph-Hart Haha, I guess David was very much involved in that, right?



  • Nope, I think it was @ustk - David did some other things that I merged last week though.



  • @ulrik said in Make custom scrolling panel?:

    @d-healey Hmm...I thought I tried that but I could not get it to work with panels inside

    Put one panel inside of it - a viewport can only have one child control. Put your other components inside that child panel.



  • Great feature @Christoph-Hart @ustk Thank you!

    Also it would be perfect if drag and drop feature more easy to use just like below one ❤

    alt text



  • @Christoph-Hart Ahh, thank you @ustk !



  • @d-healey thanks! 😀


Log in to reply
 

15
Online

1.2k
Users

3.9k
Topics

34.4k
Posts