Displaying 20 results from an estimated 40 matches for "paintdc".
2004 Jun 04
2
building wxruby-swig 0.0.16 on Mac
...-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
/usr/local/lib/ruby/site_ruby/1.8/powerpc-darwin -I
/usr/local/lib/ruby/site_ruby -I /usr/local/lib/ruby/1.8 -I
/usr/local/lib/ruby/1.8/powerpc-darwin -I . -o obj/PaintDC.o
src/PaintDC.cpp
src/PaintDC.cpp:730:21: PaintDC.h: No such file or directory
src/PaintDC.cpp:732: error: syntax error before `::'' token
src/PaintDC.cpp: In function `VALUE _wrap_new_wxPaintDC(int, VALUE*,
long
unsigned int)'':
src/PaintDC.cpp:767: error: parse error before...
2007 Apr 28
0
[979] branches/wxruby2/wxwidgets_282/lib/wx/classes/paintdc.rb: Prevent dangerous direct instantiation of PaintDC
...;}
#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>[979] branches/wxruby2/wxwidgets_282/lib/wx/classes/paintdc.rb: Prevent dangerous direct instantiation of PaintDC</title>
</head>
<body>
<div id="msg">
<dl>
<dt>Revision</dt> <dd>979</dd>
<dt>Author</dt> <dd>brokentoy</dd>
<dt>Date</dt> <dd>2007-04-28...
2007 Apr 29
0
[991] branches/wxruby2/wxwidgets_282/doc/textile: Update documentation for painting methods and WindowDC subclasses
...classes</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="#brancheswxruby2wxwidgets_282doctextilewindowtxtl">branches/wxruby2/wxwidgets_282/doc/textile/window.txtl</a></li>
</ul>
</div>
<div id="patc...
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 (u...
2007 Apr 29
0
[980] branches/wxruby2/wxwidgets_282/samples/bigdemo/ShapedWindow.rbw: Use Window#paint instead of PaintDC.new
...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>[980] branches/wxruby2/wxwidgets_282/samples/bigdemo/ShapedWindow.rbw: Use Window#paint instead of PaintDC.new</title>
</head>
<body>
<div id="msg">
<dl>
<dt>Revision</dt> <dd>980</dd>
<dt>Author</dt> <dd>brokentoy</dd>
<dt>Date</dt> <dd>2007-04-28 20:02:02 -0400 (Sat, 28 Apr 2007)</dd>
</...
2007 Apr 29
0
[981] branches/wxruby2/wxwidgets_282/samples/caret/caret.rb: Don''t call PaintDC.new; just refresh() instead of duplicating paint code
...d;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>[981] branches/wxruby2/wxwidgets_282/samples/caret/caret.rb: Don''t call PaintDC.new; just refresh() instead of duplicating paint code</title>
</head>
<body>
<div id="msg">
<dl>
<dt>Revision</dt> <dd>981</dd>
<dt>Author</dt> <dd>brokentoy</dd>
<dt>Date</dt> <dd>2007-04-28...
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
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
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:
2007 Apr 29
0
[983] branches/wxruby2/wxwidgets_282: Make Window#paint work both inside and outside a paint event handler,
...</span><ins>+
+ alias :__old_evt_paint :evt_paint
+ # This modified version of evt_paint sets a variable indicating 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 cla...
2004 Apr 23
11
Building wxruby-swig for Mac
...uration/wxMac-2.4.2/distrib/mac/shared-ld-sh
-undefined suppress -flat_namespace -o -shared -framework Carbon
macstart.o obj/wx.o obj/RubyConstants.o obj/App.o obj/Bitmap.o obj/DC.o
obj/Event.o obj/EvtHandler.o obj/Frame.o obj/GDIObject.o obj/Icon.o
obj/Menu.o obj/MenuBar.o obj/Object.o obj/PaintDC.o obj/Point.o
obj/Size.o obj/Window.o obj/WindowDC.o -L/usr/local/lib -framework
Carbon -framework System -lwx_mac-2.4 -ldl -lobjc -o lib/wx.bundle
c++: macstart.o: No such file or directory
rake aborted!
--
Ryan "John" Platte
Custom services, NIKA Consulting
http://nikaconsulting....
2006 Oct 21
0
[700] trunk/wxruby2/doc/textile/window.txtl: Added paint to the method index; corrected info about the type of DC
...;> paint { | window_dc | ... }
</span><span class="cx">
</span><del>-This method runs the block, yielding a "WindowDC":windowdc.html 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"...
2007 Mar 22
0
[910] branches/wxruby2/wxwidgets_282: Moved paint() method back into C++, so DC object is destroyed in timely
...</span><span class="cx"> class Wx::Window
</span><del>- # Creates a device context which can be used for drawing on the
- # window, and passes it into a block. Note that this method should
- # only be used within an on_paint handler.
- def paint
- yield Wx::PaintDC.new(self)
- end
-
</del><span class="cx"> # Recursively searches all windows below +self+ and returns the first
</span><span class="cx"> # window which has the id +an_id+. This corresponds to the find_window
</span><span class="cx"...
2006 Oct 23
0
[709] trunk/wxruby2/samples/dialogs/dialogs.rb: Use paint method again, remove unnecessary global (Alex Fenton)
...gt; super(parent,-1,DEFAULT_POSITION,DEFAULT_SIZE, NO_FULL_REPAINT_ON_RESIZE)
</span><del>- text = Wx::StaticText.new(self, -1,
- ''WxRuby common dialog test application'',
- Wx::Point.new(10, 10) )
- # PaintDC currently causing ObjectPreviouslyDeleted (10 Aug 2006)
- # evt_paint() {|event| onPaint(event) }
</del><ins>+ evt_paint { |event| on_paint(event) }
</ins><span class="cx"> end
</span><span class="cx">
</span><span class=&quo...
2007 May 07
0
[1017] trunk/wxruby2/Changelog: Update changelog with 0.0.40 changes
...hardcoded WXWIDGETS_VERSION
+- Default arguments for Pen constructor (AF)
+- More 2.8 methods for TopLevelWindow, Window (AF)
+- fixed evt_window_destroy and evt_window_create (AF)
+- fixed samples to use paint method rather than DC directly (AF)
+- Fixes for memory errors and windows crashes with PaintDC, doc (AF/Artur Kuptel)
+- Prevent direct instantiation of ClientDC and PaintDC (AF)
+- Make Window#paint work consistently inside and outside evt_paint (AF)
+- Fix for crasher with ComboBox#get_selection, rename method (AF)
+- Fix for XRC error in Linux listbook sample (AF)
+- Enable no-arg constru...
2007 Sep 29
0
[ wxruby-Bugs-14322 ] Multiple warnings, especially @__painting__
...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 variable @param_flags not initialized
I''m using it on Mac OS X 10.4.10 with ruby 1.8.6 compiled with macports and wxRuby 1.9.1...
2007 Apr 29
0
[ wxruby-Bugs-10438 ] ClientDC segfault on exit
...tatus: 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
#0 0x98bc1cbc in CGGStateRelease ()
#1 0x98bc5f78 in CGContextRestoreGState ()
#2 0x036d8a74 in wxMacCoreGraphicsContext::SetNativeContext(CGContext*) ()
#3 0x036d7e70 in...
2007 May 10
0
wxRuby2 preview 0.0.40 released
...ng 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_range is now Com...
2005 Aug 22
2
Adding ScreenDC
Here is the file to add ScreenDC. I noticed that it inherits from wxDC
which is what the docs show but the headers for each platform are much
different:
- Mac,MSW,os2,motif,palmos all inherit from wxWindowDC
- X11,GTK inherit from wxPaintDC
- MGL, cocoa inherit from wxDC
After saying that on Windows it still work inheriting from wxDC so I
left it for now, any thoughts?
Sean
_______________________________________________
wxruby-users mailing list
wxruby-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/wxruby-users
2004 Apr 22
0
wxruby-swig 0.0.4
...orts. I had forgotten all about it. There may be other
features that we manually added to wxRuby that I will need to be
reminded about so I can add them to the new codes base as well.
This new release of wxruby-swig adds the same Window#paint method, which
required me to implement DC, WindowDC, PaintDC, and evt_paint.
Continuing the pattern, I had some obstacles, but was able to find
solutions for all of them.
The wxWidgets reference docs, which I am using to build all the class
definitions, do not specify whether a method is "pure virtual" or not.
SWIG requires this information to...