Hello,
I'm working on a project that will mimic an instrument's meter. Part of the meter is a rotating disc that measures tenths of a unit – as it rotates past 9/10 and back around to 0, it increments the units dial by one and continues rotating measuring tenths.
Below is an image that shows an electrical power meter that's common in the USA. The red arrow points to the power meter tenths gauge. This is a disc that continually rotates clockwise measuring tenths of a kilowatt hour of power usage.
I need to implement a similar gauge. My gauge has the markings on the disc's edge rather than the top face – to be viewed from the side rather than from the top.
It would be easy to do it with a digital counter, but it would be nicer to have the display eye candy making it look like the current instrument.
I'm wondering how I might implement something like this. My initial thoughts are to use a panel with a horizontal scrollview. The numbers, 0 - 9, scroll across the panel from the right to left. Following the number 9 it starts over again with 0. A complication is that it can also scroll backwards.
Can anybody suggest how I might approach this? Is something similar to this already available? As I think about it, a horizontal scrollview is probably not the way to go.
Thanks,
Barry.
I'm working on a project that will mimic an instrument's meter. Part of the meter is a rotating disc that measures tenths of a unit – as it rotates past 9/10 and back around to 0, it increments the units dial by one and continues rotating measuring tenths.
Below is an image that shows an electrical power meter that's common in the USA. The red arrow points to the power meter tenths gauge. This is a disc that continually rotates clockwise measuring tenths of a kilowatt hour of power usage.
I need to implement a similar gauge. My gauge has the markings on the disc's edge rather than the top face – to be viewed from the side rather than from the top.
It would be easy to do it with a digital counter, but it would be nicer to have the display eye candy making it look like the current instrument.
I'm wondering how I might implement something like this. My initial thoughts are to use a panel with a horizontal scrollview. The numbers, 0 - 9, scroll across the panel from the right to left. Following the number 9 it starts over again with 0. A complication is that it can also scroll backwards.
Can anybody suggest how I might approach this? Is something similar to this already available? As I think about it, a horizontal scrollview is probably not the way to go.
Thanks,
Barry.