]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/valgen.cpp
fixed unused parameter warning
[wxWidgets.git] / src / common / valgen.cpp
index 4b05f6d4f29d1ea31c7dd7f1e0dd94122ea8a651..d9de2dea7b8579014bae031bdf8d893dca20968c 100644 (file)
@@ -121,6 +121,7 @@ bool wxGenericValidator::TransferToWindow(void)
         }
     } else
 #endif
+
 #if wxUSE_TOGGLEBTN
     if (m_validatorWindow->IsKindOf(CLASSINFO(wxToggleButton)) )
     {
@@ -131,6 +132,17 @@ bool wxGenericValidator::TransferToWindow(void)
             return true;
         }
     } else
+#if defined(__WXMAC__) || defined(__WXGTK20__)
+    if (m_validatorWindow->IsKindOf(CLASSINFO(wxBitmapToggleButton)) )
+    {
+        wxBitmapToggleButton * pControl = (wxBitmapToggleButton *) m_validatorWindow;
+        if (m_pBool)
+        {
+            pControl->SetValue(*m_pBool);
+            return true;
+        }
+    } else
+#endif
 #endif
 
     // int controls