// Purpose: XRC resource handler for wxPropertySheetDialog
// Author: Sander Berents
// Created: 2007/07/12
-// RCS-ID: $Id$
// Copyright: (c) 2007 Sander Berents
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
}
}
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);