search for: get_next_child

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

2007 Sep 07
0
[ wxruby-Bugs-13734 ] Problem with TreeCtrl#get_first_child and #get_next_child on MSW
...g: http://rubyforge.org/tracker/?func=detail&atid=218&aid=13734&group_id=35 Category: Incorrect behavior Group: None Status: Open Resolution: None Priority: 4 Submitted By: Alex Fenton (brokentoy) Assigned to: Alex Fenton (brokentoy) Summary: Problem with TreeCtrl#get_first_child and #get_next_child on MSW Initial Comment: On Windows, the "cookie" value does not seem to be getting returned correctly when looping over children in TreeCtrl. It is always returned as 0 - this can be seen in the treectrl.rb sample. This also causes assertion failures in debug mode. --------------------...
2006 Oct 17
0
[681] trunk/wxruby2/samples/treectrl/treectrl.rb: wxMAC does not like menu id''s of 0 so I fixed that also made set_item_text_colour
...1000 </span><span class="cx"> </span><span class="cx"> TreeCtrlIcon_File, </span><span class="lines">@@ -271,9 +271,10 @@ </span><span class="cx"> </span><span class="cx"> id,cookie = get_next_child(root_id,cookie) </span><span class="cx"> id,cookie = get_next_child(root_id,cookie) </span><del>- set_item_text_colour(id, Wx::RED) - # Not supported on OS X - set_item_background_colour(id, Wx::LIGHT_GREY) </del><ins>+ if Wx::PLATFORM =...
2006 Aug 18
10
TreeCtrl update
...se_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_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(t...
2006 Dec 03
3
tag and release 0.0.38
Hi I''d like to tag and release 0.0.38 in the next week or so. I know we still have a nasty GC bug on windows, but I''m thinking we could just tell people to use GC.disable for the time being if that avoids the problem. After all, it''s not meant for production use yet. This would make other recent bugfixes and enhancements available. Plus having a binary build out
2007 Jan 05
0
[832] trunk/wxruby2/samples: Fix samples for TreeItemIds as integers, fix image size in treectrl sample
...spond to TreeCtrlIcon_xxx enum </span><span class="cx"> Wx::BusyCursor.busy do |x| </span><span class="lines">@@ -262,7 +262,7 @@ </span><span class="cx"> else </span><span class="cx"> id, cookie = get_next_child(parent_id, cookie) </span><span class="cx"> end </span><del>- if not id.is_ok </del><ins>+ if not id.nonzero? </ins><span class="cx"> return nil </span><span class="cx"> end </span>&l...
2007 Apr 14
0
[965] branches/wxruby2/wxwidgets_282/doc/textile: Misc.
...ions reentrant (i.e. allow more than one </span><span class="cx"> enumeration on one and the same object simultaneously). The cookie passed to </span><del>-GetFirstChild and GetNextChild should be the same variable. </del><ins>+get_first_child and "get_next_child":treectrl.html#TreeCtrl_getnextchild should be the same variable. </ins><span class="cx"> </span><del>-Returns an invalid tree item (i.e. IsOk() returns @false@) if there are no further children. </del><ins>+Returns an invalid tree item (i.e. is_o...