search for: bitmap_type_png

Displaying 6 results from an estimated 6 matches for "bitmap_type_png".

2007 Oct 18
6
Bug in minimal.rb
...es/minimal/minimal.rb: - # PNG is a good choice for cross-platofrm icons + # PNG is a good choice for cross-platform icons icon_file = File.join( File.dirname(__FILE__), ''mondrian.png'') - self.icon = Wx::Icon.new(icon_file) + self.icon = Wx::Icon.new(icon_file, Wx::BITMAP_TYPE_PNG) Without Wx::BITMAP_TYPE_PNG it does not recognize the icon on my system: WinXP, ruby 1.8.6 (2007-03-13 patchlevel 0) [i386-mswin32], gem: wxruby-1.9.1-i386-mswin32 How about to assume Wx::BITMAP_TYPE_ANY if none given? Again thanks a lot for your work! Regards, Dirk
2007 Dec 27
1
Wx::SplashScreen, and events
I have the following code: #time = 7000 class TimeSplash < Wx::SplashScreen PATH_MAIN = 1 PATH_SETUP = 0 def initialize(time, path=PATH_MAIN) splash_bitmap = Wx::Bitmap.new(''timefly.png'', Wx::BITMAP_TYPE_PNG) super(splash_bitmap, Wx::SPLASH_CENTRE_ON_SCREEN|Wx::SPLASH_TIMEOUT, time, nil, -1) evt_close() {|evt| on_close_window(evt, path)} end def on_close_window(evt, path) if path == PATH_MAIN print "main app!" elsif path == PATH_SETUP print "setu...
2007 Nov 19
2
how to add icon to window
I have icon file and I want to add it to top-left of my application How can I add it ?? -- Posted via http://www.ruby-forum.com/.
2007 Aug 06
3
base64 image
Hi all, is there any way to load a base64 converted image using classes such as Image or Bitmap? Thank you, fabio. _______________________________________________ wxruby-users mailing list wxruby-users@rubyforge.org http://rubyforge.org/mailman/listinfo/wxruby-users
2007 Dec 28
1
Wx:Wizard, Wx::WizardPageSimple
Ok, here is my class: #==================================== class SetupWizard < Wx::Wizard def initialize(timefly, title) setup_image = Wx::Bitmap.new("wizard_side.png", Wx::BITMAP_TYPE_PNG) super(nil, -1, title, setup_image) @timefly = timefly step_one = Wx::WizardPageSimple.new() setup_page_one(step_one) step_two = Wx::WizardPageSimple.new(nil, step_one) step_one.set_next(step_two) setup_page_two(step_two) run_wizard(step_one) #self.sho...
2007 Nov 09
6
Wx::Notebook tabs, bug reports on...
Thank you Alex for the answer to my previous question -- it was exactly what I was looking for! Moving on, I have some bugs to report: I''m using the Wx::Notebook class and it looks to me like Wx::NB_LEFT, Wx::NB_RIGHT, and Wx::NB_BOTTOM are defined incorrectly. To get my tabs to appear on the bottom, for example, I find I have to use Wx::NB_LEFT. Same symptom in