Opened 10 months ago

Closed 4 months ago

#18856 closed defect (fixed)

wxGrid wxEVT_GRID_RANGE_SELECT regression

Reported by: dkulp Owned by:
Priority: normal Milestone:
Component: wxGrid Version: 3.1.3
Keywords: Cc:
Blocked By: Blocking:
Patch: no

Description

Starting with 3.1.4, listeners for the wxEVT_GRID_RANGE_SELECT event get the event for every mouse selection change instead of at the end when the mouse is release. This makes it impossible for the application to know when the final selection has been made to then take an action specifically on the final selection instead of during each step.

Ideally, the even event would be split into a wxEVT_GRID_RANGE_SELECTING event during the mouse movements and then a wxEVT_GRID_RANGE_SELECTED event at mouse release. The old wxEVT_GRID_RANGE_SELECT would be aliased to wxEVT_GRID_RANGE_SELECTED.

Change History (2)

comment:1 Changed 10 months ago by dkulp

  • Cc dan@… added

I created a pull request to use as a "start":

https://github.com/wxWidgets/wxWidgets/pull/2002

It does what I need for my application, but its likely not completely tested for other use cases. Feel free to discard and find a better solution, but I do want to make sure the bug is tracked.

comment:2 Changed 4 months ago by dkulp

  • Cc dan@… removed
  • Resolution set to fixed
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.