search for: on_spinctrl

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

2007 Jun 26
0
[1078] trunk/wxruby2: Map evt_spinctrl to SpinEvent instead of CommandEvent; add example to bigdemo
...uses the Wx::SpinCtrl control.", + Wx::Point.new(45,15)) + + sc = Wx::SpinCtrl.new(self, -1, "", + Wx::Point.new(30, 50), Wx::Size.new(80, -1)) + sc.set_range(1,100) + sc.set_value(5) + evt_spinctrl(sc.get_id) { | e | on_spinctrl(e) } + # sc.enable(false) + end + + def on_spinctrl(evt) + @log.write_text("spintctrl - new position #{evt.get_position}") + end </ins><span class="cx"> end </span><span class="cx"> </span><span class="cx"> modu...