Displaying 5 results from an estimated 5 matches for "get_item_count".
Did you mean:
set_item_count
2007 Apr 03
0
[942] trunk/wxsugar/lib/wx_sugar/wx_classes/listctrl.rb: Implement find_string method cognate with ControlWithItems
...gt; collection :data, ItemDataCollection
</span><span class="cx">
</span><span class="cx"> alias :get_string :get_item_text
</span><span class="cx"> alias :set_string :set_item_text
</span><ins>+ alias :get_count :get_item_count
</ins><span class="cx">
</span><ins>+ # Appends
</ins><span class="cx"> def <<(str)
</span><span class="cx"> insert_item(get_item_count, str)
</span><span class="cx"> end
</span&g...
2007 Apr 03
0
[944] trunk/wxsugar/lib/wx_sugar/wx_classes/listctrl.rb: Fix bug with endless recursion on not-found items in find_string
...(rev 943)
+++ trunk/wxsugar/lib/wx_sugar/wx_classes/listctrl.rb        2007-04-03 18:54:48 UTC (rev 944)
</span><span class="lines">@@ -14,7 +14,8 @@
</span><span class="cx"> insert_item(get_item_count, str)
</span><span class="cx"> end
</span><span class="cx">
</span><del>- # Emulate the ControlWithItems find_string method.
</del><ins>+ # Emulate the ControlWithItems find_string method. Like the cognate
+ # method, it retu...
2007 Apr 02
0
[938] trunk/wxsugar/lib/wx_sugar/wx_classes: Enable enumerable_controls for ListCtrl and ControlWithItems family
...'wx_sugar/enumerable_controls''
+
+class Wx::ListCtrl
+ include WxSugar::EnumerableControl
+ collection :strings, StringsCollection
+ collection :data, ItemDataCollection
+
+ alias :get_string :get_item_text
+ alias :set_string :set_item_text
+
+ def <<(str)
+ insert_item(get_item_count, str)
+ end
+end
</ins></span></pre>
</div>
</div>
</body>
</html>
2007 Apr 03
0
[943] trunk/wxsugar/lib/wx_sugar/enumerable_controls.rb: Fix bug with false positives from #find_string, bounds-checking for
...| yield cwi.get_item_text(i) }
+ end
+
+ # Retrieves the string for item +i+
+ def [](i)
+ super :get_item_text, i
+ end
+
+ # Sets a string within the control
+ def []=(i, str)
+ super :set_item_text, i, str
+ end
+
+ def index?(i)
+ i >= 0 and i < cwi.get_item_count
+ end
+ end
</ins><span class="cx"> end
</span></span></pre>
</div>
</div>
</body>
</html>
2003 Nov 07
6
DnD
Hi!
Is drag''n''drop works currently under wxruby?
I want an app, where you can drag files from a wxlistctrl to a
wxtreectrl.
Can anyone show a little example?
Gergo
--
+-[ Kontra, Gergely<kgergely@mcl.hu> PhD student Room IB113 ]---------+
| http://www.mcl.hu/~kgergely "Olyan langesz vagyok, hogy |
| Mobil:(+36 20) 356 9656 ICQ: 175564914 poroltoval