X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/dd47af27e12ee66b3e9eed6f1711e516f36dc837..7d6a4d96961eac84d05db8bb24c64d39003f6e54:/src/xrc/xh_bttn.cpp?ds=sidebyside diff --git a/src/xrc/xh_bttn.cpp b/src/xrc/xh_bttn.cpp index d103e1ada3..7f2058cdd2 100644 --- a/src/xrc/xh_bttn.cpp +++ b/src/xrc/xh_bttn.cpp @@ -50,6 +50,13 @@ wxObject *wxButtonXmlHandler::DoCreateResource() if (GetBool(wxT("default"), 0)) button->SetDefault(); + + if ( GetParamNode("bitmap") ) + { + button->SetBitmap(GetBitmap("bitmap", wxART_BUTTON), + GetDirection("bitmapposition")); + } + SetupWindow(button); return button;