Displaying 1 result from an estimated 1 matches for "ret_sib".
Did you mean:
reg_bib
2006 Aug 18
10
TreeCtrl update
..._ctrl,root_node,cookie=0,&block)
if cookie == 0
ret = tree_ctrl.get_first_child(root_node)
else
ret = tree_ctrl.get_next_child(root_node,cookie)
end
if ret[0].is_ok
if block_given?
yield(ret[0],ret[1])
end
traverse_tree(tree_ctrl,ret[0],0,&block)
end
ret_sib = tree_ctrl.get_next_sibling(root_node)
if ret_sib.is_ok
if block_given?
yield(ret_sib,cookie)
end
traverse_tree(tree_ctrl,ret_sib,0,&block)
end
end
Sean
_______________________________________________
wxruby-users mailing list
wxruby-users@rubyforge.org
http://rub...