Control key behaviour in multiple selection |
Post Reply |
Author | |
apautrot
Groupie Joined: 16 April 2009 Location: France Status: Offline Points: 18 |
Post Options
Thanks(0)
Posted: 12 June 2012 at 11:55am |
Hi
I'm using the report control of Codejock v15.13 It seems that there is no way to deselect a selected row with the control key. I can't unselect a row, I can only clear the selection then select individual rows with control key. I was waiting the control to work like standard list view, and have the behaviour of inverting the selection of the clicked row when the control key was pressed. Here is my configuration of the report :
I can see the line 3483 in file XTPReportControl.cpp
..which never invert the selection, because the pRow is never selected when this line is reached. Could you please tell me if the control key should allow to unselect individual selected rows, or if it is an awaited behavior ? Thank you.
|
|
Win 7 x64 VS 2008 CJ 15.13 |
|
ABuenger
Newbie Joined: 02 February 2006 Status: Offline Points: 1075 |
Post Options
Thanks(0)
|
Hi,
please update to the latest version. Andre |
|
Codejock support
|
|
apautrot
Groupie Joined: 16 April 2009 Location: France Status: Offline Points: 18 |
Post Options
Thanks(0)
|
Hi
I have tried the latest version 13.3.1 I can isolate the problem with the sample ReportCustomHeap. Uncommenting the two lines at 119 wndReport.AllowEdit(TRUE); wndReport.FocusSubItems(TRUE); to get edition of sub items. When holding control key, I can add to selection. But holding control + click on an already selected row clears the selection. I have digged into the code and put a breakpoint in CXTPReportSelectedRows::Clear. The handling of button click (on up event) in OnClick calls EditItem that calls SetFocusedRow with a default value false for parameter bControlKey, which is leading to clearing the actual selection. I will try a quick fix until you state on that, can you take a look please ? |
|
Win 7 x64 VS 2008 CJ 15.13 |
|
apautrot
Groupie Joined: 16 April 2009 Location: France Status: Offline Points: 18 |
Post Options
Thanks(0)
|
I have fixed that by replacing the line 5823 of file XTPReportControl.cpp
SetFocusedRow(pItemArgs->pRow); with bool bKeyControl = (::GetKeyState(VK_CONTROL) < 0) || m_bMultiSelectionMode;
SetFocusedRow(pItemArgs->pRow, bKeyControl); Works well now.
|
|
Win 7 x64 VS 2008 CJ 15.13 |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |