Use wxWindow as a control for wxGridCellEditor

Use wxWindow instead of wxControl in wxGridCellEditor to allow using
any window as an editor control, as it doesn't need to be a wxControl.

Closes https://github.com/wxWidgets/wxWidgets/pull/1370
This commit is contained in:
Ilya Sinitsyn
2019-06-28 15:04:41 +07:00
committed by Vadim Zeitlin
parent ea68934b8e
commit feacaf8714
3 changed files with 73 additions and 11 deletions

View File

@@ -9333,13 +9333,13 @@ wxIMPLEMENT_DYNAMIC_CLASS(wxGridEditorCreatedEvent, wxCommandEvent);
wxGridEditorCreatedEvent::wxGridEditorCreatedEvent(int id, wxEventType type,
wxObject* obj, int row,
int col, wxControl* ctrl)
int col, wxWindow* window)
: wxCommandEvent(type, id)
{
SetEventObject(obj);
m_row = row;
m_col = col;
m_ctrl = ctrl;
m_window = window;
}