Set focus to the main grid window in wxGrid::SetFocus()

After changing wxGrid to not inherit from wxPanel, this needs to be done
explicitly now.
This commit is contained in:
Vadim Zeitlin
2019-10-18 03:57:22 +02:00
parent 38247f596c
commit b4dee76b4c
2 changed files with 6 additions and 0 deletions

View File

@@ -1948,6 +1948,7 @@ public:
// override some base class functions
virtual void Fit() wxOVERRIDE;
virtual void SetFocus() wxOVERRIDE;
// implementation only
void CancelMouseCapture();

View File

@@ -9659,6 +9659,11 @@ void wxGrid::Fit()
AutoSize();
}
void wxGrid::SetFocus()
{
m_gridWin->SetFocus();
}
#if WXWIN_COMPATIBILITY_2_8
wxPen& wxGrid::GetDividerPen() const
{