Stop deriving wxGrid from wxPanel

This is unnecessary as TAB navigation is not supposed to work between
wxGrid children and actually harmful as this resulted in SetFocus()
doing nothing, instead of setting focus to wxGridWindow, if the focus
was on wxGrid itself for some reason (this happened at least in the grid
unit tests and resulted in failures because the in-place editor didn't
appear as expected).
This commit is contained in:
Vadim Zeitlin
2019-10-18 01:37:11 +02:00
parent 8ed116bdc6
commit 9a424602e4
2 changed files with 9 additions and 9 deletions

View File

@@ -946,7 +946,7 @@ struct WXDLLIMPEXP_CORE wxGridSizesInfo
// wxGrid
// ----------------------------------------------------------------------------
class WXDLLIMPEXP_CORE wxGrid : public wxScrolledWindow
class WXDLLIMPEXP_CORE wxGrid : public wxScrolledCanvas
{
public:
// possible selection modes
@@ -2287,7 +2287,7 @@ protected:
private:
// implement wxScrolledWindow method to return m_gridWin size
// implement wxScrolledCanvas method to return m_gridWin size
virtual wxSize GetSizeAvailableForScrollTarget(const wxSize& size) wxOVERRIDE;
// depending on the values of m_numFrozenRows and m_numFrozenCols, it will