]> git.saurik.com Git - wxWidgets.git/commitdiff
also added a check of choice selection in idle time (similar to last check in for...
authorVadim Zeitlin <vadim@wxwidgets.org>
Wed, 17 Aug 2005 13:13:42 +0000 (13:13 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Wed, 17 Aug 2005 13:13:42 +0000 (13:13 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35210 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

samples/controls/controls.cpp

index 1e747125162b406e66803ce6d7b3159f5a871374..b113708fdb13359f7067379a580f22a1ab7d4286 100644 (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();
 }