Displaying 4 results from an estimated 4 matches for "get_item_par".
2007 Apr 14
1
how to simulate key_down event(when event.get_key_code()==Wx::K_DOWN) in ListCtrl or TreeCtrl?
I want to simulate vi(vim) like operations in ListCtrl or TreeCtrl,
that is, for example, when user pressed a ''j'' on keyboard,the selected
item change into the next one item, just like user press a
Wx::K_DOWN(arrow key down on keyboard) .
but not jump to some item started with a "J" charater.
evt_tree_key_down(TreeTest_Ctrl) { | e | on_tree_key_down(e) }
...
def
2007 Apr 13
0
[956] branches/wxruby2/wxwidgets_282: Additions to TreeCtrl API 2.6->2.8
...9 +167,9 @@
</span><span class="cx"> * "TreeCtrl#get_next_sibling":#TreeCtrl_getnextsibling
</span><span class="cx"> * "TreeCtrl#get_next_visible":#TreeCtrl_getnextvisible
</span><span class="cx"> * "TreeCtrl#get_item_parent":#TreeCtrl_getitemparent
</span><del>-* "TreeCtrl#get_parent":#TreeCtrl_getparent
</del><span class="cx"> * "TreeCtrl#get_prev_sibling":#TreeCtrl_getprevsibling
</span><span class="cx"> * "TreeCtrl#get_prev_vis...
2007 Jan 05
0
[832] trunk/wxruby2/samples: Fix samples for TreeItemIds as integers, fix image size in treectrl sample
...if dest_item.is_ok && ! item_has_children(dest_item)
</del><ins>+ if dest_item.nonzero? && ! item_has_children(dest_item)
</ins><span class="cx"> # copy to the parent then
</span><span class="cx"> dest_item = get_item_parent(dest_item)
</span><span class="cx"> end
</span><span class="cx">
</span><del>- unless dest_item.is_ok()
</del><ins>+ unless dest_item.nonzero?()
</ins><span class="cx"> Wx::log_message(&quo...
2006 Dec 26
0
[806] trunk/wxruby2/samples/treectrl: Restored demonstration of use of icons and fonts within TreeCtrl
...quot;>
</span><span class="cx"> # add some items to the tree
</span><span class="cx"> add_test_items_to_tree(5, 2)
</span><span class="lines">@@ -134,54 +134,28 @@
</span><span class="cx"> return get_item_parent(item) == get_root_item() && !get_prev_sibling(item)
</span><span class="cx"> end
</span><span class="cx">
</span><del>- # TEMPORARILY DISABLED
- def set_item_image(*args)
- end
</del><ins>+ def create_image_list
+...