HISE Logo Forum
    • Categories
    • Register
    • Login

    LAF ScriptSlider?

    Scheduled Pinned Locked Moved General Questions
    195 Posts 11 Posters 15.9k 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.
    • ulrikU
      ulrik @MikeB
      last edited by

      @MikeB Cool one! 👍
      This is my LAF for the challenge 😎🎶

      HiseSnippet 1432.3ocuW0saaaCElJIpcwaoaEaXWqFfEH2Y6Ha2l0htMmecWPSbMhyR1PPQGsDsMWnHMnncraQA1qQuauF6QXuECXW065aP2gRxVxtp+fzs4DjDd98iGd3GOooT3RBBDRjwxGOtOAY7IlsFyU81oGlxQ6uKxXEyC1pt0wBKlXfGZ6w8wAADOjgwh2WahwxKgB+7xZaiYXtKIQDBchf5RNf5SUIRat4CnLVcrG4XpeJqu0l66J36Hf7.vYQSGTer643tjFXsYKXhLtxddTkP1RgUj.jwRaK7F2pm3Bdj8mPCnsYD8hxnVPfhDWWv7zHVKEsSOJyq4jsc.BhRyjhvhQEguv7PpGcp7jhwmEpvJwiz0CiEdavqbZ34jI7bxBdFof2RQv65lsbkz9pDMZr8wl6yUDYGLbDjFVQ1hVXMSycDfEbUIe74j5RXwTOr2vwof0scbxeuUxsRN3fHPYMDKsX3NVem0d7tTNojqj.as6yDswrnvdfPb9Vbu5DByV6ZhiOnw1fiSxXWhZGgeeAGVXuJna0nDAgujjzkF.3n9.tqhJ31q5IwWb.jPrrEi5QjqVvpyDkcKXIZ+q4WI2SWImE7QmKLjIPXILfu6kHdXiX4CwrAjFBoOlQeBwKkIAvZvnpNojcA0S0CDVIkrQvZ7YUdz5UrJF5z5o0NNTa0LzF8ytk5.s7awX1ZzztaTSd96MQa.QceI1iBEm5fg1moMipH9QFVtfkS32yJtRAqx5SMcleT9YRHsiMr4+VqxkbxmFB6wXz9AD6yFUzdzMASJFsaWuR9BViKZOddYg0mu1xVu2KpWj25lVI1j1fpYYPl356sbJc2XbEeJNsNTWnaP7HcvCXJ3buxslDgHSzsFawnc4DuiIiTgETE7GPYnf0ptPETR7flqPWd1rGBYD9xUm4THpvNMnyeNMexWcnfMvm.w4L3bHpFTwAp.1kKNrQ9BQsLUgcgyilAcuw.FPYDfCUGQsu2zozF2d1H+dD2WeCE8qfRsk.aTR50sDGQbU1mE2Fkf7MlquJczbFUutS06b2sbxJTgsJkiZXiiBzUEFnmEcoW+0j6yVBdCgh7Ptc9bOM2x4dVNq4U0oSl5zTKRAiQjYpV+3h7s4nMefeahrfUH6vTCAV1YowMeyz3oekwMhoKkgB99bp5g8I72zaOnX5QMMeLp.SUgj7WKljOhADQAtbSSf3DEB2zOxh9w82EqvSBBDOHG8IREUCeicICgGgid4XYycIAmqD8CsMlOFY74uiTNZZ59k1aNd5he6m2L7RdBXna1iP61SkVRfZLKbvhePHoOA.HlglPAB1ck0VasWosL.pbmn2aME8G..7plaSXhKBkqubrsXTTkN916IyVGdYs9Spr66oeotE0uOiXcDYHQ1tLLLgDli.dlQq8plmFBbegGDhuzL4sglDo95DL1AJXPmNzvb9UHepmGCPV.U2Dkj0+pVBerdy7J3S31NgkVKFghDqIUPFepILNUOnNY4i423FvHQu1S7vfFBuALrZ1oOzibEqPCizOyqeJmCvab5RxG7HIY109dB2qa1jpb6kMdWHC7Bcv+Wi23A7VwbuNc.1pDvtjY8e5e2o4J+tllKdh6qE2oF0nFePOWyaZfcjP32BZUiqa+9ye9KpsK1uOk2MVzlUq920NknN.7lkX1eVaW434j8hZmN6MXDptjPdB4vvaFSL6OpYr3rkiEe+XEy3z3Hw.Ef0CwJo91kYiA9sf6ItD3vfyILMkqwBZxwn0N50Zf0hv8BWnujEqrrdsQrxxST9+RN7wtRwicins0mseTnDXeyC+GVV17P8ZqxSXrMMcJ4nYRnO10U2wUDZQx1mJWBepdI74VWBet8kvmMtD97MWBetya0G8+61VCTB+H1HPPy8Be4zvXONF5dCueg9GG4bE.B
      

      toHigh.gif

      Hise Develop branch
      MacOs 15.3.1, Xcode 16.2
      http://musikboden.se

      Tania GhoshT 1 Reply Last reply Reply Quote 2
      • Tania GhoshT
        Tania Ghosh @ulrik
        last edited by

        @ulrik Ultimate.... (y)

        Tania Ghosh

        1 Reply Last reply Reply Quote 1
        • ?
          A Former User @ustk
          last edited by

          @ustk said in LAF ScriptSlider?:

          // Range style slider
          valueRangeStyleMin
          valueRangeStyleMax
          valueRangeStyleMinNormalized
          valueRangeStyleMaxNormalized

          How is it with the range slider by now? Still not reliable? I am trying to customize the look and feel but I can't get my head around the min/max value problem!

          ustkU 1 Reply Last reply Reply Quote 0
          • ustkU
            ustk @A Former User
            last edited by

            @UrsBollhalder If I remember well, the issue was a display glitch, not in the behaviour. So try and see :)

            Can't help pressing F5 in the forum...

            ? 1 Reply Last reply Reply Quote 0
            • ?
              A Former User @ustk
              last edited by

              @ustk hmm... That's a bit my problem... With a horizontal or vertical slider there is one input value, so that's clear to me how to get started... But how do you do it with 2 values? I am not sure I am making myself clear though...

              ustkU 1 Reply Last reply Reply Quote 0
              • ustkU
                ustk @A Former User
                last edited by ustk

                @UrsBollhalder Is it a look & feel problematic that you have or with range slider in general? Since a range slider has a min and a max value, they can't be accessed through the original getValue() or setValue() methods.
                You need to use get/setMinValue and and get/setMaxValue in the callbacks, and obj.valueRangeStyleMin and obj.valueRangeStyleMax in the custom LAF.
                Make a simple snippet if you're lost

                Can't help pressing F5 in the forum...

                ? 1 Reply Last reply Reply Quote 0
                • ?
                  A Former User @ustk
                  last edited by A Former User

                  @ustk Well... It is about painting my rectangle... If I click in the object area, how do I assign left and right sides (or better x and width)?? I know about the methods you mentioned but have trouble with my click event... It's not like with a horizontal slider you click and that event sets the width... (Sounds stupid when I write it like that, but that's the knot in my brain right now)

                  EDIT: I don't want you to solve this for me! I'll have to try some more and bring up a snippet eventually if Im completely out of it... Just starting is a bit difficult... 😂

                  ustkU 1 Reply Last reply Reply Quote 0
                  • ustkU
                    ustk @A Former User
                    last edited by

                    @UrsBollhalder I don't know if I understand well but does this help you to draw what you need?

                    startX = valueRangeStyleMinNormalized * fullWidth

                    widthToDraw = (valueRangeStyleMaxNormalized - valueRangeStyleMinNormalized) * fullWidth

                    Can't help pressing F5 in the forum...

                    ? 2 Replies Last reply Reply Quote 0
                    • ?
                      A Former User @ustk
                      last edited by

                      @ustk Interesting! Thx for the nudge! I’ll do some digging and eye-ball-bleeding myself and hopefully come up with something. Thanks a ton. Always helpful! Appreciated! 🙏

                      1 Reply Last reply Reply Quote 0
                      • ?
                        A Former User @ustk
                        last edited by

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

                        19

                        Online

                        1.7k

                        Users

                        11.8k

                        Topics

                        102.6k

                        Posts