Document wxBitmapToggleButton, add update UI event in Base class for all toggle buttons

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50563 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robert Roebling
2007-12-08 10:36:59 +00:00
parent 7e325fb635
commit 10ff9c616e
9 changed files with 179 additions and 28 deletions

View 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