Displaying 1 result from an estimated 1 matches for "tcookie".
Did you mean:
cookie
2006 Aug 18
10
TreeCtrl update
...ordingly.
I also added a .i and .h file for the class wxTreeItemId.
The TreeCtrl files were changed so much that I am just uploading the
whole files instead of the diffs.
traverse_tree(tree_ctrl,tree_ctrl.get_root_item) do |node_id,cookie|
puts "Name: #{tree_ctrl.get_item_text(node_id)}\t\tCookie:
#{cookie}"
end
def traverse_tree(tree_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_...