}
if ( !dnode )
- dest.AddChild(new wxXmlNode(*node));
+ {
+ static const wxChar *AT_END = wxT("end");
+ wxString insert_pos = node->GetPropVal(wxT("insert_at"), AT_END);
+ if ( insert_pos == AT_END )
+ {
+ dest.AddChild(new wxXmlNode(*node));
+ }
+ else if ( insert_pos == wxT("begin") )
+ {
+ dest.InsertChild(new wxXmlNode(*node), dest.GetChildren());
+ }
+ }
}
if ( dest.GetType() == wxXML_TEXT_NODE && with.GetContent().Length() )
wxImage img(*(fsfile->GetStream()));
delete fsfile;
#else
- wxImage img(GetParamValue(wxT("bitmap")));
+ wxImage img(name);
#endif
if (!img.Ok())
{
wxLogError(_("XRC resource: Cannot create bitmap from '%s'."),
- param.c_str());
+ name.c_str());
return wxNullBitmap;
}
if (!(size == wxDefaultSize)) img.Rescale(size.x, size.y);
-#if !defined(__WXMSW__) || wxUSE_WXDIB
return wxBitmap(img);
-#else
- return wxBitmap();
-#endif
}