added enabled and hidden attributes to radio box items in XRC
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54929 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1031,13 +1031,17 @@ wxString wxXmlResourceHandler::GetName()
|
||||
|
||||
|
||||
|
||||
bool wxXmlResourceHandler::GetBoolAttr(const wxString& attr, bool defaultv)
|
||||
{
|
||||
wxString v;
|
||||
return m_node->GetAttribute(attr, &v) ? v == '1' : defaultv;
|
||||
}
|
||||
|
||||
bool wxXmlResourceHandler::GetBool(const wxString& param, bool defaultv)
|
||||
{
|
||||
wxString v = GetParamValue(param);
|
||||
v.MakeLower();
|
||||
if (!v) return defaultv;
|
||||
const wxString v = GetParamValue(param);
|
||||
|
||||
return (v == wxT("1"));
|
||||
return v.empty() ? defaultv : (v == '1');
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user