Displaying 8 results from an estimated 8 matches for "null_bitmap".
2006 Dec 26
0
[805] trunk/wxsugar/lib/wx_sugar/keyword_classes.rb: NULL_BITMAP is now defined when wxruby2 is loaded, so dummy def not needed
...}
#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>[805] trunk/wxsugar/lib/wx_sugar/keyword_classes.rb: NULL_BITMAP is now defined when wxruby2 is loaded, so dummy def not needed</title>
</head>
<body>
<div id="msg">
<dl>
<dt>Revision</dt> <dd>805</dd>
<dt>Author</dt> <dd>brokentoy</dd>
<dt>Date</dt> <dd>20...
2007 Sep 28
1
WxWizard Error
...d. I''ve gone through it a bit, and seems like there''s some
errors beyond what I could fix. An example is:
# wxWizard A wizard dialog
Wx::define_keyword_ctors(''Wizard'') do
wx_ctor_params :title => ''''
wx_ctor_params :bitmap => Wx::NULL_BITMAP
wx_ctor_params :pos, :size
wx_ctor_params :style => Wx::DEFAULT_DIALOG_STYLE
end
After looking at the SWIG Generated Code, it looks like it generates the
Director to only have the params:
:title => ''''
:bitmap => Wx::NULL_BITMAP
:pos
There is no :size or :style. Bu...
2006 Dec 03
0
[776] trunk/wxruby2: Added Bitmap#draw method, updated sample
...;cx">
</span><del>-If the argument is NullBitmap (or some other uninitialised Bitmap) the current bitmap is selected out of the device
-context, and the original bitmap restored, allowing the current bitmap to
-be destroyed safely.
</del><ins>+If the argument is Wx::NULL_BITMAP (or some other uninitialised Bitmap) the
+current bitmap is selected out of the device context, and the original
+bitmap restored, allowing the current bitmap to be destroyed safely.
</ins><span class="cx">
</span><ins>+It is recommended that you use "Bitmap#...
2007 Jan 05
0
[827] trunk/wxruby2/swig: Moved NULL objects into constants so they can be used for default args
...wxPoint DEFAULT_POSITION = wxDefaultPosition;
</span><span class="cx"> %constant const wxValidator DEFAULT_VALIDATOR = wxDefaultValidator;
</span><span class="cx">
</span><ins>+
+// ''Null'' objects
+%constant wxBitmap const NULL_BITMAP = wxNullBitmap;
+%constant wxIcon const NULL_ICON = wxNullIcon;
+%constant wxCursor const NULL_CURSOR = wxNullCursor;
+%constant wxPen const NULL_PEN = wxNullPen;
+%constant wxBrush const NULL_BRUSH = wxNullBrush;
+%constant wxPalette const NULL_PALETTE = wxNullPalette;
+%constant wxFont...
2007 Oct 04
1
wxRuby: MemoryDC problems...
I''m trying to put together a quick test of buffered animation with
WxRuby, but I''m encountering a fair amount 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
2004 Jan 08
3
pictorG
...et_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.pass
}
}
end
end
#========================================================================
class Categories < TreeCtrl
attr :root
def initialize parent
#,id=-1,pos=DEFAULT_POSITION,size=DEFAULT_SIZE,style=TR...
2007 Jan 06
0
[836] trunk/wxsugar/lib/wx_sugar: Make :validator and :name sugary ctor args work for Controls classes
...een class
</span><ins>+# FIXME - this probably won''t work at present because the ''parent'' arg
+# comes in a funny place in this class''s ctor
+#
+# WxSugar.define_keyword_ctors(''SplashScreen'') do
+# wx_ctor_params :bitmap => Wx::NULL_BITMAP
+# wx_ctor_params :splashstyle, :milliseconds, :id => 1
+# wx_ctor_params :parent => nil
+# wx_ctor_params :title => ''''
+# wx_ctor_params :pos, :size
+# wx_ctor_params :style => Wx::SIMPLE_BORDER|Wx::FRAME_NO_TASKBAR|Wx::STAY_ON_TOP
+# end
+
</ins><s...
2007 Jan 06
0
[838] trunk/wxruby2/doc/textile/artprovider.txtl: Add methods listing; rubyify examples; distinguish class methods
...teed to contain all
-icons, so ArtProvider may return @NullBitmap@ or @NullIcon@.
</del><ins>+"freedesktop.org Icon Themes specification":http://freedesktop.org/Standards/icon-theme-spec. Note that themes are not guaranteed to contain all
+icons, so ArtProvider may return @Wx::NULL_BITMAP@ or @Wx::NULL_ICON@.
</ins><span class="cx"> Default theme is typically installed in @/usr/share/icons/hicolor@.
</span><span class="cx">
</span><span class="cx"> h3(#artproviderclients). Clients
</span><span class="li...