Applied patch [ 846809 ] Cleaning of 11 samples

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24764 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
2003-12-11 11:25:46 +00:00
parent 623f5f7015
commit dacaa6f142
12 changed files with 46 additions and 38 deletions

View File

@@ -384,10 +384,12 @@ void RadioWidgetsPage::OnCheckOrRadioBox(wxCommandEvent& WXUNUSED(event))
void RadioWidgetsPage::OnRadioBox(wxCommandEvent& event)
{
int sel = m_radio->GetSelection();
int event_sel = event.GetSelection();
wxUnusedVar(event_sel);
wxLogMessage(_T("Radiobox selection changed, now %d"), sel);
wxASSERT_MSG( sel == event.GetSelection(),
wxASSERT_MSG( sel == event_sel,
_T("selection should be the same in event and radiobox") );
m_textCurSel->SetValue(wxString::Format(_T("%d"), sel));