search for: on_left_button_event_down

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

2007 Oct 02
0
[ wxruby-Patches-14375 ] bigdemo/wxScrolledWindow - paint bug with scrolled window
...mouse the lines aren''t drawn at the correct position. After a repaint the lines are drawn correctly. So they are saved correctly to the lines array but there is an error when they are first drawn. I changed two methods to get the correct behaviour: (file with changes attached) From: def on_left_button_event_down(event) if event.left_is_down() and !@drawing set_focus() set_XY(event) @curLine = [] capture_mouse() @drawing = true end end To: def on_left_button_event_down(event) if event.left_is_down() and !@drawing set_focus() set_XY(event) @event_x_old = event.get_x #...
2007 Apr 29
0
[993] branches/wxruby2/wxwidgets_282/samples/bigdemo/wxScrolledWindow.rbw: Use ClientDC via Window#paint object
...idgets_282/samples/bigdemo/wxScrolledWindow.rbw&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp2007-04-29 16:40:51 UTC (rev 993) </span><span class="lines">@@ -35,11 +35,11 @@ </span><span class="cx"> evt_left_down {|event| on_left_button_event_down(event)} </span><span class="cx"> evt_left_up {|event| on_left_button_event_up(event)} </span><span class="cx"> evt_motion {|event| on_left_button_event_motion(event)} </span><del>- evt_paint {|event| on_paint(event)} &lt...