search for: __painting__

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

2007 Sep 29
0
[ wxruby-Bugs-14322 ] Multiple warnings, especially @__painting__
...48 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=218&aid=14322&group_id=35 Category: Incorrect behavior Group: current Status: Open Resolution: None Priority: 3 Submitted By: Nobody (None) Assigned to: Nobody (None) Summary: Multiple warnings, especially @__painting__ Initial Comment: Hi, I''m drawing with "paint" outside the normal evt_paint with the following code (just as example) in a subclass of Wx::Panel: paint do |dc| dc.draw_circle( ... ) end With this I get multiple "warning: instance variable @__painting__ not initialized&q...
2007 Apr 29
0
[983] branches/wxruby2/wxwidgets_282: Make Window#paint work both inside and outside a paint event handler,
...cating that a + # paint event is being handled just before running the event + # handler. This ensures that any call to Window#paint within the + # handler will supply a Wx::PaintDC (see swig/Window.i). + def evt_paint(&block) + wrapped_block = proc do + instance_variable_set("@__painting__", true) + block.call + remove_instance_variable("@__painting__") + end + __old_evt_paint(&wrapped_block) + end </ins><span class="cx"> end </span></span></pre></div> <a id="brancheswxruby2wxwidgets_282swigclas...
2007 Apr 29
0
[992] branches/wxruby2/wxwidgets_282/lib/wx/classes/window.rb: Fix passing of PaintEvent object in paint handler
...PaintDC (see swig/Window.i). </span><span class="cx"> def evt_paint(&block) </span><del>- wrapped_block = proc do </del><ins>+ wrapped_block = proc do | event | </ins><span class="cx"> instance_variable_set("@__painting__", true) </span><del>- block.call </del><ins>+ block.call(event) </ins><span class="cx"> remove_instance_variable("@__painting__") </span><span class="cx"> end </span><span class="cx&...