This shows you the differences between two versions of the page.
software:gui-designer:sliders [2013/03/22 05:58] jarrod |
software:gui-designer:sliders [2013/05/01 11:28] (current) jarrod |
||
---|---|---|---|
Line 53: | Line 53: | ||
* ''Max'': the maximum value of the slider range. Default is ''100''. | * ''Max'': the maximum value of the slider range. Default is ''100''. | ||
* ''Decimals'': the number of decimal values to include in the value. Defaults to ''0'' which means don't show any decimal values. | * ''Decimals'': the number of decimal values to include in the value. Defaults to ''0'' which means don't show any decimal values. | ||
+ | |||
+ | <WRAP center round important 80%> | ||
+ | It is VERY important to note that these ''Min'', ''Max'' and ''Decimals'' properties only relate to outgoing data.\\ | ||
+ | The range of 0-65535 is always required when SETTING a sliders level. | ||
+ | </WRAP> | ||
+ | |||
=== 8 - Position === | === 8 - Position === | ||
Line 115: | Line 121: | ||
* ''Hex String'' (hexadecimal string): Send the value in an ascii representation of hex format, using the minimum number of hex bytes required to represent the current slider value. | * ''Hex String'' (hexadecimal string): Send the value in an ascii representation of hex format, using the minimum number of hex bytes required to represent the current slider value. | ||
- | The ''[sliderval]'' token can be further manipulated by using ''Dec'' mode, and [[software:gui-designer:math-expressions|math expressions]]. For example ''{{[sliderval]:%02.0f}}'' would result in a slider value of ''8'' being sent as ''08''. | + | The ''[sliderval]'' token can be further manipulated by using ''Dec'' mode, and [[software:gui-designer:math-expressions|math expressions]] within the command value. For example ''%%{{[sliderval]::%02.0f}}%%'' would result in a slider value of ''8'' being sent as ''08''. |