#15386 closed defect (fixed)

Clicking on a dataview column header to sort it alphabetically doesn't have the correct behaviour under osx-cocoa.

Reported by: joecarl Owned by:
Priority: normal Milestone:
Component: wxOSX-Cocoa Version: 2.9.5
Keywords: Cc:
Blocked By: Blocking:
Patch: no

Description

When you click on the finder column headers the sorting is made when mouse button is released however in wxWidgets the sorting is triggered whe the mouse button is pressed and also whe it's released. Getting an strange behaviour.

It can be seen in the datavie sample nevertheless i'll attach a minimal sample.

Attachments (1)

minimal_dataview_sorting.cpp download (1.8 KB) - added by joecarl 13 months ago.

Download all attachments as: .zip

Change History (3)

Changed 13 months ago by joecarl

comment:1 Changed 13 months ago by vadz

  • Milestone 3.0 deleted

I don't think this is 3.0-critical, even if it would be nice to fix, of course.

comment:2 Changed 13 months ago by VZ

  • Resolution set to fixed
  • Status changed from new to closed

(In [74635]) Fix column sorting UI in wxDataViewCtrl under wxOSX.

Use -outlineView:didClickTableColumn: delegate method instead of
mouseDownInHeaderOfTableColumn: one to ensure that:

(a) We don't sort the column if it's being dragged/resized (closes #15340).
(b) We sort the column on mouse up, not down (closes #15386).

Note: See TracTickets for help on using tickets.