search for: bitmap_type_xpm

Displaying 7 results from an estimated 7 matches for "bitmap_type_xpm".

2007 Feb 12
0
[871] trunk/wxruby2/samples/printing/printing.rb: Enable sample to be run from other directories
...t;<ins>+ icon_file = File.join(File.dirname(__FILE__), ''mondrian.ico'') + my_icon = Wx::Icon.new(icon_file, Wx::BITMAP_TYPE_ICO) </ins><span class="cx"> else </span><del>- my_icon = Wx::Icon.new("mondrian.xpm",Wx::BITMAP_TYPE_XPM) </del><ins>+ icon_file = File.join(File.dirname(__FILE__), ''mondrian.xpm'') + my_icon = Wx::Icon.new(icon_file, Wx::BITMAP_TYPE_XPM) </ins><span class="cx"> end </span><span class="cx"> </span><span cl...
2007 Jul 17
0
[1116] trunk/wxruby2/samples/bigdemo/wxStaticBitmap.rbw: Fix hardcoded image paths, tidy up indenting
...::Panel </span><del>- def initialize(parent, log) - super(parent, -1) - - Wx::StaticText.new(self, -1, "This is a wxStaticBitmap.", Wx::Point.new(45,5)) - - Wx::StaticBitmap.new(self, -1, Wx::Bitmap.new("./icons/test2.xpm", Wx::BITMAP_TYPE_XPM), Wx::Point.new(80,25)) - - Wx::StaticBitmap.new(self, -1, Wx::Bitmap.new("./icons/robert.xpm", Wx::BITMAP_TYPE_XPM), Wx::Point.new(0, 100)) - Wx::StaticText.new(self, -1, "Hey, if Ousterhout (and Dunn) can do it, so can I.", Wx::Po...
2007 Jun 05
0
[1053] trunk/wxruby2/samples: Change references to assign_image_list methods to set_image_list in samples
...ontrols.rb&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp2007-06-05 22:29:54 UTC (rev 1053) </span><span class="lines">@@ -219,7 +219,7 @@ </span><span class="cx"> imagelist.add( Bitmap.new( "icons/text.xpm", Wx::BITMAP_TYPE_XPM)) </span><span class="cx"> imagelist.add( Bitmap.new( "icons/radio.xpm", Wx::BITMAP_TYPE_XPM)) </span><span class="cx"> imagelist.add( Bitmap.new( "icons/gauge.xpm", Wx::BITMAP_TYPE_XPM)) </span><del>-...
2007 Oct 18
6
Bug in minimal.rb
Hi! I discovered WxRuby2 and WxSugar a short while ago (1.9.1) and I really like its professional look and the platform independance. But especially the simplification and ''rubyfication'' that you already achieved and are planning for 1.9.2 (event handlers) is funstuff! Thanks a lot! And with Ruby 1.9/2 the keyword constructors will be even nicer with the new hash syntax:
2007 Jul 12
1
bmp => xpm
Salut Alex, je voudrais savoir comment faire pour passer le format bmp, par exemple, en format xpm? Est-ce qu''il est possible de lire des formats bmp(entre autre) avec StaticBitmap? C''est toi en photo dans l''exemple de StaticBitmap? merci Sebastien _______________________________________________ wxruby-users mailing list wxruby-users@rubyforge.org
2006 Dec 26
0
[806] trunk/wxruby2/samples/treectrl: Restored demonstration of use of icons and fonts within TreeCtrl
...- images.add(icons[i]) - else - images.add(icons[i]) - end </del><ins>+ Wx::BusyCursor.busy do + icons = (1 .. 5).map do | i | + icon_file = File.join(File.dirname(__FILE__), "icon#{i}.xpm") + # Wx::Icon.new(icon_file, Wx::BITMAP_TYPE_XPM, 16, 16) + Wx::Bitmap.new(icon_file, Wx::BITMAP_TYPE_XPM) </ins><span class="cx"> end </span><del>- - assign_image_list(images) </del><ins>+ icons.each { | ic | images.add(ic) } + set_image_list(images) </ins><...
2007 Apr 13
0
[954] branches/wxruby2/wxwidgets_282: Additions to Image API 2.6 -> 2.8, remove comment cruft
...file.| </span><span class="cx"> |BITMAP_TYPE_PNM|Load a PNM bitmap file.| </span><span class="cx"> |BITMAP_TYPE_TIF|Load a TIFF bitmap file.| </span><ins>+|BITMAP_TYPE_TGA|Load a TGA bitmap file.| </ins><span class="cx"> |BITMAP_TYPE_XPM|Load a XPM bitmap file.| </span><span class="cx"> |BITMAP_TYPE_ICO|Load a Windows icon file (ICO).| </span><span class="cx"> |BITMAP_TYPE_CUR|Load a Windows cursor file (CUR).| </span><span class="lines">@@ -210,8 +216,8 @@ </span...