search for: clientdc

Displaying 20 results from an estimated 26 matches for "clientdc".

2007 Apr 29
0
[984] branches/wxruby2/wxwidgets_282/lib/wx/classes/clientdc.rb: Prevent dangerous direct instantiation of ClientDC
...;} #patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;} #patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;} #patch .lines, .info {color:#888;background:#fff;} --></style> <title>[984] branches/wxruby2/wxwidgets_282/lib/wx/classes/clientdc.rb: Prevent dangerous direct instantiation of ClientDC</title> </head> <body> <div id="msg"> <dl> <dt>Revision</dt> <dd>984</dd> <dt>Author</dt> <dd>brokentoy</dd> <dt>Date</dt> <dd>2007-04-29...
2007 Apr 29
0
[991] branches/wxruby2/wxwidgets_282/doc/textile: Update documentation for painting methods and WindowDC subclasses
...04-29 12:33:41 -0400 (Sun, 29 Apr 2007)</dd> </dl> <h3>Log Message</h3> <pre>Update documentation for painting methods and WindowDC subclasses</pre> <h3>Modified Paths</h3> <ul> <li><a href="#brancheswxruby2wxwidgets_282doctextileclientdctxtl">branches/wxruby2/wxwidgets_282/doc/textile/clientdc.txtl</a></li> <li><a href="#brancheswxruby2wxwidgets_282doctextilepaintdctxtl">branches/wxruby2/wxwidgets_282/doc/textile/paintdc.txtl</a></li> <li><a href="#brancheswxruby2w...
2007 May 07
1
[ wxruby-Bugs-10662 ] ClientDC paint not being shown on OS X with 2.8
...2007-05-07 19:55 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=218&aid=10662&group_id=35 Category: Incorrect behavior Group: None Status: Open Resolution: None Priority: 4 Submitted By: Alex Fenton (brokentoy) Assigned to: Alex Fenton (brokentoy) Summary: ClientDC paint not being shown on OS X with 2.8 Initial Comment: Since moving to wxWidgets 2.8, drawing done with a ClientDC (outside a paint event, via the paint method) is not being shown until the window is invalidated, on OS X only. This can be seen in the cursor sample in bigdemo; the red circle show...
2007 Apr 29
0
[993] branches/wxruby2/wxwidgets_282/samples/bigdemo/wxScrolledWindow.rbw: Use ClientDC via Window#paint object
...dfd;text-decoration:none;display:block;padding:0 10px;} #patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;} #patch .lines, .info {color:#888;background:#fff;} --></style> <title>[993] branches/wxruby2/wxwidgets_282/samples/bigdemo/wxScrolledWindow.rbw: Use ClientDC via Window#paint object</title> </head> <body> <div id="msg"> <dl> <dt>Revision</dt> <dd>993</dd> <dt>Author</dt> <dd>brokentoy</dd> <dt>Date</dt> <dd>2007-04-29 12:40:51 -0400 (Sun, 29 Apr 20...
2007 Apr 29
0
[ wxruby-Bugs-10438 ] ClientDC segfault on exit
...2007-04-29 00:15 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=218&aid=10438&group_id=35 Category: Incorrect behavior Group: None Status: Open Resolution: None Priority: 3 Submitted By: Alex Fenton (brokentoy) Assigned to: Alex Fenton (brokentoy) Summary: ClientDC segfault on exit Initial Comment: If a ClientDC has been created I get a segfault on exit on OS X. Think ClientDC should be managed using a block in the same way as PaintDC. Backtrace is: Program received signal EXC_BAD_ACCESS, Could not access memory. 0x98bc1cbc in CGGStateRelease () (gdb) whe...
2007 Apr 29
0
[994] branches/wxruby2/wxwidgets_282/samples/bigdemo/ShapedWindow.rbw: Draw bitmap via paint method rather than directly with a ClientDC
...10px;} #patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;} #patch .lines, .info {color:#888;background:#fff;} --></style> <title>[994] branches/wxruby2/wxwidgets_282/samples/bigdemo/ShapedWindow.rbw: Draw bitmap via paint method rather than directly with a ClientDC</title> </head> <body> <div id="msg"> <dl> <dt>Revision</dt> <dd>994</dd> <dt>Author</dt> <dd>brokentoy</dd> <dt>Date</dt> <dd>2007-04-29 12:53:52 -0400 (Sun, 29 Apr 2007)</dd> </dl&g...
2007 Apr 30
0
[999] branches/wxruby2/wxwidgets_282/samples/caret/caret.rb: Use paint() instead of ClientDC.new() in caret sample
...ext-decoration:none;display:block;padding:0 10px;} #patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;} #patch .lines, .info {color:#888;background:#fff;} --></style> <title>[999] branches/wxruby2/wxwidgets_282/samples/caret/caret.rb: Use paint() instead of ClientDC.new() in caret sample</title> </head> <body> <div id="msg"> <dl> <dt>Revision</dt> <dd>999</dd> <dt>Author</dt> <dd>brokentoy</dd> <dt>Date</dt> <dd>2007-04-30 17:33:16 -0400 (Mon, 30 Apr 2007...
2007 Apr 29
0
[990] branches/wxruby2/wxwidgets_282/samples/bigdemo/wxCursor.rbw: Use paint block instead of ClientDC; load icon file safely
...tion:none;display:block;padding:0 10px;} #patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;} #patch .lines, .info {color:#888;background:#fff;} --></style> <title>[990] branches/wxruby2/wxwidgets_282/samples/bigdemo/wxCursor.rbw: Use paint block instead of ClientDC; load icon file safely</title> </head> <body> <div id="msg"> <dl> <dt>Revision</dt> <dd>990</dd> <dt>Author</dt> <dd>brokentoy</dd> <dt>Date</dt> <dd>2007-04-29 12:16:10 -0400 (Sun, 29 Apr 200...
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 Dec 01
5
Tearing in my buffered animation test script...
OK, I have a basic blit demo working (thanks to Alex Fenton for his reply, which I finally saw). However, there''s a great deal of "tearing" on the screen - flickering grey lines in the black background. It looks like the blit isn''t always complete when the screen refreshes. Can anyone look at this and tell me what I might be doing wrong? Any help would be most
2006 Oct 21
0
[700] trunk/wxruby2/doc/textile/window.txtl: Added paint to the method index; corrected info about the type of DC
...into it -to enable direct drawing onto a widget. </del><ins>+This method runs the block, yielding a "PaintDC":paintdc.html into it +to enable direct drawing onto a widget. This method should *only* be +used within an @on_paint@ handler. To draw at other times, create a +"ClientDC":clientdc.html object. </ins><span class="cx"> </span><span class="cx"> h3(#Window_popeventhandler). Window#pop_event_handler </span><span class="cx"> </span></span></pre> </div> </div> </body...
2007 Apr 28
0
[978] branches/wxruby2/wxwidgets_282/samples/bigdemo/wxScrolledWindow.rbw: Fix crazy crashers on MSW; fix scrolling/drawing position; safe path to bitmap
...</span><span class="cx"> # If doing buffered drawing, create the buffered DC, giving it </span><span class="cx"> # it a real DC to blit to when done. </span><span class="cx"> cdc = Wx::ClientDC.new(self) </span><del>- prepare_dc(cdc) </del><span class="cx"> dc = Wx::BufferedDC.new(cdc, @buffer) </span><span class="cx"> else </span><span class="cx"> dc =...
2007 May 07
9
0.0.40 tagged
I''ve tagged 0.0.40 in subversion and created the release on rubyforge. Roy, Sean, please could you compile and upload the binary gems when you have a moment - thanks in advance. Drop me a line off list so I know when to make an announcement. cheers alex
2007 Apr 29
0
[983] branches/wxruby2/wxwidgets_282: Make Window#paint work both inside and outside a paint event handler,
...pan><span class="cx"> %import "include/wxDC.h" </span><span class="cx"> %import "include/wxWindowDC.h" </span><span class="cx"> %import "include/wxPaintDC.h" </span><ins>+%import "include/wxClientDC.h" </ins><span class="cx"> </span><span class="cx"> </span><span class="cx"> %include "include/wxWindow.h" </span><span class="lines">@@ -147,13 +148,21 @@ </span><span class="cx&q...
2005 Jan 22
9
Dragging images across the canvas
...{ on_paint } evt_motion {|event| on_motion(event) } evt_left_down {|event| @left_dn = true } evt_left_up {|event| @left_dn = false } end def move_region(nx,ny) ox,oy,w,h = @reg.get_box @reg.clear @reg = Wx::Region.new(nx,ny,nx+w,ny+h) dc = Wx::ClientDC.new(self) # Erase from the existing location # wb = Wx::WHITE_BRUSH dc.set_brush(wb) dc.set_pen(Wx::WHITE_PEN) dc.draw_rectangle(ox,oy,ox+w,oy+h) # Draw at the new location # dc.draw_bitmap(@bitmap,nx,ny,false) dc.free end def on_m...
2007 Sep 29
0
[ wxruby-Bugs-14322 ] Multiple warnings, especially @__painting__
...startup. But as they are only displayed once they aren''t such a big problem: .../ruby/gems/1.8/gems/wxruby-1.9.1-powerpc-darwin8.3.0/lib/wx/classes/app.rb:10: warning: method redefined; discarding old on_assert_failure .../ruby/gems/1.8/gems/wxruby-1.9.1-powerpc-darwin8.3.0/lib/wx/classes/clientdc.rb:8: warning: method redefined; discarding old initialize .../ruby/gems/1.8/gems/wxruby-1.9.1-powerpc-darwin8.3.0/lib/wx/classes/paintdc.rb:7: warning: method redefined; discarding old initialize .../ruby/gems/1.8/gems/wxruby-1.9.1-powerpc-darwin8.3.0/lib/wx/keyword_ctors.rb:214: warning: instance...
2007 May 10
0
wxRuby2 preview 0.0.40 released
...ilities of existing ones. It also fixes a number of bugs on various platforms. We haven''t added all the new features yet - but hopefully enough to whet your appetite and provide a solid platform for ongoing development. API CHANGES There are a small number of incompatible API changes. - ClientDC.new and PaintDC.new cannot now be called directly - always use the paint() method to get a DC for drawing on a window - A number of deprecated methods have been removed - evt_destroy and evt_create are now evt_window_destroy and evt_window_create, and accept zero arguments - ComboBox#get_selection_...
2005 Aug 21
15
New inheritance
A good number of the samples I have tested are outright or subtly broken on Windows now. I''m trying to determine what the cause is. Mostly it seems related to the initialize function not being created when it should be. Case in point: ClientDC.i The caret example won''t work at all because initialize isn''t declared any longer. If you comment out the import lines, Swig does create an initialize. For ClientDC this fixes things so you can at least allocate one. Second case: Choice.i This is missing an %import for w...
2008 May 18
0
[ wxruby-Bugs-20211 ] Unresolved symbol due to linkage error
...mboBox.o obj/BitmapDataObject.o obj/BoxSizer.o obj/Brush.o obj/BusyInfo.o obj/Button.o obj/CalculateLayoutEvent.o obj/CalendarCtrl.o obj/CalendarDateAttr.o obj/CalendarEvent.o obj/Caret.o obj/CheckBox.o obj/CheckListBox.o obj/ChildFocusEvent.o obj/Choice.o obj/Choicebook.o obj/ChoicebookEvent.o obj/ClientDC.o obj/ClientDataContainer.o obj/Clipboard.o obj/CloseEvent.o obj/CollapsiblePane.o obj/CollapsiblePaneEvent.o obj/Colour.o obj/ColourData.o obj/ColourDialog.o obj/ComboBox.o obj/CommandEvent.o obj/ContextMenuEvent.o obj/Control.o obj/ControlWithItems.o obj/Cursor.o obj/DC.o obj/DataObject.o obj/Dat...
2007 Apr 28
0
[976] branches/wxruby2/wxwidgets_282/samples/bigdemo/wxScrolledWindow.rbw: Remove deprecated begin_drawing and end_drawing calls
...s="cx"> end </span><span class="cx"> </span><span class="cx"> def draw_saved_lines(dc) </span><span class="lines">@@ -170,14 +167,12 @@ </span><span class="cx"> dc = Wx::ClientDC.new(self) </span><span class="cx"> prepare_dc(dc) </span><span class="cx"> end </span><del>- dc.begin_drawing() </del><span class="cx"> dc.set_pen(Wx::Pen.new("MEDIU...