search for: on_wheel

Displaying 2 results from an estimated 2 matches for "on_wheel".

2010 Feb 24
3
Mouse wheel events in a grid cell editor?
...editor-specific method (b) install an event handler on the editor control Neither approach worked. Any suggestions? Thanks in advance, Tony --- class MyEditor < Wx::GridCellChoiceEditor def initialize super end def begin_edit row, col, grid get_control().evt_mousewheel {|e| on_wheel e } grid.evt_mousewheel {|e| on_wheel e } end def on_wheel event p event end def end_edit row, col, grid # TODO: unsubscribe evt handler super end end -- Posted via http://www.ruby-forum.com/.
2007 Apr 29
0
[993] branches/wxruby2/wxwidgets_282/samples/bigdemo/wxScrolledWindow.rbw: Use ClientDC via Window#paint object
...lt;span class="cx"> evt_motion {|event| on_left_button_event_motion(event)} </span><del>- evt_paint {|event| on_paint(event)} </del><ins>+ evt_paint { on_paint } </ins><span class="cx"> #evt_mousewheel {|event| on_wheel(event)} </span><span class="cx"> end </span><span class="cx"> </span><del>- def on_paint(event) </del><ins>+ def on_paint </ins><span class="cx"> paint { | dc | do_drawing(dc) } </span&...