]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mac/classic/listbox.cpp
Don't call StartingKey if the key was F2
[wxWidgets.git] / src / mac / classic / listbox.cpp
index 44b2948d33dd70271c76035d82d92de12945febe..e68a7f9b7291f01088f0b195fc4d61b241fe3713 100644 (file)
@@ -515,7 +515,7 @@ void wxListBox::Clear()
     MacClear() ;
 }
 
-void wxListBox::SetSelection(int N, bool select)
+void wxListBox::DoSetSelection(int N, bool select)
 {
     wxCHECK_RET( N >= 0 && N < m_noItems,
         wxT("invalid index in wxListBox::SetSelection") );
@@ -909,7 +909,7 @@ void wxListBox::MacDoClick()
         n = -1;
     }
     
-    event.m_commandInt = n;
+    event.SetInt(n);
     
     GetEventHandler()->ProcessEvent(event);
 }
@@ -990,7 +990,7 @@ void wxListBox::OnChar(wxKeyEvent& event)
             n = -1;
         }
         
-        event.m_commandInt = n;
+        event.SetInt(n);
         
         GetEventHandler()->ProcessEvent(event);
     }
@@ -1017,7 +1017,7 @@ void wxListBox::OnChar(wxKeyEvent& event)
                     event.SetClientData( GetClientData(line) );
                 event.SetString( GetString(line) );
                 
-                event.m_commandInt = line ;
+                event.SetInt(line);
                 
                 GetEventHandler()->ProcessEvent(event);
             }