Displaying 5 results from an estimated 5 matches for "set_text_foreground".
2006 Nov 13
0
[739] trunk/wxruby2/samples/dialogs/dialogs.rb: Changed back to using block version of paint in on_paint method.
...lt;/span><span class="lines">@@ -138,10 +138,11 @@
</span><span class="cx"> end
</span><span class="cx">
</span><span class="cx"> def on_paint(event)
</span><del>- dc = PaintDC.new(self)
- dc.set_text_foreground( get_app.canvas_text_colour )
- dc.set_font( get_app.canvas_font )
- dc.draw_text("Windows common dialogs test application", 10, 10)
</del><ins>+ paint do |dc|
+ dc.set_text_foreground( get_app.canvas_text_colour )
+ dc.set_font( get_app.canvas_font )
+...
2006 Oct 21
6
Window#paint patch
Attached is a patch and some extra files to fix our
ObjectPreviouslyDeleted crasher with the paint method. As discussed, it
just re-implements the method in Ruby.
I created a directory lib/wx/classes as a place to hold Ruby extensions
to the API. The attached app.rb and window.rb files should be added to
it. When this patch is applied, files in that directory are
automatically required on
2006 Oct 23
0
[709] trunk/wxruby2/samples/dialogs/dialogs.rb: Use paint method again, remove unnecessary global (Alex Fenton)
...>- def onPaint(event)
- # PaintDC currently causing ObjectPreviouslyDeleted (10 Aug 2006)
</del><ins>+ def on_paint(event)
</ins><span class="cx"> paint do | dc |
</span><del>- p dc
</del><span class="cx"> dc.set_text_foreground( get_app.canvas_text_colour )
</span><span class="cx"> dc.set_font( get_app.canvas_font )
</span><span class="cx"> dc.draw_text("Windows common dialogs test application", 10, 10)
</span><span class="lines">@@ -2...
2007 May 10
11
wxRuby2 0.0.40
Congratulations, wxRuby2 0.0.40
but,where is 0.0.40 mswin32.gem?
_______________________________________________
wxruby-users mailing list
wxruby-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/wxruby-users
2006 Nov 13
7
[736] trunk/wxruby2/samples/dialogs/dialogs.rb: Fixed crashing bug in on_paint and made the code style more Ruby like.
...t;,
</span><span class="lines">@@ -138,11 +138,10 @@
</span><span class="cx"> end
</span><span class="cx">
</span><span class="cx"> def on_paint(event)
</span><del>- paint do | dc |
- dc.set_text_foreground( get_app.canvas_text_colour )
- dc.set_font( get_app.canvas_font )
- dc.draw_text("Windows common dialogs test application", 10, 10)
- end
</del><ins>+ dc = PaintDC.new(self)
+ dc.set_text_foreground( get_app.canvas_text_colour )
+ dc.set_font( get_app.ca...