Displaying 11 results from an estimated 11 matches for "init_all_image_handlers".
2006 Oct 13
0
init_all_image_handlers
I removed all the calls to init_all_image_handlers from the samples
since we invoke that internally now
Roy
2003 Nov 24
3
wxImageHandler type?
Hiya, I was trying to figure out how to display PNG files using
wxWindows/wxRuby. Google turned up a few things, mainly discussing
the wxImageHandler class and it''s children, etc, but there seems to
be no mention of them in the wxRuby source.
Are they there, and I missed them, or are they just not there?
If there not there, is there a quick and dirty way to get them in?
It seems like
2005 Sep 11
1
Patches for bigdemo
Included are three patches to make the mdi demo work properly:
main.rbw: Call init_all_image_handlers (Is there any reason we
shouldn''t just do this for people? Why make them call this? Is there a
downside to initializing image handlers?)
wxScrolledWindow.rbw: Uncommented call to draw_spline
wxDC.h: Added another prototype of draw_spline so draw_spline will work
in the demo...
2006 Nov 21
0
[747] trunk/wxruby2/Changelog: get_item stuff, evt_toolbar, also correct a commit from 0.0.37 that I missed
...s="lines">@@ -29,6 +33,7 @@
</span><span class="cx"> - Removed SWIG virtual feature from rakewx.rb for SWIG 1.3.30 compatibility
</span><span class="cx"> (Roy Sutton)
</span><span class="cx"> - Remove obsolete calls to init_all_image_handlers (Roy Sutton)
</span><ins>+- TaskBarIcon class and sample added (Roy Sutton)        
</ins><span class="cx"> - DragImage class and sample added (Alex Fenton)
</span><span class="cx"&g...
2005 Jan 22
9
Dragging images across the canvas
...|dc|
dc.clear
dc.draw_bitmap(@bitmap, 0, 0, false)
}
w,h = @bitmap.get_width, @bitmap.get_height
@reg = Wx::Region.new(0,0,w,h)
end
end
class ImagesApp < Wx::App
def on_init
frame = MyFrame.new("Simple Image Demo")
frame.show
end
end
Wx::init_all_image_handlers
a = ImagesApp.new
a.main_loop()
__END__
_______________________________________________
wxruby-users mailing list
wxruby-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/wxruby-users
2006 Nov 21
0
[ wxruby-Bugs-6809 ] Weird SWIG error when constructing statusbar
...created using StatusBar.new. This is demonstrated by the StatusBar example within the bigdemo, or the code below.
NB - it can be worked around by using the Wx::Frame#create_status_bar function.
# Simple demo code:
require ''wx''
class CrasherApp < Wx::App
def on_init
Wx::init_all_image_handlers
f = Wx::Frame.new(nil, -1, ''crash_app'')
s = Wx::StatusBar.new(f, -1)
f.set_status_bar(s)
f.show
end
end
CrasherApp.new.main_loop
# The exception is:
tests/statusbarerror.rb:9:in `process_event'': Swig director type mismatch in output value of type ...
2006 Sep 17
1
run.rb
This is a first stab at a run.rb file that will let you run a sample in
the bigdemo directory by itself.
You have to add the following to the bottom of every sample file:
if __FILE__ == $0
load "run.rb"
run(File.basename($0))
end
Roy
_______________________________________________
wxruby-users mailing list
wxruby-users@rubyforge.org
2004 Nov 13
2
wxRuby and XRC via wxGlade
...r">
<fields>2</fields>
<widths>-1, -3</widths>
</object>
</object>
</resource>
-------------- next part --------------
#!/usr/local/bin/ruby
require "wxruby"
class Foo < Wx::App
def on_init
Wx::init_all_image_handlers()
$xml = Wx::XmlResource.get();
$xml.init_all_handlers();
$xml.load("foo.xrc")
$main = $xml.load_frame(self, "frame_1")
$main.show(true)
end
end
Foo.new.main_loop
2003 Nov 10
5
picture organizer -- need a bit of help
While trying to develop a little wxruby program, I have some
difficulties, namely:
1. I want to read all kind of graphic files, (mainly jpg, png and tiff
is enough...) But, the current implementation seems to deal only with
bmps and currently there is no way to call ::wxInitAllImageHandlers.
2. I think DnD is required in my case: I want to drop filenames on a
TreeCtrl. I will try to add
2006 Dec 02
7
Gauge Problem with XRC?
Hi
I''ve just started using wxruby2-preview-0.0.36-i386-mswin32
outsourcing layout part to the external XRC file. Almost everything
seems to be fine. Only that I can never retrieve Gauge objects in the
main script. What I''ve been trying is something like this:
class MainFrame < Wx::Frame
include Wx
def initialize(parent)
super(nil,-1, "")
2004 Jan 08
3
pictorG
...39;/'') if fn=~/\.(jpe?g|gif|png|bmp|xpm)$/i
}
log.kill
@pic.show_list list
end
end
#========================================================================
class MyApp < App
def OnInit
MyFrame.new("pictorG - PICTure ORganizer by Gregory").show
end
end
init_all_image_handlers
MyApp.new.main_loop()