From 7b5783e4f862114c69c2799b5a29b5776d02f99d Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sat, 14 Aug 2021 01:07:29 +0200 Subject: [PATCH] Restore accidentally removed EVT_GRID_CMD_RANGE_SELECT macro This was removed in 415f080c80 (Split wxGrid RANGE_SELECT event into SELECTING and SELECTED, 2020-07-27) without preserving it for compatibility. Do define it now, just as it was done for the non-CMD equivalent of this macro EVT_GRID_RANGE_SELECT. Also update the documentation to fix a typo from e2f316b19d (Mention that wxEVT_GRID_RANGE_SELECT{ED,ING} are new in 3.1.5, 2020-08-18). --- include/wx/generic/grid.h | 1 + interface/wx/grid.h | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/include/wx/generic/grid.h b/include/wx/generic/grid.h index d92ad689f4..7441ef7a73 100644 --- a/include/wx/generic/grid.h +++ b/include/wx/generic/grid.h @@ -3525,6 +3525,7 @@ typedef void (wxEvtHandler::*wxGridEditorCreatedEventFunction)(wxGridEditorCreat #if WXWIN_COMPATIBILITY_3_0 #define wxEVT_GRID_RANGE_SELECT wxEVT_GRID_RANGE_SELECTED + #define EVT_GRID_CMD_RANGE_SELECT EVT_GRID_CMD_RANGE_SELECTED #define EVT_GRID_RANGE_SELECT EVT_GRID_RANGE_SELECTED #endif // WXWIN_COMPATIBILITY_3_0 diff --git a/interface/wx/grid.h b/interface/wx/grid.h index c3377cee48..c106ba7ae2 100644 --- a/interface/wx/grid.h +++ b/interface/wx/grid.h @@ -6398,7 +6398,7 @@ public: The user selected a group of contiguous cells; variant taking a window identifier. Processes a @c wxEVT_GRID_RANGE_SELECTED event type. This event is available in wxWidgets 3.1.5 and later only and was - called @c wxEVT_GRID_RANGE_SELECT in the previous versions. + called @c wxEVT_GRID_CMD_RANGE_SELECT in the previous versions. @endEventTable @library{wxcore}