}
}
else
- wxLogError(wxT("Error in resource."));
+ {
+ ReportError(n, "propertysheetpage child must be a window");
+ }
return wnd;
}
else
{
- wxLogError(wxT("Error in resource: no control within wxPropertySheetDialog's <page> tag."));
+ ReportError("propertysheetpage must have a window child");
return NULL;
}
}
GetStyle(),
GetName());
- if (HasParam(wxT("icon"))) dlg->SetIcon(GetIcon(wxT("icon"), wxART_FRAME_ICON));
+ if (HasParam(wxT("icon")))
+ dlg->SetIcons(GetIconBundle(wxT("icon"), wxART_FRAME_ICON));
SetupWindow(dlg);