protected:
void OnChar( wxKeyEvent& event )
{
- if ( event.KeyCode() == WXK_RETURN )
+ if ( event.GetKeyCode() == WXK_RETURN )
{
wxString value = GetValue();
void wxComboBox::Delete(int n)
{
+ if ( HasClientObjectData() )
+ {
+ SetClientObject(n, NULL);
+ }
m_choice->Delete( n );
}
return FALSE;
}
-void wxComboBox::MacHandleControlClick( WXWidget control , wxInt16 controlpart )
+void wxComboBox::MacHandleControlClick( WXWidget WXUNUSED(control) , wxInt16 WXUNUSED(controlpart) )
{
wxCommandEvent event(wxEVT_COMMAND_COMBOBOX_SELECTED, m_windowId );
event.SetInt(GetSelection());