Hi David,
>2 questions for a CSS pro somewhere....
- How do I set the precision displayed in a CSS meter? The meter seems determined to display a reading to 2 digits precision, but I’d like to be able to display more accuracy than that.
You are right. Currently, there is no way to change the digits precision even if you selected “limits from PV” (it only read max, min, LoLo, Lo, Hi, HiHi from PV). Actually, it has the same format as its scale. In next release, I would like to add a “Numeric Format” property to every widget with scale, such as Meter, Gauge, Progress Bar, Tank, XY Graph and so on. This property will give user the ability to set the format of the scale, hence the value label. For example, “#.####” means 4 digits precision if there are digits. See here for more details: http://download.oracle.com/javase/1.5.0/docs/api/java/text/DecimalFormat.html
> 2. Is it possible to display a progress bar from right to left? I have 2 valve positions I want to indicate, and they are inverse of each other. I would like to display them as bars where one grows from left to right, and the other grows from right to left.
The only way to do this is reversing your pv value and hiding the scale and label (putting a text update widget on the bar instead). That is, using a rule or script to change the widget’s pv_value property to “max – pvValue”. See attached example. However, there is no way to reverse the scale so far. It is possible but needs lots of work. I would like to add the possibility if more people ask for it.
Happy New Year!
Xihui