Displaying 8 results from an estimated 8 matches for "find_string".
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
...y: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>[944] trunk/wxsugar/lib/wx_sugar/wx_classes/listctrl.rb: Fix bug with endless recursion on not-found items in find_string</title>
</head>
<body>
<div id="msg">
<dl>
<dt>Revision</dt> <dd>944</dd>
<dt>Author</dt> <dd>brokentoy</dd>
<dt>Date</dt> <dd>2007-04-03 14:54:48 -0400 (Tue, 03 Apr 2007)</dd>
</dl&g...
2007 Apr 03
0
[942] trunk/wxsugar/lib/wx_sugar/wx_classes/listctrl.rb: Implement find_string method cognate with ControlWithItems
...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>[942] trunk/wxsugar/lib/wx_sugar/wx_classes/listctrl.rb: Implement find_string method cognate with ControlWithItems</title>
</head>
<body>
<div id="msg">
<dl>
<dt>Revision</dt> <dd>942</dd>
<dt>Author</dt> <dd>brokentoy</dd>
<dt>Date</dt> <dd>2007-04-03 14:45:26 -0400 (T...
2007 Apr 03
0
[943] trunk/wxsugar/lib/wx_sugar/enumerable_controls.rb: Fix bug with false positives from #find_string, bounds-checking for
...ration: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> <dd>2007-04-03 14:46:45 -0400 (Tue, 03 Apr 2007)...
2006 Dec 18
13
unit testing wxruby GUIs
paul.allton at uk.bnpparibas.com wrote:
> I''m a big fan of automated UI testing (i.e. driving the UI from some
robot API). I appreciate this
> is potentially a whole new project, but does wxwidgets provide a
method of clicking buttons,
> typing into components ... if so, would it be technically possible to
expose this in wxruby.
I like automated UI testing too, but
2007 Apr 02
0
[937] trunk/wxsugar/lib/wx_sugar/enumerable_controls.rb: Initial commit of enumerable_controls.rb
...s"
+ end
+ end
+
+ # Returns the index of the item in the control corresponding to
+ # +value+. +value+ may be a string label, or it may be any ruby object
+ # set as client data to a list item. Returns +nil+ if nothing matches.
+ def index(value)
+ if value.kind_of?(String) and i = find_string(value)
+ return i
+ end
+ indices = (0 ... get_count).to_a
+ return indices.find { | i | get_item_data(i) == value }
+ end
+
+ # Appends this string to the control
+ def <<(str)
+ append(str)
+ end
+
+ # Deletes any items in the control for which the passed block
+ # ev...
2006 Dec 01
0
[766] trunk/wxruby2: Added item_data aliases for client_data functions, update doc & tests;
...+32,8 @@
</span><span class="cx"> * "ControlWithItems#clear":#ControlWithItems_clear
</span><span class="cx"> * "ControlWithItems#delete":#ControlWithItems_delete
</span><span class="cx"> * "ControlWithItems#find_string":#ControlWithItems_findstring
</span><del>-* "ControlWithItems#get_client_data":#ControlWithItems_getclientdata
-* "ControlWithItems#get_client_object":#ControlWithItems_getclientobject
</del><span class="cx"> * "ControlWithItems#get_c...
2007 Apr 14
0
[965] branches/wxruby2/wxwidgets_282/doc/textile: Misc.
...t;/span><del>-"Clear":controlwithitemsclear.html
</del><ins>+"clear":controlwithitems.html#ControlWithItems_clear
</ins><span class="cx">
</span><span class="cx"> h3(#ControlWithItems_findstring). ControlWithItems#find_string
</span><span class="cx">
</span><span class="lines">@@ -206,14 +206,14 @@
</span><span class="cx">
</span><span class="cx"> h3(#ControlWithItems_insert). ControlWithItems#insert
</span><span class=&qu...
2012 Mar 15
6
Error running apps from network share
...3b-9f5539da4c0a} 0x33f88c
fixme:actctx:FindActCtxSectionGuid 00000001 (null) 4 {cacaf262-9370-4615-a13b-9f5539da4c0a} 0x33f1fc
err:menubuilder:convert_to_native_icon error 0x80070078 creating IWICImagingFactory
fixme:reg:RegOpenUserClassesRoot (0x78, 0x0, 0x2000000, 0x32f69c) semi-stub
fixme:actctx:find_string Unsupported yet section_kind 7
fixme:reg:RegOpenUserClassesRoot (0x90, 0x0, 0x2000000, 0x32f434) semi-stub
fixme:actctx:FindActCtxSectionGuid 00000001 (null) 4 {cacaf262-9370-4615-a13b-9f5539da4c0a} 0x33f8e0
fixme:actctx:FindActCtxSectionGuid 00000001 (null) 4 {cacaf262-9370-4615-a13b-9f5539da4c0a}...