New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Incompatibility of GetColPos/GetRowPos and GetSelectionBlockTopLeft/GetSelectionBlockBottomRight functions in wxGrid #2524
Comments
This is probably wxWidgets, not wxPython. |
Yes. This is probably wxWidgets. |
I see the issue in the wxWidgets grid sample. |
Operating system: Windows 8.1
wxPython version & source: wxPython 4.2.0
Python version & source: Python 3.9
Description of the problem: The implemented selection of a block of table cells, which can then be obtained using GetSelectionBlockTopLeft/GetSelectionBlockBottomRight functions, works correctly only with Disables column moving by dragging or functions GetColPos/GetRowPos.
After changing the position of a column (position is not equal to the column ID), the selection process continues to use its ID (instead of position) and selects it even when it is out of range.
I think it is required to use the column/row position number instead of its ID number.
I’m thinking about how to intercept the process of highlighting with color and taking into account coordinates.
However, when selected from the keyboard, some events are missing (EVT_GRID_RANGE_SELECTING).
Code Example (click to expand)
The text was updated successfully, but these errors were encountered: