// Purpose: XRC resource for wxCheckListBox
// Author: Bob Mitchell
// Created: 2000/03/21
-// RCS-ID: $Id$
// Copyright: (c) 2000 Bob Mitchell and Verant Interactive
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
#include "wx/checklst.h"
#endif
+#include "wx/xml/xml.h"
+
IMPLEMENT_DYNAMIC_CLASS(wxCheckListBoxXmlHandler, wxXmlResourceHandler)
wxCheckListBoxXmlHandler::wxCheckListBoxXmlHandler()
{ n = n->GetNext(); continue; }
// checking boolean is a bit ugly here (see GetBool() )
- wxString v = n->GetPropVal(wxT("checked"), wxEmptyString);
+ wxString v = n->GetAttribute(wxT("checked"), wxEmptyString);
v.MakeLower();
- if (v && v == wxT("1"))
+ if (v == wxT("1"))
control->Check( i, true );
i++;