]> git.saurik.com Git - wxWidgets.git/blobdiff - src/xrc/xh_bttn.cpp
new file added
[wxWidgets.git] / src / xrc / xh_bttn.cpp
index d103e1ada3aab2872b7c645433359bb950a14935..7f2058cdd24f1646446c8bdf243e379e815f8189 100644 (file)
@@ -50,6 +50,13 @@ wxObject *wxButtonXmlHandler::DoCreateResource()
 
     if (GetBool(wxT("default"), 0))
         button->SetDefault();
 
     if (GetBool(wxT("default"), 0))
         button->SetDefault();
+
+    if ( GetParamNode("bitmap") )
+    {
+        button->SetBitmap(GetBitmap("bitmap", wxART_BUTTON),
+                          GetDirection("bitmapposition"));
+    }
+
     SetupWindow(button);
 
     return button;
     SetupWindow(button);
 
     return button;