use wxTE_PROCESS_{ENTER,TAB} with the wxGridCellChoiceEditor combobox (slightly modified patch 1906581)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@52529 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2008-03-15 02:24:12 +00:00
parent ac6704fa9b
commit 78de549990

View File

@@ -1502,10 +1502,17 @@ void wxGridCellChoiceEditor::Create(wxWindow* parent,
wxWindowID id,
wxEvtHandler* evtHandler)
{
int style = wxTE_PROCESS_ENTER |
wxTE_PROCESS_TAB |
wxBORDER_NONE;
if ( !m_allowOthers )
style |= wxCB_READONLY;
m_control = new wxComboBox(parent, id, wxEmptyString,
wxDefaultPosition, wxDefaultSize,
m_choices,
m_allowOthers ? 0 : wxCB_READONLY);
style);
wxGridCellEditor::Create(parent, id, evtHandler);
}