]> git.saurik.com Git - wxWidgets.git/blobdiff - src/xrc/xh_tglbtn.cpp
Also update focus rect when changing selection in single selection mode, fixes #11332
[wxWidgets.git] / src / xrc / xh_tglbtn.cpp
index 91f433d8a9cbd5c1afc4be21f8de1c8acc872b49..174252ae28b04096310ca25708f4ebbfe036a5e7 100644 (file)
 
 #include "wx/xrc/xh_tglbtn.h"
 #include "wx/tglbtn.h"
+#include "wx/button.h" // solely for wxBU_EXACTFIT
 
 IMPLEMENT_DYNAMIC_CLASS(wxToggleButtonXmlHandler, wxXmlResourceHandler)
 
 wxToggleButtonXmlHandler::wxToggleButtonXmlHandler()
-: wxXmlResourceHandler()
+    : wxXmlResourceHandler()
 {
+    XRC_ADD_STYLE(wxBU_EXACTFIT);
+
     AddWindowStyles();
 }