search for: enumerable_control

Displaying 8 results from an estimated 8 matches for "enumerable_control".

Did you mean: enumerable_controls
2007 Apr 02
0
[937] trunk/wxsugar/lib/wx_sugar/enumerable_controls.rb: Initial commit of enumerable_controls.rb
...#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>[937] trunk/wxsugar/lib/wx_sugar/enumerable_controls.rb: Initial commit of enumerable_controls.rb</title> </head> <body> <div id="msg"> <dl> <dt>Revision</dt> <dd>937</dd> <dt>Author</dt> <dd>brokentoy</dd> <dt>Date</dt> <dd>2007-04-02 14:47:50...
2007 Apr 02
0
[938] trunk/wxsugar/lib/wx_sugar/wx_classes: Enable enumerable_controls for ListCtrl and ControlWithItems family
...;} #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>[938] trunk/wxsugar/lib/wx_sugar/wx_classes: Enable enumerable_controls for ListCtrl and ControlWithItems family</title> </head> <body> <div id="msg"> <dl> <dt>Revision</dt> <dd>938</dd> <dt>Author</dt> <dd>brokentoy</dd> <dt>Date</dt> <dd>2007-04-02 14:48:45 -04...
2007 Apr 03
0
[943] trunk/wxsugar/lib/wx_sugar/enumerable_controls.rb: Fix bug with false positives from #find_string, bounds-checking for
...#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>[943] trunk/wxsugar/lib/wx_sugar/enumerable_controls.rb: Fix bug with false positives from #find_string, bounds-checking for</title> </head> <body> <div id="msg"> <dl> <dt>Revision</dt> <dd>943</dd> <dt>Author</dt> <dd>brokentoy</dd> <dt>Date</dt> &l...
2007 Apr 03
0
[946] trunk/wxsugar/samples/sugar-sample.rb: Illustrate enumerable_controls and has_style
...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>[946] trunk/wxsugar/samples/sugar-sample.rb: Illustrate enumerable_controls and has_style</title> </head> <body> <div id="msg"> <dl> <dt>Revision</dt> <dd>946</dd> <dt>Author</dt> <dd>brokentoy</dd> <dt>Date</dt> <dd>2007-04-03 16:12:40 -0400 (Tue, 03 Apr 2007)</d...
2007 Apr 03
0
[945] trunk/wxsugar/lib/wx_sugar.rb: Add note about enumerable_controls, reorder list of extensions
...;} #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>[945] trunk/wxsugar/lib/wx_sugar.rb: Add note about enumerable_controls, reorder list of extensions</title> </head> <body> <div id="msg"> <dl> <dt>Revision</dt> <dd>945</dd> <dt>Author</dt> <dd>brokentoy</dd> <dt>Date</dt> <dd>2007-04-03 14:55:48 -0400 (Tue, 03 A...
2007 Apr 02
0
[940] trunk/wxsugar/lib/wx_sugar/wx_classes/treectrl.rb: Align #traverse usage with #each in enumerable_controls.rb
...ation: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>[940] trunk/wxsugar/lib/wx_sugar/wx_classes/treectrl.rb: Align #traverse usage with #each in enumerable_controls.rb</title> </head> <body> <div id="msg"> <dl> <dt>Revision</dt> <dd>940</dd> <dt>Author</dt> <dd>brokentoy</dd> <dt>Date</dt> <dd>2007-04-02 15:13:44 -0400 (Mon, 02 Apr 2007)</dd> </...
2007 Sep 20
3
Bug? in wxSugar enumerable_controls.rb
...lass 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_all method uses the each method defined in ''wx_sugar/wx_classes/enumerable_controls.rb'' as following : def each(&block) last = get_count - 1 case block.arity when 1 0.upto(last) { | i | yield i } when 2 0.upto(last) { | i | yield i, get_string(i) } when 3 0.upto(last) { | i | yield i, get_string(i), get_item_data(i) } else...
2007 Apr 03
1
wxSugar 0.1.15 released
Hi WxSugar 0.1.15 is now available via gems and download from rubyforge. This is a minor feature release which adds a couple of new facilities: * enumerable_controls: treats ListCtrl and ControlWithItems classes, such as ComboBox, ListBox, CheckListBox as Ruby enumerables * adds Window#has_style? The former is meant to give much more rubyish access to the contents of GUI controls which present the user with a list of item to choose from: # basic iteration...