X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b22bb1a015c4cc734e55bdfcebabc99da24e185e..4ee4c7b948e76377a6947d3ffbe5099870d0c3e9:/src/common/valgen.cpp?ds=sidebyside diff --git a/src/common/valgen.cpp b/src/common/valgen.cpp index 1266e49a90..47f6f230d6 100644 --- a/src/common/valgen.cpp +++ b/src/common/valgen.cpp @@ -146,7 +146,7 @@ bool wxGenericValidator::TransferToWindow(void) return true; } } else -#if (defined(__WXMAC__) || defined(__WXGTK20__)) && !defined(__WXUNIVERSAL__) +#if (defined(__WXMAC__) || defined(__WXMSW__) || defined(__WXGTK20__)) && !defined(__WXUNIVERSAL__) if (m_validatorWindow->IsKindOf(CLASSINFO(wxBitmapToggleButton)) ) { wxBitmapToggleButton * pControl = (wxBitmapToggleButton *) m_validatorWindow; @@ -416,6 +416,17 @@ bool wxGenericValidator::TransferFromWindow(void) return true; } } else +#if (defined(__WXMAC__) || defined(__WXMSW__) || defined(__WXGTK20__)) && !defined(__WXUNIVERSAL__) + if (m_validatorWindow->IsKindOf(CLASSINFO(wxBitmapToggleButton)) ) + { + wxBitmapToggleButton *pControl = (wxBitmapToggleButton *) m_validatorWindow; + if (m_pBool) + { + *m_pBool = pControl->GetValue() ; + return true; + } + } else +#endif #endif // INT CONTROLS ***************************************