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:
@@ -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();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user