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

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52529 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2008-03-15 02:24:12 +00:00
parent 55cd5d10cd
commit 7999b83011

View File

@@ -1515,12 +1515,16 @@ void wxGridCellChoiceEditor::Create(wxWindow* parent,
wxWindowID id,
wxEvtHandler* evtHandler)
{
int style = wxBORDER_NONE;
if (!m_allowOthers)
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, style );
m_choices,
style);
wxGridCellEditor::Create(parent, id, evtHandler);
}