HISE Logo Forum
    • Categories
    • Register
    • Login

    panel rendering...

    Scheduled Pinned Locked Moved Bug Reports
    9 Posts 4 Posters 234 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.
    • LindonL
      Lindon
      last edited by Lindon

      I was hoping for a real simple way to get a std slider with rounded ends - but the value showing up using a straight line (if you follow me)

      so I put a simple slider inside a panel which has rounded corners, but the panel isnt excluding the slider at these corners thus:

      d52aa59a-f418-45b7-90a7-c1472802c21b-image.png

      The slider is inside the panel but as you can see the panel isn't "honouring" the corner at top left or top right. have I forgotten something....is it t-shirt time again?

      HISE Development for hire.
      www.channelrobot.com

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

        @Lindon the corner is just painted and all component dimensions are always rectangles so yes I would say put on the t-shirt.

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

          Why not use LAF?

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

            @d-healey said in panel rendering...:

            Why not use LAF?

            CAnt quite work out how to LAF together a solution for this (rounded ended slider, with straight line value point)

            HISE Development for hire.
            www.channelrobot.com

            Matt_SFM d.healeyD 2 Replies Last reply Reply Quote 0
            • Matt_SFM
              Matt_SF @Lindon
              last edited by

              @Lindon Applying a mask works, but you'll have to create your own path and adapt the dimensions :

              HiseSnippet 1236.3ocsVstaaaCElJIpaw6BZG5Cff+kxlpgjShaBBFxcWXzjTi5zhMDDTPKQYyYIRCI5j3Vz+s85rWg8rreMLr+r2fsyQT1RNwKs0.yBvR7biemK7bX6DoOKMUlPLV87wCYDiuzryXgp+g8obAo0Q.cySooCNgFRNX7PZZJKfXXr7yP1FqtBI62eu6AzHpvmUPhPdsj6yNgGyUETau2y4QQMoAry4wkjdi8Z4KEGJiji.nrroKYH0e.sG6LJJ1RlDiGbb.WIS5nnJVJ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7d8Kc2gy1ib2wjv.ZYvnHpZ1o130SxYf9T4Qk33PA3qiKi6OgQ4t26n7OVH9Hy1bke+4iwklCFgRk+OvX9Ef9JyiCCg1PE.bEyl+vhdamOv1Cs8TP6pSoP0ATqXd1n3NP6QeFr6BAKBLtowR3gM8ZWbMFA5.sXyV7Ovubld3ZibldSXB0k9Ix23qOhhWw5yyn.XRjciR7VsvZqomMMMcq4hmE3uw2Gc+m3QHyWm5KfNqu.5rwBnylKfNMV.cd5BnyV2qN3Es2ejRFqON.DZebVORCiiETnxJqJj7uPSo6Fx
              

              Develop branch
              Win10 & VS17 / Ventura & Xcode 14. 3

              LindonL 1 Reply Last reply Reply Quote 1
              • LindonL
                Lindon @Matt_SF
                last edited by

                @Matt_SF said in panel rendering...:

                @Lindon Applying a mask works, but you'll have to create your own path and adapt the dimensions :

                Nice, now all I need do is work out hat all that mask data is and how to set it....

                HISE Development for hire.
                www.channelrobot.com

                Matt_SFM 1 Reply Last reply Reply Quote 0
                • Matt_SFM
                  Matt_SF @Lindon
                  last edited by Matt_SF

                  @Lindon just keep the the proportions of the sliders you use in HISE (for this example it's 4:1) to create the SVG file.

                  I don't know if you've already used SVG files so I'll leave this here :

                  Use photoshop or a similar software to draw the rounded rectangle shape with the right proportions and export it as a SVG file (the resolution doesn't matter).
                  Then, open the SVG file into a text editor, copy the path data into the 'convert SVG to path' tool you' ll find either in the projucer app, or in HISE directly if you are on a very recent commit.
                  Then you'll get the path data you'll be able to use in HISE.

                  Develop branch
                  Win10 & VS17 / Ventura & Xcode 14. 3

                  LindonL 1 Reply Last reply Reply Quote 0
                  • LindonL
                    Lindon @Matt_SF
                    last edited by

                    @Matt_SF thank yeah - I'd usually use inkscape for the SVG drawing...

                    HISE Development for hire.
                    www.channelrobot.com

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

                      This post is deleted!
                      1 Reply Last reply Reply Quote 0
                      • First post
                        Last post

                      25

                      Online

                      1.8k

                      Users

                      12.1k

                      Topics

                      105.0k

                      Posts