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CUfo5TVuKkw5YoDPLfby0EXRPovs7fHzOr61DMIeSf8ChQLUoYF36rM8XXpjkJcQ2soIGokwo1lQPgb9h2SHOcb3vAsFUrvu0IldhwBZIaMfx5Onz3uerUhdDOct62KUrW..jvQ4M5fcW3JW4JmYrLAxbGZNacjwCA.dQ2zJyT4OhdpdS4o1Lc.MjLjqOb57Pbdlc2.ynqtrnXNE+P5wTUuFvzUnDkBcWFsWzMsYFEICfs3qbKHK6PUllPXNLJYXXHKMleCJhEDvAjkvLEQEQ82aVv5XNLmg9yzCSItHi3e4LzY1WC7OltAyXkAC4D8jCdMu1HSgIfkmvYlhI.fLp7g+idZ7LqO+.g6kc6vz9ClMdmaF3EpU+uFuYusYI2cBCo95Bvtfa6m7u6CYZ79dHS1SOuTVMosjL6hdpxzx.6gRYjgKOKu8yu90uo41.OKv2mIp0Zq8GMeLUuG3Muvreq41pQSI6MMe7D8pPMSaEk9B59o8.4l8qMclexzw7eX7ey313gxgZ.q6SzJSej6AvzJnivmBWFBAkaHWclyPCZW6YVafVWpHHcwYvmLkMLqcxT1HW4+KwHh3qjO22RPata+jTIv4Vj9V8Ec22rF2Hma100qtmgyf8beeSE20gRjY6ypmCeV6b3yMOG9bqygO29b3ycNG97suSeL+aKaLTKirrQffN6jNizwYGAApdS6uP+sEXnsM
-
oh a challenge
here my contribution :-)
-
-
-
@ustk said in LAF ScriptSlider?:
Uuuuuuuuhhh.... That's what I wanted to create... Thank you so much :) -
@d-healey yes - but here used as png-stripe
-
@MikeB Cool one!
This is my LAF for the challengeHiseSnippet 1432.3ocuW0saaaCElJIpcwaoaEaXWqFfEH2Y6Ha2l0htMmecWPSbMhyR1PPQGsDsMWnHMnncraQA1qQuauF6QXuECXW065aP2gRxVxtp+fzs4DjDd98iGd3GOooT3RBBDRjwxGOtOAY7IlsFyU81oGlxQ6uKxXEyC1pt0wBKlXfGZ6w8wAADOjgwh2WahwxKgB+7xZaiYXtKIQDBchf5RNf5SUIRat4CnLVcrG4XpeJqu0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asWosL.pbmn2aME8G..7plaSXhKBkqubrsXTTkN916IyVGdYs9Spr66oeotE0uOiXcDYHQ1tLLLgDli.dlQq8plmFBbegGDhuzL4sglDo95DL1AJXPmNzvb9UHepmGCPV.U2Dkj0+pVBerdy7J3S31NgkVKFghDqIUPFepILNUOnNY4i423FvHQu1S7vfFBuALrZ1oOzibEqPCizOyqeJmCvab5RxG7HIY109dB2qa1jpb6kMdWHC7Bcv+Wi23A7VwbuNc.1pDvtjY8e5e2o4J+tllKdh6qE2oF0nFePOWyaZfcjP32BZUiqa+9ye9KpsK1uOk2MVzlUq920NknN.7lkX1eVaW434j8hZmN6MXDptjPdB4vvaFSL6OpYr3rkiEe+XEy3z3Hw.Ef0CwJo91kYiA9sf6ItD3vfyILMkqwBZxwn0N50Zf0hv8BWnujEqrrdsQrxxST9+RN7wtRwicins0mseTnDXeyC+GVV17P8ZqxSXrMMcJ4nYRnO10U2wUDZQx1mJWBepdI74VWBet8kvmMtD97MWBetya0G8+61VCTB+H1HPPy8Be4zvXONF5dCueg9GG4bE.B
-
@ulrik Ultimate.... (y)
-
@ustk said in LAF ScriptSlider?:
// Range style slider
valueRangeStyleMin
valueRangeStyleMax
valueRangeStyleMinNormalized
valueRangeStyleMaxNormalizedHow 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!
-
@UrsBollhalder If I remember well, the issue was a display glitch, not in the behaviour. So try and see :)
-
@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...
-
@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 useget/setMinValue
and andget/setMaxValue
in the callbacks, andobj.valueRangeStyleMin
andobj.valueRangeStyleMax
in the custom LAF.
Make a simple snippet if you're lost -
@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...
-
@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
-
@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!
-
This post is deleted!