Displaying 6 results from an estimated 6 matches for "capture_mouse".
2010 Feb 24
3
Mouse wheel events in a grid cell editor?
I''m trying to do some advanced editing using Grids. I''ve created my own
editors and updating view and model both works fine so far. Thanks to
whoever made this possible. I like wxRuby more each day!
Now I''d like to catch mousewheel events in order to increment/decrement
a grid cell editor.
I''ve tried installing a handler in begin_edit of my editor and removing
2007 Oct 02
0
[ wxruby-Patches-14375 ] bigdemo/wxScrolledWindow - paint bug with scrolled window
...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 absolute...
@event_y_old = event.get_y # ... mouse position
@curLine = []...
2008 Mar 31
2
Mouse motion example - help
Hi,
I am trying out this example adapted from the wxpython book, but the
mouse motion event does not seem to be captured right. What am I doing
wrong?
Thanks
warrior
# code below
require ''wx''
class MyFrame < Wx::Frame
def initialize
super(nil, -1, "My Frame", :size => [300,300])
@my_panel = Wx::Panel.new(self, -1)
evt_motion(){ |event|
2005 Jan 22
9
Dragging images across the canvas
Hi wxRuby Gurus,
I''m trying to write a sample program which allows me to drag an image
(by left_mouse_button down) across the canvas.
I got it to work ... well, sort of. The problem is I can drag it only by
clicking on the left top corner of the image and nowhere else.
Besides, the dragging is not very smooth. How can I make it better?
I am using wxRuby 0.6.0 on Win XP (Home) and
2007 Mar 18
0
[894] branches/wxruby2/wxwidgets_282/doc/textile/window.txtl: Document changed Window methods in 2.6 -> 2.8 API
...893)
+++ branches/wxruby2/wxwidgets_282/doc/textile/window.txtl        2007-03-18 10:16:02 UTC (rev 894)
</span><span class="lines">@@ -65,10 +65,8 @@
</span><span class="cx"> * "Window#capture_mouse":#Window_capturemouse
</span><span class="cx"> * "Window#center":#Window_center
</span><span class="cx"> * "Window#center_on_parent":#Window_centeronparent
</span><del>-* "Window#center_on_screen":#Window_cen...
2007 Apr 30
0
[997] branches/wxruby2/wxwidgets_282: Window - 2.6 -> 2.8 API, new methods and deprecations; update doc
...cx"> "Window":window.html *get_capture*()
</span><span class="lines">@@ -775,9 +793,17 @@
</span><span class="cx"> "Window#has_capture":window.html#Window_hascapture,
</span><span class="cx"> "Window#capture_mouse":window.html#Window_capturemouse,
</span><span class="cx"> "Window#release_mouse":window.html#Window_releasemouse,
</span><ins>+"MouseCaptureLostEvent":mousecapturelostevent.html
</ins><span class="cx"> "MouseCapt...