Send right and double click events in wxGrid when using native header.
Previously only simple left click event was sent in this case, now also generate right and double click ones. Closes #12156. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64937 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -2022,10 +2022,18 @@ public:
|
||||
are using the grid to display tabular data and don't have thousands of
|
||||
columns in it.
|
||||
|
||||
Also note that currently @c wxEVT_GRID_LABEL_LEFT_DCLICK and
|
||||
@c wxEVT_GRID_LABEL_RIGHT_DCLICK events are not generated for the column
|
||||
labels if the native columns header is used (but this limitation could
|
||||
possibly be lifted in the future).
|
||||
Another difference between the default behaviour and the native header
|
||||
behaviour is that the latter provides the user with a context menu
|
||||
(which appears on right clicking the header) allowing to rearrange the
|
||||
grid columns if CanDragColMove() returns @true. If you want to prevent
|
||||
this from happening for some reason, you need to define a handler for
|
||||
@c wxEVT_GRID_LABEL_RIGHT_CLICK event which simply does nothing (in
|
||||
particular doesn't skip the event) as this will prevent the default
|
||||
right click handling from working.
|
||||
|
||||
Also note that currently @c wxEVT_GRID_LABEL_RIGHT_DCLICK event is not
|
||||
generated for the column labels if the native columns header is used
|
||||
(but this limitation could possibly be lifted in the future).
|
||||
*/
|
||||
void UseNativeColHeader(bool native = true);
|
||||
|
||||
|
Reference in New Issue
Block a user