Closed frankmri closed 7 months ago
@frankmri this (CELL_SELECT events) works on my machine (linux).
tested with testsuite/interactive_tests/test_widgets.pro
called with
test_widgets,/col,present="TABLE"
What is your OS?
Ok, nevermind, this should work #1750
@GillesDuvert thanks and sorry for the late answer, I am on linux, too. My description was, unfortunately, not precise enough. The events are (and probably were) sent correctly, but the structure didn't contain the right values for event.sel_top and event.sel_left. Also now (after #1750, these "coordinate" values are always "-1" when I click on the different table cells.
To get that behavior back I had changed the following:
And the same in the next function.
Sorry again @GillesDuvert , this diff is not the right one, I'm unable to find the changes I made in my local stash. They were basically restoring the select event being pushed in the
void wxGridGDL::OnTableCellSelection(wxGridEvent & event) function of gdlwidgeteventhandler.cpp
the corresponding lines were commented before your latest changes.
Thanks again Frank
@frankmri I'm confused. With the #1750 patch, there are 2 events produced by a (left)click in a cell:
This IMHO corresponds to the IDL behaviour for "normal" mode, the doc says "This means that two WIDGET_TABLE_CELL_SEL events are generated when an existing selection is changed to a new selection. " But, I see that in DISJOINT_SELECTION mode, where clicking when CTRL is held down, is not properly handled.
should be OK now.
Probably yes, thanks ! I'll reconfirm after the pull request is merged in ( ! I realize that this is probably why I still saw no change in behavior even previously!)
Sorry for the noise then Frank
I confirm it works now! Many thanks
Hi, this is probably a super rare case, but believe it or not I was actually using the 'CELL_SELECT' mouse events generated by WIDGET_TABLE to locate user-selected cells. Since the last rework they got swallowed (are no longer generated). I think it is the wxGridGDL::OnTableCellSelection function in the event handler (line 1784). If you want I can send a pull request, but you will probably have a better one (since this is recent).
Let me know
Best Frank