}
else
{
- wxLogError(wxT("Error in resource: no control within collapsible pane's <panewindow> tag."));
+ ReportError("no control within panewindow");
return NULL;
}
}
wxString label = GetParamValue(wxT("label"));
if (label.empty())
{
- wxLogError(wxT("Error in resource: empty label for wxCollapsiblePane"));
+ ReportParamError("label", "label cannot be empty");
return NULL;
}
GetID(),
label,
GetPosition(), GetSize(),
- GetStyle(_T("style"), wxCP_DEFAULT_STYLE),
+ GetStyle(wxT("style"), wxCP_DEFAULT_STYLE),
wxDefaultValidator,
GetName());
- ctrl->Collapse(GetBool(_T("collapsed")));
+ ctrl->Collapse(GetBool(wxT("collapsed")));
SetupWindow(ctrl);
wxCollapsiblePane *old_par = m_collpane;