search for: memorydc

Displaying 18 results from an estimated 18 matches for "memorydc".

Did you mean: memory
2007 Oct 04
1
wxRuby: MemoryDC problems...
...ount 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 constant Wxruby2::Bitmap::MemoryDC (NameError) from dc_draw_line.rb:30:in `on_init'' ... What am I doing wrong? Is MemoryDC not implemented yet in WxRuby 1.9.1? It''s in the documentation, but I know large chunks of that are auto-generated... My code is below. Any advice would be most appreciated...
2006 Sep 03
3
Patch for DrawLines
...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. Not sure if we should try fixing it or even if we have an example that uses it. Roy _______________________________________________ wxruby-users mailing list wxruby-users@rubyforge.org http://rubyforge.org/mailman/listinfo/wxruby-users
2006 Dec 03
0
[776] trunk/wxruby2: Added Bitmap#draw method, updated sample
...;/h3> <pre>Added Bitmap#draw method, updated sample</pre> <h3>Modified Paths</h3> <ul> <li><a href="#trunkwxruby2doctextilebitmaptxtl">trunk/wxruby2/doc/textile/bitmap.txtl</a></li> <li><a href="#trunkwxruby2doctextilememorydctxtl">trunk/wxruby2/doc/textile/memorydc.txtl</a></li> <li><a href="#trunkwxruby2samplescontrolscontrolsrb">trunk/wxruby2/samples/controls/controls.rb</a></li> </ul> <h3>Added Paths</h3> <ul> <li><a href="#t...
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 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
2007 Apr 29
0
[991] branches/wxruby2/wxwidgets_282/doc/textile: Update documentation for painting methods and WindowDC subclasses
...x"> "WindowDC":windowdc.html </span><span class="lines">@@ -19,21 +17,3 @@ </span><span class="cx"> h2. See also </span><span class="cx"> </span><span class="cx"> "DC":dc.html, "MemoryDC":memorydc.html, "PaintDC":paintdc.html, "WindowDC":windowdc.html, "ScreenDC":screendc.html </span><del>- -<div id="methods"> - -h2. Methods - -* "ClientDC.new":#ClientDC_new - -</div> - - -h3(#ClientDC_new). ClientDC.new...
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 May 01
12
Bitmap memory leaks (Bug 251)?
I see that this problem was noted a while ago (http://rubyforge.org/ tracker/index.php?func=detail&aid=251&group_id=35&atid=218) but it seems not to have received much attention. Any chance that it will be looked at anytime soon? So far, I prefer wxRuby to Ruby/Tk because of that closer coupling with the native window manager. However, the memory leak is just murdering me.
2004 Jul 06
1
New to wxruby
Sorry if this is a repost for those of you who are also on the wxusers list. But I thought I might get some more specific feedback here. I am interested in producing graphical interface elements, like those: http://azureus.sourceforge.net/img/sc/2.1.0.2/statistics.png and http://azureus.sourceforge.net/img/sc/2.1.0.2/torrent_general.png Can anyone point me to what wxruby widgets might work to
2005 Sep 10
8
Tagged wxruby2 v0.0.29, plus added more directors
...''t have them, in the hopes of avoiding more segfault crashes during garbage collection. I was able to get directors working for 14 more classes, but there are still 16 that should have directors but don''t. For me (and SpaceMonkeys), the most important are probably Point, Size, MemoryDC, and maybe Icon. A couple of the changes I made seemed a bit surprising, so I think I am fighting against and/or taking unfair advantage of some swig bugs. If anything doesn''t compile for you with the latest code, let me know and I can probably offer some suggestions. Kevin
2008 May 18
0
[ wxruby-Bugs-20211 ] Unresolved symbol due to linkage error
....o obj/ImageList.o obj/KeyEvent.o obj/LayoutAlgorithm.o obj/ListBox.o obj/ListCtrl.o obj/ListEvent.o obj/ListItem.o obj/ListItemAttr.o obj/Listbook.o obj/ListbookEvent.o obj/Locale.o obj/Log.o obj/LogTextCtrl.o obj/MDIChildFrame.o obj/MDIParentFrame.o obj/Mask.o obj/MediaCtrl.o obj/MediaEvent.o obj/MemoryDC.o obj/Menu.o obj/MenuBar.o obj/MenuEvent.o obj/MenuItem.o obj/MessageDialog.o obj/MiniFrame.o obj/MouseEvent.o obj/MoveEvent.o obj/MultiChoiceDialog.o obj/Notebook.o obj/NotebookEvent.o obj/NotifyEvent.o obj/NumberEntryDialog.o obj/Object.o obj/PageSetupDialog.o obj/PageSetupDialogData.o obj/PaintD...
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
2010 Jan 28
5
Compiling problem on Ubuntu 9.10 64 bit
....o obj/ImageList.o obj/KeyEvent.o obj/LayoutAlgorithm.o obj/ListBox.o obj/ListCtrl.o obj/ListEvent.o obj/ListItem.o obj/ListItemAttr.o obj/Listbook.o obj/ListbookEvent.o obj/Locale.o obj/Log.o obj/LogTextCtrl.o obj/MDIChildFrame.o obj/MDIParentFrame.o obj/Mask.o obj/MediaCtrl.o obj/MediaEvent.o obj/MemoryDC.o obj/Menu.o obj/MenuBar.o obj/MenuEvent.o obj/MenuItem.o obj/MessageDialog.o obj/MiniFrame.o obj/MouseEvent.o obj/MouseState.o obj/MoveEvent.o obj/MultiChoiceDialog.o obj/NavigationKeyEvent.o obj/Notebook.o obj/NotebookEvent.o obj/NotifyEvent.o obj/NumberEntryDialog.o obj/Object.o obj/PageSetupDia...
2004 Jan 08
3
pictorG
...bnails #{i+1}/#{num_images}: #{fn}" thm_file=thm_name(fn).join gen_thm fn unless FileTest.file? thm_file icon_data=Bitmap.new(thm_file, BITMAP_TYPE_JPEG) w,h=icon_data.get_width,icon_data.get_height icon=Bitmap.new(THM_WIDTH,THM_HEIGHT) icon_dc=MemoryDC.new() icon_dc.select_object(icon) icon_dc.set_brush(TRANSPARENT_BRUSH) icon_dc.clear() icon_dc.draw_bitmap(icon_data,(THM_WIDTH-w)/2,(THM_HEIGHT-h)/2,false) icon_dc.select_object(NULL_BITMAP) @imageList.add icon refresh_item i Thread.p...
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
2006 Sep 14
2
Patch to fix ArtProvider and ArtProvider sample
These patches better implement ArtProvider and add the demo for it. I also expanded the bigdemo window a little bit. I really think we should go larger but I suppose there might be some people at 800x600 still. Note that creating your own art provider still doesn''t quite work correctly. I didn''t have time to get into that. The RubyConstants.i.patch file looks weird. Not
2007 Apr 13
0
[954] branches/wxruby2/wxwidgets_282: Additions to Image API 2.6 -> 2.8, remove comment cruft
...ot;cx"> </span><span class="cx"> Returns a scaled version of the image. This is also useful for </span><span class="cx"> scaling bitmaps in general as the only other way to scale bitmaps </span><span class="cx"> is to blit a MemoryDC into another MemoryDC. </span><span class="cx"> </span><del>-It may be mentioned that the GTK port uses this function internally -to scale bitmaps when using mapping modes in DC. </del><ins>+* _quality_ Determines what method to use for resampling the...
2007 Feb 09
20
Hello Everyone
I have a bit of a problem with installation. I installed wxX11 in my linux box. I compiled the demos and all the demos, save dbbrowse, work. I think I have a functional wx. Now I''m trying to install wxRuby from source, since I have a 64 bit machine. I only have permission to my home directory so my installation is : /usr/people/stevenq/Applications/wxX11/