How to set the Centre of Sliderpack?
-
Is it possible to set the centre value of a Sliderpack, so a double-click sends it there, and it visually appears in the middle? Slider has that call in the API, but I don't see it for Sliderpacks. (Is this a thing done in the LAF?) Thanks.
-
Double click for a slider pack (or slider) will set it to its default value, not the middle position.
There is no middle position property for sliderpacks but you can create the same thing through laf. I think by default the middle position will be half way between the min and max values.
-
@d-healey Thank you Dave, I didn't think of that - yes, that works. Could I pls ask another question - if I set a default value for a component, and I load a preset as an INIT, that will write over the default value, yes? Or, another way to put it, is the default value stored with the widget in the XML file, or is it part of a preset file? Thanks, man.
-
@clevername27 The default value is a property of the component. The only thing that is stored/restored with the preset is the component's current value.
-
@d-healey Thank you, Dave.
-