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:
@@ -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
|
||||
|
Reference in New Issue
Block a user