search for: evt_mousewheel

Displaying 8 results from an estimated 8 matches for "evt_mousewheel".

2010 Feb 24
3
Mouse wheel events in a grid cell editor?
...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 handler super end end -- Posted via http://www.ruby-forum.com/.
2007 Jun 25
0
[1067] trunk/wxruby2: Set up event handlers in Ruby rather than by post-processing SWIG output
...x::MouseEvent, - Wx::EVT_RIGHT_DOWN => Wx::MouseEvent, - Wx::EVT_RIGHT_UP => Wx::MouseEvent, - Wx::EVT_RIGHT_DCLICK => Wx::MouseEvent, - Wx::EVT_MOTION => Wx::MouseEvent, - Wx::EVT_ENTER_WINDOW => Wx::MouseEvent, - Wx::EVT_LEAVE_WINDOW => Wx::MouseEvent, - Wx::EVT_MOUSEWHEEL => Wx::MouseEvent, - Wx::EVT_SCROLL_THUMBTRACK => Wx::ScrollEvent, - Wx::EVT_SCROLL_LINEUP => Wx::ScrollEvent, - Wx::EVT_SCROLL_LINEDOWN => Wx::ScrollEvent, - Wx::EVT_COMMAND_CHOICEBOOK_PAGE_CHANGED => Wx::ChoicebookEvent, - Wx::EVT_COMMAND_CHOICEBOOK_PAGE_CHANGING =&g...
2007 Jun 26
0
[1086] trunk/wxruby2/lib/wx/classes/evthandler.rb: Restore evt_mouse_events convenience handler, fixing bug in printing sample
...ck) + evt_middle_up(&block) + evt_right_down(&block) + evt_right_up(&block) + evt_motion(&block) + evt_left_dclick(&block) + evt_middle_dclick(&block) + evt_right_dclick(&block) + evt_leave_window(&block) + evt_enter_window(&block) + evt_mousewheel(&block) + end </ins><span class="cx"> </span><span class="cx"> # TODO </span><span class="cx"> # if defined?(Wx::Scintilla) </span></span></pre> </div> </div> </body> </html>
2007 Mar 17
0
[886] branches/wxruby2/wxwidgets_282/swig/fixevents.rb: Mouse events fix for Win32 (Artur Kuptel)
...ht_down(argc,argv,self); + evt_right_up(argc,argv,self); + evt_motion(argc,argv,self); + evt_left_dclick(argc,argv,self); + evt_middle_dclick(argc,argv,self); + evt_right_dclick(argc,argv,self); + evt_leave_window(argc,argv,self); + evt_enter_window(argc,argv,self); + return evt_mousewheel(argc,argv,self); +} +FUNC_DEF </ins><span class="cx"> </span><ins>+&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbspout.puts "#endif //__WXMSW__" if windows +...
2007 May 29
0
[1035] trunk/wxruby2/swig/classes/EvtHandler.i: Removed a heap of redundant stuff that''s been #if 0''d for a while
...ter_window(int argc, VALUE *argv, VALUE self) -{ - return internal_evt_no_parameters(argc, argv, self, wxEVT_ENTER_WINDOW); -} - -static VALUE evt_leave_window(int argc, VALUE *argv, VALUE self) -{ - return internal_evt_no_parameters(argc, argv, self, wxEVT_LEAVE_WINDOW); -} - -static VALUE evt_mousewheel(int argc, VALUE *argv, VALUE self) -{ - return internal_evt_no_parameters(argc, argv, self, wxEVT_MOUSEWHEEL); -} - -static VALUE evt_spin(int argc, VALUE *argv, VALUE self) -{ - return internal_evt_with_id(argc, argv, self, wxEVT_SCROLL_THUMBTRACK); -} - -static VALUE evt_spin_up(int argc,...
2007 Apr 29
0
[993] branches/wxruby2/wxwidgets_282/samples/bigdemo/wxScrolledWindow.rbw: Use ClientDC via Window#paint object
...p(event)} </span><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_drawin...
2007 Jun 23
0
[1060] trunk/wxruby2/swig/fixevents.rb: Include some previously missing events, rehash and simplify
...events(int argc, VALUE *argv, VALUE self) </span><span class="cx"> { </span><span class="cx"> evt_left_down(argc,argv,self); </span><span class="lines">@@ -56,66 +61,40 @@ </span><span class="cx"> return evt_mousewheel(argc,argv,self); </span><span class="cx"> } </span><span class="cx"> FUNC_DEF </span><ins>+ next + end </ins><span class="cx"> </span><del>-&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&n...
2007 May 31
0
[1042] trunk/wxruby2: Overhaul of the event handling WxType->RubyClass mapping to make it
...x::MouseEvent, + Wx::EVT_RIGHT_DOWN => Wx::MouseEvent, + Wx::EVT_RIGHT_UP => Wx::MouseEvent, + Wx::EVT_RIGHT_DCLICK => Wx::MouseEvent, + Wx::EVT_MOTION => Wx::MouseEvent, + Wx::EVT_ENTER_WINDOW => Wx::MouseEvent, + Wx::EVT_LEAVE_WINDOW => Wx::MouseEvent, + Wx::EVT_MOUSEWHEEL => Wx::MouseEvent, + Wx::EVT_SCROLL_THUMBTRACK => Wx::ScrollEvent, + Wx::EVT_SCROLL_LINEUP => Wx::ScrollEvent, + Wx::EVT_SCROLL_LINEDOWN => Wx::ScrollEvent, + Wx::EVT_COMMAND_CHOICEBOOK_PAGE_CHANGED => Wx::ChoicebookEvent, + Wx::EVT_COMMAND_CHOICEBOOK_PAGE_CHANGING =&g...