From 61a9bd42022ae0e8ce8dd0e2ab84e9659fbc2c1e Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Fri, 20 Mar 2009 09:29:23 +0000 Subject: [PATCH] add wxBU_EXACTFIT support to wxToggleButton XRC handler (closes #10228) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59639 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/xrc/xh_tglbtn.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/xrc/xh_tglbtn.cpp b/src/xrc/xh_tglbtn.cpp index 91f433d8a9..c5f0b559e7 100644 --- a/src/xrc/xh_tglbtn.cpp +++ b/src/xrc/xh_tglbtn.cpp @@ -23,8 +23,10 @@ IMPLEMENT_DYNAMIC_CLASS(wxToggleButtonXmlHandler, wxXmlResourceHandler) wxToggleButtonXmlHandler::wxToggleButtonXmlHandler() -: wxXmlResourceHandler() + : wxXmlResourceHandler() { + XRC_ADD_STYLE(wxBU_EXACTFIT); + AddWindowStyles(); } -- 2.45.2