]> git.saurik.com Git - wxWidgets.git/blobdiff - src/xrc/xh_radbx.cpp
got rid of wxEvtHandler::m_isWindow, use virtual functions (overridden in wxWindow...
[wxWidgets.git] / src / xrc / xh_radbx.cpp
index 6ba0e86182b098520cde51ab9127139826e7c7e7..0bff4dda51b134eabe0cc98880e1cf87003888a0 100644 (file)
@@ -25,6 +25,8 @@
 
 #if wxUSE_RADIOBOX
 
+IMPLEMENT_DYNAMIC_CLASS(wxRadioBoxXmlHandler, wxXmlResourceHandler)
+
 wxRadioBoxXmlHandler::wxRadioBoxXmlHandler() 
 : wxXmlResourceHandler(), m_insideBox(FALSE)
 {
@@ -84,7 +86,10 @@ wxObject *wxRadioBoxXmlHandler::DoCreateResource()
         // handle <item selected="boolean">Label</item>
 
         // add to the list
-        strList.Add(wxGetTranslation(GetNodeContent(m_node)));
+        wxString str = GetNodeContent(m_node);
+        if (m_resource->GetFlags() & wxXRC_USE_LOCALE)
+            str = wxGetTranslation(str);
+        strList.Add(str);
 
         return NULL;
     }