Displaying 9 results from an estimated 9 matches for "find_window_by_nam".
Did you mean:
find_window_by_name
2006 Dec 02
7
Gauge Problem with XRC?
...e Gauge objects in the
main script. What I''ve been trying is something like this:
class MainFrame < Wx::Frame
include Wx
def initialize(parent)
super(nil,-1, "")
$xml.load_frame_subclass(self, nil, ''ID_MAINFRAME'')
@statliclabel = Window.find_window_by_name(''ID_SLABEL1'') #OK
@gauge = Window.find_window_by_name(''ID_GAUGE1'') #NG
...
Hope someone can give me a hint, or is this a bug?
Regards,
yohasebe
2004 Oct 06
11
find_window_by_xxx doesn''t find Gauge or BitmapButton
...test_frame")
# Attempt to get the gauge from the XRC data by ID.
id = Wx::xrcid("test_gauge") # Returns the ID, no problem
gauge = Wx::Window.find_window_by_id(id, self) # Returns nil
Attempting to get the gauge by name has the same result:
gauge = Wx::Window.find_window_by_name("test_gauge", self) #
Returns nil
I''m successfully retrieving StaticText, TextCtrl, and Button controls,
but the Gauge has been really giving me grief. The BitmapButton
control exhibits the same behavior.
Is this a known issue with wxWidgets and/or wxRuby, or is it a prob...
2006 Jul 24
1
small Window.i patch
Hi
Attached a small patch to Window.i which prevents it crashing when
find_window_by_name, find_window_by_id or find_window_by_label should
return nil.
This fixes this bug (which I think was originally posted to wxruby 0.6.0)
http://rubyforge.org/tracker/index.php?func=detail&aid=634&group_id=35&atid=218
cheers
alex
_______________________________________________
wxru...
2004 Jun 04
7
I''m ready to build 0.4.0 for Windows
Let me know when you''ve got the cvs repo labeled -- I''m already to go to
build the 0.4.0 installer for Windows.
Curt
2006 Dec 23
0
[794] trunk/wxruby2: Fix get_ruby_object so it works with SWIG tracking, move find_window_xx
...nteger.
+ def find_window_by_id(an_id)
+ Wx::Window.find_window_by_id(an_id, self)
+ end
+
+ # Searches all windows below +self+ and returns the first window which
+ # has the name +a_name+ This corresponds to the find_window method method
+ # in WxWidgets when called with an string.
+ def find_window_by_name(a_name)
+ Wx::Window.find_window_by_name(a_name, self)
+ end
+
+ # Searches all windows below +self+ and returns the first window which
+ # has the label +a_label+.
+ def find_window_by_label(a_label)
+ Wx:Window.find_window_by_label(a_label, self)
+ end
</ins><span class="...
2007 Mar 21
4
Bug in TextCtrl constructor
...my_name")
=> #<Wx::TextCtrl:0x2e7a188>
irb(main):003:0> puts ctl.get_name
=> nil
# That should have printed "my_name"
# -----
It''s not a show-stopper, though, as you can just assign to ctl.name.
This bug shows up when you are trying to do
<Wx::Window>.find_window_by_name() and searching for a specific
control
Cheers
--
-Phil <><
2007 Apr 16
0
[969] branches/wxruby2/wxwidgets_282/doc/textile/window.txtl: Cleanup and fixing of broken links.
...ot;> Find the first window with the given _id_.
</span><span class="cx">
</span><span class="lines">@@ -619,8 +619,7 @@
</span><span class="cx">
</span><span class="cx"> h3(#Window_findwindowbyname). Window#find_window_by_name
</span><span class="cx">
</span><del>- "Window":window.html *find_window_by_name*(%(arg-type)String% name,
- %(arg-type)Window% parent = nil)
</del><ins>+ "Window":window.html *find_window_by_name*(%(a...
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 30
0
[997] branches/wxruby2/wxwidgets_282: Window - 2.6 -> 2.8 API, new methods and deprecations; update doc
...find_window":#Window_findwindow
</span><span class="cx"> * "Window#find_window_by_id":#Window_findwindowbyid
</span><ins>+* "Window#find_window_by_label":#Window_findwindowbylabel
</ins><span class="cx"> * "Window#find_window_by_name":#Window_findwindowbyname
</span><del>-* "Window#find_window_by_label":#Window_findwindowbylabel
</del><span class="cx"> * "Window#fit":#Window_fit
</span><span class="cx"> * "Window#fit_inside":#Window_fiti...