also added a check of choice selection in idle time (similar to last check in for combobox)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35210 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2005-08-17 13:13:42 +00:00
parent 644e896d3f
commit d6bbc10c94

View File

@@ -1068,6 +1068,19 @@ void MyPanel::OnIdle(wxIdleEvent& event)
s_selCombo = sel;
}
static int s_selChoice = INVALID_SELECTION;
sel = m_choice->GetSelection();
if ( sel != s_selChoice )
{
if ( s_selChoice != INVALID_SELECTION )
{
wxLogMessage(_T("EVT_IDLE: choice selection changed from %d to %d"),
s_selChoice, sel);
}
s_selChoice = sel;
}
event.Skip();
}