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quJczbFUutS06b2sbxJTgsJkiZXiiBzUEFnmEcoW+0j6yVBdCgh7Ptc9bOM2x4dVNq4U0oSl5zTKRAiQjYpV+3h7s4nMefeahrfUH6vTCAV1YowMeyz3oekwMhoKkgB99bp5g8I72zaOnX5QMMeLp.SUgj7WKljOhADQAtbSSf3DEB2zOxh9w82EqvSBBDOHG8IREUCeicICgGgid4XYycIAmqD8CsMlOFY74uiTNZZ59k1aNd5he6m2L7RdBXna1iP61SkVRfZLKbvhePHoOA.HlglPAB1ck0VasWosL.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!