search for: myeditor

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

Did you mean: my_editor
2010 Feb 24
3
Mouse wheel events in a grid cell editor?
...edit of my editor and removing it again in end_edit. I''ve attempted to (a) install an event handler on the grid and forward it to an 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 handl...