search for: left_is_down

Displaying 3 results from an estimated 3 matches for "left_is_down".

2007 Oct 02
0
[ wxruby-Patches-14375 ] bigdemo/wxScrolledWindow - paint bug with scrolled window
...e 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 # added this to save the current...
2007 Apr 29
0
[993] branches/wxruby2/wxwidgets_282/samples/bigdemo/wxScrolledWindow.rbw: Use ClientDC via Window#paint object
...quot;cx"> </span><span class="lines">@@ -156,20 +156,23 @@ </span><span class="cx"> </span><span class="cx"> def on_left_button_event_motion(event) </span><span class="cx"> if event.left_is_down() and @drawing </span><del>- if $BUFFERED - # If doing buffered drawing, create the buffered DC, giving it - # it a real DC to blit to when done. - cdc = Wx::ClientDC.new(self) - dc = Wx::BufferedDC.new(cdc, @buffer)...
2004 Jun 22
8
Tracking Mouse motion
Skipped content of type multipart/alternative-------------- next part -------------- A non-text attachment was scrubbed... Name: tst_wxPaint.rbw Type: application/octet-stream Size: 4446 bytes Desc: not available Url : http://rubyforge.org/pipermail/wxruby-users/attachments/20040622/abc8ba85/tst_wxPaint-0001.obj