]> git.saurik.com Git - wxWidgets.git/blobdiff - contrib/src/xrc/xh_bttn.cpp
disable the first top level parent, not the topmost top level parent
[wxWidgets.git] / contrib / src / xrc / xh_bttn.cpp
index ff2d4813d0e1c663f0684a031b11a217cbd10f3d..5ed5ee88db3dfd3f2cb4f39582fd2e97e0ac1778 100644 (file)
@@ -22,6 +22,7 @@
 #include "wx/xrc/xh_bttn.h"
 #include "wx/button.h"
 
+IMPLEMENT_DYNAMIC_CLASS(wxButtonXmlHandler, wxXmlResourceHandler)
 
 wxButtonXmlHandler::wxButtonXmlHandler() 
 : wxXmlResourceHandler() 
@@ -30,6 +31,7 @@ wxButtonXmlHandler::wxButtonXmlHandler()
     XRC_ADD_STYLE(wxBU_RIGHT);
     XRC_ADD_STYLE(wxBU_TOP);
     XRC_ADD_STYLE(wxBU_BOTTOM);
+    XRC_ADD_STYLE(wxBU_EXACTFIT);
     AddWindowStyles();
 }