Displaying 10 results from an estimated 10 matches for "control_with_item".
Did you mean:
control_with_items
2007 Apr 02
0
[936] branches/wxruby2/wxwidgets_282/swig/shared/control_with_items.i: Remove debugging output
...x 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>[936] branches/wxruby2/wxwidgets_282/swig/shared/control_with_items.i: Remove debugging output</title>
</head>
<body>
<div id="msg">
<dl>
<dt>Revision</dt> <dd>936</dd>
<dt>Author</dt> <dd>brokentoy</dd>
<dt>Date</dt> <dd>2007-04-02 14:42:37 -0400 (Mon, 02 Ap...
2007 Jul 20
0
[1125] trunk/wxruby2/swig/shared/control_with_items.i: Avoid MSW crashes when unexpected object is returned by SWIG tracking
...#ccc;margin:10px 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>[1125] trunk/wxruby2/swig/shared/control_with_items.i: Avoid MSW crashes when unexpected object is returned by SWIG tracking</title>
</head>
<body>
<div id="msg">
<dl>
<dt>Revision</dt> <dd>1125</dd>
<dt>Author</dt> <dd>brokentoy</dd>
<dt>Date</dt>...
2007 May 21
0
[1026] trunk/wxruby2/swig/shared/control_with_items.i: Memory mgmt: USe __wx_destroyed__ instead of __swig_dead__; fix some
...#ccc;margin:10px 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>[1026] trunk/wxruby2/swig/shared/control_with_items.i: Memory mgmt: USe __wx_destroyed__ instead of __swig_dead__; fix some</title>
</head>
<body>
<div id="msg">
<dl>
<dt>Revision</dt> <dd>1026</dd>
<dt>Author</dt> <dd>brokentoy</dd>
<dt>Date</dt> &...
2007 Jul 21
0
[1133] trunk/wxruby2/swig/shared/control_with_items.i: Move mark func for ControlWithItems into shared file so changes affect
...#ccc;margin:10px 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>[1133] trunk/wxruby2/swig/shared/control_with_items.i: Move mark func for ControlWithItems into shared file so changes affect</title>
</head>
<body>
<div id="msg">
<dl>
<dt>Revision</dt> <dd>1133</dd>
<dt>Author</dt> <dd>brokentoy</dd>
<dt>Date</dt>...
2007 Mar 17
0
[889] branches/wxruby2/wxwidgets_282/swig/shared/control_with_items.i: Ensure SWIG doesn''t generate wrappers for client data methods (Artur Kuptel)
...x 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>[889] branches/wxruby2/wxwidgets_282/swig/shared/control_with_items.i: Ensure SWIG doesn''t generate wrappers for client data methods (Artur Kuptel)</title>
</head>
<body>
<div id="msg">
<dl>
<dt>Revision</dt> <dd>889</dd>
<dt>Author</dt> <dd>brokentoy</dd>
<dt>D...
2006 Nov 21
0
[744] trunk/wxruby2: get_data support & mem mgmt to all ControlWithItems types, using more
...><a href="#trunkwxruby2swigclassesComboBoxi">trunk/wxruby2/swig/classes/ComboBox.i</a></li>
<li><a href="#trunkwxruby2swigclassesListBoxi">trunk/wxruby2/swig/classes/ListBox.i</a></li>
<li><a href="#trunkwxruby2swigsharedcontrol_with_itemsi">trunk/wxruby2/swig/shared/control_with_items.i</a></li>
</ul>
<h3>Added Paths</h3>
<ul>
<li><a href="#trunkwxruby2teststest_item_datarb">trunk/wxruby2/tests/test_item_data.rb</a></li>
</ul>
</div>
<div...
2006 Nov 07
0
[722] trunk/wxruby2/swig: Wx::Choice fixes for get_client_data (AF)
...i</a></li>
<li><a href="#trunkwxruby2swigfixdeletingrb">trunk/wxruby2/swig/fixdeleting.rb</a></li>
</ul>
<h3>Added Paths</h3>
<ul>
<li>trunk/wxruby2/swig/shared/</li>
<li><a href="#trunkwxruby2swigsharedcontrol_with_itemsi">trunk/wxruby2/swig/shared/control_with_items.i</a></li>
</ul>
</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkwxruby2swigclassesChoicei"></a>
<div class="modfile"><h4>Modified: trunk/wxruby...
2007 Apr 02
0
[938] trunk/wxsugar/lib/wx_sugar/wx_classes: Enable enumerable_controls for ListCtrl and ControlWithItems family
...;2007-04-02 14:48:45 -0400 (Mon, 02 Apr 2007)</dd>
</dl>
<h3>Log Message</h3>
<pre>Enable enumerable_controls for ListCtrl and ControlWithItems family</pre>
<h3>Added Paths</h3>
<ul>
<li><a href="#trunkwxsugarlibwx_sugarwx_classescontrol_with_itemsrb">trunk/wxsugar/lib/wx_sugar/wx_classes/control_with_items.rb</a></li>
<li><a href="#trunkwxsugarlibwx_sugarwx_classeslistctrlrb">trunk/wxsugar/lib/wx_sugar/wx_classes/listctrl.rb</a></li>
</ul>
</div>
<div id="patch"...
2007 Sep 20
3
Bug? in wxSugar enumerable_controls.rb
Hi,
I wanted to use wxSugar enumerable features to add a method for
returning checked items'' index to the CheckListBox class :
require ''wx_sugar/version''
require ''wx_sugar/wx_classes/control_with_items''
require ''wx_sugar/wx_classes/listctrl''
class Wx::CheckListBox
def checked_items
# use of find_all method from Enumerable
items_index = find_all { |i| checked?(i) }
end
end
The problem I had is that checked_items raises an exception.
In fact, the find_al...
2007 Apr 02
0
[937] trunk/wxsugar/lib/wx_sugar/enumerable_controls.rb: Initial commit of enumerable_controls.rb
...and
+# Wx::ListBox. This module allows easy iteration over the contents of
+# these object using Ruby''s +each+ and Enumerable methods.
+#
+# Note that including this file on its own won''t enable this behaviour
+# for any classes; you should load it via the class extensions for
+# +control_with_items.rb+ and +listctrl.rb+.
+module WxSugar::EnumerableControl
+ include Enumerable
+ module ClassMethods
+ # Used internally to define a proxy object for items.
+ def collection(name, coll_class)
+ define_method(name) { coll_class.new(self) }
+ end
+ end
+
+ def self.included(klass)...