Displaying 1 result from an estimated 1 matches for "test_gauge".
Did you mean:
test_game
2004 Oct 06
11
find_window_by_xxx doesn''t find Gauge or BitmapButton
...I have the
following code:
# Load XRC data.
xml = Wx::XmlResource.get()
xml.init_all_handlers()
xml.load("xrctest.xrc")
xml.load_frame_subclass(self, nil, "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 StaticTe...