Send wxEVT_DATAVIEW_COLUMN_REORDERED in generic wxDataViewCtrl

Simply translate wxEVT_HEADER_END_REORDER into this event, which was
previously only sent by the macOS version.

GtkTreeView doesn't seem to support column drag-and-drop at all, so this
event is still never generated by wxGTK.

Closes #14297.
This commit is contained in:
Vadim Zeitlin
2018-02-04 15:45:23 +01:00
parent f33f1f2078
commit 48fb2b42b1
5 changed files with 28 additions and 6 deletions

View File

@@ -3648,8 +3648,8 @@ public:
Process a @c wxEVT_DATAVIEW_COLUMN_SORTED event.
@event{EVT_DATAVIEW_COLUMN_REORDERED(id, func)}
Process a @c wxEVT_DATAVIEW_COLUMN_REORDERED event.
Currently this event is only generated when using the native OS X
version.
Currently this event is not generated when using the native GTK+
version of the control.
@event{EVT_DATAVIEW_ITEM_BEGIN_DRAG(id, func)}
Process a @c wxEVT_DATAVIEW_ITEM_BEGIN_DRAG event.
@event{EVT_DATAVIEW_ITEM_DROP_POSSIBLE(id, func)}
@@ -3675,6 +3675,9 @@ public:
/**
Returns the position of the column in the control or -1
if no column field was set by the event emitter.
For wxEVT_DATAVIEW_COLUMN_REORDERED, this is the new position of the
column.
*/
int GetColumn() const;