noreply at rubyforge.org
2009-Oct-30 07:35 UTC
[wxruby-development] [ wxruby-Bugs-27373 ] TreeCtrl#expand_all crashes (Windows)
Bugs item #27373, was opened at 2009-10-30 08:35
You can respond by visiting:
http://rubyforge.org/tracker/?func=detail&atid=218&aid=27373&group_id=35
Category: Compile/build
Group: None
Status: Open
Resolution: None
Priority: 3
Submitted By: Blaise BARBE (blaisebarbe)
Assigned to: Nobody (None)
Summary: TreeCtrl#expand_all crashes (Windows)
Initial Comment:
When running the following code :
require "wx"
class Tree1 < Wx::App
def on_init
# Create frame
topframe = Wx::Frame.new nil, :title => "TreeCtrl Example"
# Create TreeCtrl widget
tree = Wx::TreeCtrl.new topframe,-1, Wx::Point.new(20,20), \
Wx::Size.new(100,200), Wx::TR_HAS_BUTTONS + Wx::TR_SINGLE
# Render the window
topframe.show
# Add root and items to TreeCtrl
rootid = tree.add_root("foo")
id1 = tree.append_item(rootid,"bar")
id2 = tree.append_item(rootid,"baz")
# Default : expand all branches
rootid.expand_all
end
end
Tree1.new.main_loop
The call to "expand_all" or "expand" crashes Ruby 1.8.6
[i386-mswin32], I haven''t tried other OS''s nor other Ruby
releases.
Is there a workaround, or is it a known bug (haven''t found it in the
buglist) ?
Thanks
Blaise
----------------------------------------------------------------------
You can respond by visiting:
http://rubyforge.org/tracker/?func=detail&atid=218&aid=27373&group_id=35