similar to: Tracking Mouse motion

Displaying 20 results from an estimated 400 matches similar to: "Tracking Mouse motion"

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 Apr 29
0
[991] branches/wxruby2/wxwidgets_282/doc/textile: Update documentation for painting methods and WindowDC subclasses
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head><meta http-equiv="content-type" content="text/html; charset=utf-8" /><style type="text/css"><!-- #msg dl { border: 1px #006 solid; background: #369; padding:
2005 Jul 31
5
SWIG compilation
The result of the compilation after installing swig results in lots of errors of the sort: WindowDisabler.obj : error LNK2001: unresolved external symbol _SWIG_Ruby_ConvertPtr I can see this is defined in rubydef.swg but I''m not sure why this isn''t just included in the files that need it. Can any swig experts tell me what I need to do to progress? I''m using
2008 Jan 14
15
How to get a Window handle from another app?
Hello, I would like to get a window handle from another app outside of wxRuby and convert it into a wxRuby Window handle so that I can use it as the parent Window for several wxRuby child windows. Basically I want to use the FRAME_FLOAT_ON_PARENT window style so that my wxRuby windows become associated with the outside app kind of like toolbars, e.g., they don''t show up in the
2006 Sep 03
3
Patch for DrawLines
These enable DrawLines and DrawPolygons. I disable the wxList one since the WX docs indicate that the list is now ''type-safe'' requiring a derived class to send a wxList of Points. Since we''re unlikely to do this I just blocked it off so it doesn''t interfere with internal functions that may call that one. Note: MemoryDC doesn''t inherit from DC.h.
2004 Jun 04
2
building wxruby-swig 0.0.16 on Mac
Grabbed 0.0.16 and tried a build for kicks. ...all good, except for a warning in MenuBar.cpp, then... g++ -c -I/usr/local/lib/wx/include/mac-2.4 -D__WXMAC__ -DWXMAKINGDLL -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -fno-common -fno-common -pipe -fno-common -x objective-c++ -I /usr/local/lib/ruby/gems/1.8/rake-0.3.2/lib -I /usr/local/lib/ruby/site_ruby/1.8 -I
2010 Sep 09
1
Wx::Grid and motion events, bug?
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi there, Doesn''t a Wx::Grid get motion events sent? This code demonstrates the problem: - -------------------------------------------------------------- #!/usr/bin/env ruby #Encoding: UTF-8 require "wx" class MyFrame < Wx::Frame include Wx def initialize(parent = nil) super(parent, title: "Test", size:
2004 Aug 03
1
Drawing
Anyone know how to draw in wxRuby? I want to draw a graph, and have it update as new data comes in. I see stuff about Device Contexts, but I can''t find anything about how to use them, associate them with a panel, or anything like that. -Kurt
2007 Mar 21
4
Problem with PaintDC(MSW)
When implementing EVT_PAINT handlers in c++ the PaintDC object is constructed at the beginning of the function, and auto destructed at it''s end, which informs wxwidgets that "invalid regions in the window have been repainted". Under ruby, this is not the case and causes a stream of EVT_PAINT events to be sent to the given window (until one of PaintDC objects is destructed by
2007 Oct 04
1
wxRuby: MemoryDC problems...
I''m trying to put together a quick test of buffered animation with WxRuby, but I''m encountering a fair amount of trouble... I''m drawing to a Wx::Bitmap first, then using Wx::DC#draw_bitmap to copy it to a Wx::Window. But I get the following error: C:/ruby/lib/ruby/gems/1.8/gems/wxruby-1.9.1-i386-mswin32/lib/wx/classes/bitmap.rb:18:in `draw'': uninitialized
2006 Sep 29
5
ObjectPreviouslyDeleted when trying to paint
Hi, I''m running into something along the lines of bug 5383. I''m hoping I''m doing something obviously wrong and that someone can point me in the right direction. I''ve got a custom paint event handler: def on_paint puts "mainframe on_paint" paint do |dc| dc.clear @cl.draw dc end end Then I''ve got a key press
2007 Jun 05
3
Wx::Image resizing
Hello, I am having problems using the ''resize'' and ''size'' methods of Wx::Image. They seem to be undefined: irb(main):021:0> image = Wx::Image.new("input.ppm") => #<Wx::Image:0xb7b49ef4> irb(main):022:0> image.respond_to? "rescale" => true irb(main):023:0> image.respond_to? "resize" => false
2004 Jul 07
2
wxGrid Event handling work around?
Hi wxRuby gurus, I remember a while back, Zach Dennis was working on a mini Spreadsheet app using wxGrid when the issue of lack of wxGrid event handling was discussed. I think Kevin (or Assaph?) had suggested some workarounds until the Swig based version is out. Could not figure out from the archives exactly what the final resolution was, but I am stuck at the same spot and am desperately in need
2004 Apr 24
5
win32-taskscheduler alpha
Well, I''m going to release the first version of win32-taskscheduler today. For now, I''ve kept the API about the same as it originally was because I was spending way too much time futzing around and I wanted to get something out the door. For now, I''m calling this a BETA release, with the API subject to change. See the ''Future Plans'' section of
2004 Aug 28
2
We need a new installer!
I''ve finished updating all the packages for now. All the sample scripts for all the packages have been moved to doc/examples. So, things should be stable for a while. Shanko, any chance of creating new installer based on the current releases? Dan __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around
2003 Nov 13
7
modified classes
-- +-[ Kontra, Gergely<kgergely@mcl.hu> PhD student Room IB113 ]---------+ | http://www.mcl.hu/~kgergely "Olyan langesz vagyok, hogy | | Mobil:(+36 20) 356 9656 ICQ: 175564914 poroltoval kellene jarnom" | +-- Magyar php mirror es magyar php dokumentacio: http://hu.php.net --+ -------------- next part -------------- A non-text attachment was scrubbed... Name:
2004 Dec 09
6
Scrolling to the bottom of a Grid
Hi, Thanks to the newly added event handlers for Wx::Grid in the 0.6.0 release, I can now provide a much slicker intreface to my "data widgets" which heavily rely on that control. However, I haven''t quite figured out how to programmatically scroll to the last row of a populated grid (actually, the first empty row). So say that I have a grid with 200 rows only 20 of which
2004 Jun 19
4
FlexGridSizer question
=begin I am trying to understand how FlexGridSizer works and I have written a small test application using the latest wxRuby 0.4.0 on Win XP (Home). I cannot get static text ''Week'', ''Day'' and ''Date'' line up above the OK button. I have tried all combinations of ALIGN flags, but I either got the text sticking far too close to the left edge of
2005 Feb 28
3
test/unit error report for win32-service
Dan, I am assuming that the version in CVS is the most current one. Report follows. -- shanko ------------------------------------------------------ C:\win32utils\win32-service\test>ruby tc_service.rb This test will stop and start your Clipboard service, as well as pause and resume your Schedule service. This is harmless unless you are actually using these services at the moment you
2004 Aug 19
28
Documents, Views and DocManagers
Hi, Are there any effort in making wxDocument, wxView, etc types of classes avaiable under wxRuby? For supporting SDI/MDI architecture. Cheers, Phuah Yee Keat