hi there,
i wrote a tk module providing a new widget, based on a canvas. it's
basically a gauge, but the kind of gauge where the current value always
stays in the middle.
a small drawing is worth a thousand words:
(the pipe symbol reflects current value)
[1 2 3 |4 5 6] value=3.75
[ 2 3 | 5 6 ] value=4.00
[ 2 3 4| 5 6 ] value=4.25
[ 2 3 4 | 5 6 ] value=4.50
[2 3 4 |5 6 7] value=4.75
i'm not aware of such a cpan module - or did i miss it?
in my current implementation, the value wraps up when reaching its max
value. ie, if range is 0..10, then setting the value to 10.1 will result
in a value of 0.1. this can be useful - think for example of old mileage
counters.
because of this behaviour, i was thinking of naming it Tk::RRGauge (RR
meaning RoundRobin).
however, i think i'll implement later on a mode where it does not wrap
up. ie, taking the above example of 0..10 range, widget will look sthg
like:
[xxxxxxxxxxx| 1 2 ] value=0.00
[ 8 9 |xxxxxxxxx] value=9.99
therefore, the name RRGauge might not be the best one... so, maybe a
name like Tk::RotatingGauge would be better?
i welcome your comments / advices.
thks,
jérôme
--
[EMAIL PROTECTED]