search for: move_gaug

Displaying 1 result from an estimated 1 matches for "move_gaug".

Did you mean: move_gauges
2007 Jul 20
0
[1124] trunk/wxruby2/samples/bigdemo/wxGauge.rbw: Use Wx::Timer instead of evt_idle to drive Gauge sample, to avoid 100%
..., + Wx::Point.new(110, 140), Wx::Size.new(25,250), + Wx::GA_VERTICAL) + @g3.set_bezel_face(3) + @g3.set_shadow_width(3) + + # start a timer to move the gauges forward every 1/4 s + timer = Wx::Timer.new(self, 5001) + evt_timer(5001) { move_gauges } + timer.start(250) + end + + # advance the gauges + def move_gauges + @count +=1 + if @count > 50 + @count = 0 </ins><span class="cx"> end </span><ins>+ @g1.set_value(@count) + @g2.set_value(@count) + @g3.set_value(@count) +...