Imported from previous forum
[ original email was from Dev Ashish - dashish@lab49.com ]
Can you please provide an example of Slider_t and its corresponding Parameter_t?
Specifically, I’m interested in finding out how to disallow an invalid increment so that only valid values are sent back on the wire.
For example,
<Parameter xsi:type="Int_t" fixTag="13" use="optional" name="Aggresiveness" minValue="10" maxValue="30">
<EnumPair enumID="e_Low" wireValue="10"/>
<EnumPair enumID="e_Medium" wireValue="20"/>
<EnumPair enumID="e_High" wireValue="30"/>
</Parameter>
<lay:Control xsi:type="lay:Slider_t" ID="AggresivenessCtl" parameterRef="Aggresiveness" label="Aggresiveness"/>
While min and maxValues control the range, how does the control know that the only other valid choice is 20 and not allow the user to select 15 or 25?
I suppose having an “increment” or “step” attribute on the Parameter_t or Slider_t can address this issue. By setting an increment of 10, the control can invalidate any other values.
Thanks
[ original email was from Dev Ashish - dashish@lab49.com ]
I seem to have somehow completely missed the existing “increment” attribute on Slider_t.