Displaying 6 results from an estimated 6 matches for "treeitemdata".
2006 Nov 16
0
[741] trunk/wxruby2: Fix get_item_data, hiding TreeItemData messiness, fix GC-ing (Alex Fenton)
...0px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<title>[741] trunk/wxruby2: Fix get_item_data, hiding TreeItemData messiness, fix GC-ing (Alex Fenton)</title>
</head>
<body>
<div id="msg">
<dl>
<dt>Revision</dt> <dd>741</dd>
<dt>Author</dt> <dd>brokentoy</dd>
<dt>Date</dt> <dd>2006-11-16 16:12:52 -0500 (Th...
2006 Nov 12
1
TreeCtrl item_data
...ds
for the TreeCtrl so they work nicely with Ruby objects and GC.
In C++ Wx TreeCtrl item_data works differently from client_data in
classes derived from ControlWithItems (eg Choice, ListCtrl). A
one-to-one mapping of the way TreeCtrl works would mean that you would
have to derive a class from TreeItemData, and instantiate one of this
container class each time you wanted to associate a Ruby object with a
tree item.
This seems very clumsy in Ruby, so I''ve used typemaps so that you can
simply pass any Ruby object to a method that adds a tree item, or to
set_item_data, and later call get_i...
2004 Jul 16
2
TreeCtrl#get_item_data
Hi
I saw from the ChangeLog that [get|set]_client_data was removed from
ComboBox for 0.4.0 because the methods weren''t working properly.
TreeCtrl#get_item_data still seems to be there. I was wondering if
someone who understood the issue could say if TreeItemData might also be
afflicted with the same problems?
I seem to be segfaulting quite a bit (actually, on TreeEvt#get_item),
but it disappears when I don''t use item_data. The methods are easy
enough to fake in pure Ruby, so I don''t want to spend time chasing
something I can work around....
2007 Jun 05
0
[1046] trunk/wxruby2/swig/classes/TreeCtrl.i: Prevent crashes in TreeCtrl from premature deletion of associated ImageList
...t;<ins>+%ignore wxTreeCtrl::AssignImageList;
+%ignore wxTreeCtrl::AssignButtonsImageList;
+%ignore wxTreeCtrl::AssignStateImageList;
+
</ins><span class="cx"> // ITEM DATA fixes - This is done so the API user never sees a
</span><span class="cx"> // TreeItemData object - where in Wx C++ such an object
</span><span class="cx"> // would be passed or returned by a method, any Ruby object may be used.
</span><span class="lines">@@ -92,6 +96,17 @@
</span><span class="cx">   &n...
2007 Jan 05
0
[831] trunk/wxruby2: Use simple ruby Integers to represent TreeItemIds
...is done so the API user never sees a
</del><ins>+// wxTreeItemId fixes - these typemaps convert them to ruby Integers
+%include "../shared/treeitemid_typemaps.i"
+
+// ITEM DATA fixes - This is done so the API user never sees a
</ins><span class="cx"> // TreeItemData object - where in Wx C++ such an object
</span><span class="cx"> // would be passed or returned by a method, any Ruby object may be used.
</span><span class="cx"> %{
</span><span class="lines">@@ -114,10 +118,9 @@
</span><sp...
2004 Sep 28
9
Open call to try wxruby-swig
Hi Everyone,
Over the past couple of weeks wxruby-swig has made a lot of progress.
Over 100 classes have been added with attempts to mimic the existing
wxruby interfaces. While still not as stable as wxruby, stability has
increased dramatically. Finally, it has been built on Linux, Mac, and MSVC.
This email is an invitation to try out wxruby-swig for yourself. The
source code is in CVS and