Displaying 9 results from an estimated 9 matches for "tree_ctrl".
Did you mean:
free_ctrl
2006 Aug 18
10
TreeCtrl update
...erited from wxControl on Windows
and wxScrolledWindow on everything else so I #if defined the .i and .h
file accordingly.
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(ro...
2006 Dec 05
0
[779] trunk/wxruby2: Added TreeCtrl#traverse method and documentation
...End item data fixes
</ins><span class="cx">
</span><ins>+
</ins><span class="cx"> // GC handling for item data objects
</span><span class="cx"> %{
</span><del>- static void RecursivelyGCMarkFrom(wxTreeCtrl *tree_ctrl, wxTreeItemId base_id )
</del><ins>+ // general recursion over a treectrl, starting from a base_id
+ // the function rec_func will be called in turn for each tree item,
+ // rec_func should be a funtion that receives a treectrl pointer and an ItemId
+ static void RecurseOverTreeIds...
2007 Jun 05
0
[1046] trunk/wxruby2/swig/classes/TreeCtrl.i: Prevent crashes in TreeCtrl from premature deletion of associated ImageList
...n><span class="cx">          return;
</span><span class="cx">
</span><span class="cx">         wxTreeCtrl* tree_ctrl = (wxTreeCtrl*) ptr;
</span><ins>+
+        wxImageList* img_list;
+        // First check if there''s ImageLists and mark if found
+  ...
2006 Nov 16
0
[741] trunk/wxruby2: Fix get_item_data, hiding TreeItemData messiness, fix GC-ing (Alex Fenton)
...a *)$1;
+         $result = ruby_item_data->GetRubyObject();
+        }
+}
+
+// GC handling for item data objects
+%{
+ static void RecursivelyGCMarkFrom(wxTreeCtrl *tree_ctrl, wxTreeItemId base_id )
+ {
+        
+        // check if there''s item data, and mark it
+       &nb...
2007 Jun 27
0
[1089] trunk/wxruby2/swig/classes/TreeCtrl.i: Hide missing method call in TreeCtrl on Win32
...<span class="cx">         // First check if there''s ImageLists and mark if found
</span><span class="cx">         img_list = tree_ctrl->GetImageList();
</span><span class="cx">         if ( img_list ) rb_gc_mark(SWIG_RubyInstanceFor(img_list));
</span><ins>+#if !defined(__WXMSW__)
</ins><span class="cx"> &...
2004 May 22
4
couple of questions
Hi folks
A couple of questions:
1) I seem to get funny artifacts in the display of TreeCtrl, ComboBox
and ListBox when the MDI child frame containing it is first painted (see
attached - it should be two-root treeview, unopened). I''m not sure if
it''s related to being in a MDI, but the controls sample looks OK. The
artifacts are cleared up when it''s repainted or
2006 Dec 23
0
[797] trunk/wxruby2/swig/classes/TreeCtrl.i: Traverse method moved to wxSugar
...;/ins><span class="cx"> static void DoGCMarkItemData(void *ptr, const wxTreeItemId& item_id)
</span><span class="cx"> {
</span><span class="cx">         wxTreeCtrl* tree_ctrl = (wxTreeCtrl*) ptr;
</span><span class="lines">@@ -90,15 +91,6 @@
</span><span class="cx">         wxTreeItemId root_id = tree_ctrl->GetRootItem();
</span><span class="cx&qu...
2008 Nov 14
1
GenericDirCtrl#re_create_tree behaviour
Hi
When GenericDirCtrl#re_create_tree is called in order to refresh the
tree with any possible changes made to the file system since it was
loaded, it doesn''t re-expand all the tree items that were expanded
prior to calling re_create_tree. I''m working on a solution to note all
open tree items and after re_create_tree manually expand the items
that are still present in the tree.
2007 Jul 21
0
[1137] trunk/wxruby2/swig/classes/TreeCtrl.i: Call correct shared function to check whether TreeCtrl is deleted in markfunc
...s><span class="cx">          return;
</span><span class="cx">
</span><span class="cx">         wxTreeCtrl* tree_ctrl = (wxTreeCtrl*) ptr;
</span></span></pre>
</div>
</div>
</body>
</html>