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:
@@ -1515,12 +1515,16 @@ void wxGridCellChoiceEditor::Create(wxWindow* parent,
|
|||||||
wxWindowID id,
|
wxWindowID id,
|
||||||
wxEvtHandler* evtHandler)
|
wxEvtHandler* evtHandler)
|
||||||
{
|
{
|
||||||
int style = wxBORDER_NONE;
|
int style = wxTE_PROCESS_ENTER |
|
||||||
|
wxTE_PROCESS_TAB |
|
||||||
|
wxBORDER_NONE;
|
||||||
|
|
||||||
if ( !m_allowOthers )
|
if ( !m_allowOthers )
|
||||||
style |= wxCB_READONLY;
|
style |= wxCB_READONLY;
|
||||||
m_control = new wxComboBox(parent, id, wxEmptyString,
|
m_control = new wxComboBox(parent, id, wxEmptyString,
|
||||||
wxDefaultPosition, wxDefaultSize,
|
wxDefaultPosition, wxDefaultSize,
|
||||||
m_choices, style );
|
m_choices,
|
||||||
|
style);
|
||||||
|
|
||||||
wxGridCellEditor::Create(parent, id, evtHandler);
|
wxGridCellEditor::Create(parent, id, evtHandler);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user