#19206: wxDataViewCtrl on MSW resorts on edit, GTK and macOS don't

14 views
Skip to first unread message

wxTrac

unread,
Jun 21, 2021, 12:34:56 PM6/21/21
to wx-...@googlegroups.com
#19206: wxDataViewCtrl on MSW resorts on edit, GTK and macOS don't
-------------------------+--------------------
Reporter: afalkenhahn | Owner:
Type: defect | Status: new
Priority: normal | Milestone:
Component: GUI-all | Version: 3.0.5
Keywords: | Blocked By:
Blocking: | Patch: 0
-------------------------+--------------------
When editing an item in the current sorting column in a `wxDataViewCtrl`,
the generic implementation on MSW will automatically resort all items as
soon as the editing has finished. On GTK and macOS this doesn't seem to
happen. I need to explicitly call `Resort()` on the model on GTK and macOS
when getting an `EVT_DATAVIEW_ITEM_VALUE_CHANGED` event to get the same
behaviour as on MSW. I think this should be fixed for consistency.

--
Ticket URL: <https://trac.wxwidgets.org/ticket/19206>

wxTrac

unread,
Aug 25, 2021, 5:41:16 PM8/25/21
to wx-...@googlegroups.com
#19206: wxDataViewCtrl on MSW resorts on edit, GTK and macOS don't
--------------------------+-----------------------
Reporter: afalkenhahn | Owner:
Type: defect | Status: confirmed
Priority: normal | Milestone:
Component: GUI-all | Version: 3.1.5
Resolution: | Keywords:
Blocked By: | Blocking:
Patch: 0 |
--------------------------+-----------------------
Changes (by vadz):

* status: new => confirmed
* version: 3.0.5 => 3.1.5


Comment:

I can indeed see this in the dataview sample: on the first page, sorting
by "artist" and editing "Johannes Brahms" to start with "z" sends it below
"Ludwig van Beethoven" under MSW, but not under GTK.

IMO MSW behaviour makes more sense, but I'm not sure if we can achieve
this with GTK and Mac implementations, while we should be able to change
MSW (i.e. generic) implementation to avoid doing this.

So to fix this we need to either change GTK and Mac or confirm that it's
not going to be easily possible and then change the generic one.

Any help with this would be very welcome, as usual.

--
Ticket URL: <https://trac.wxwidgets.org/ticket/19206#comment:1>
Reply all
Reply to author
Forward
0 new messages