![]() |
Shift+clicking yields incorrect selection! |
Post Reply ![]() |
Author | |
znakeeye ![]() Senior Member ![]() ![]() Joined: 26 July 2006 Status: Offline Points: 1672 |
![]() ![]() ![]() ![]() ![]() Posted: 23 August 2009 at 1:43pm |
Downloaded latest source (5 minutes ago). I see this erroneous behavior:
1
2 Click (select)
3
4
5
6 Shift+click
7
Now row 2-6 are selected, and focus is at position 6. If I Shift+click row 4, the selection should be 2-4 with focus at position 4, but Report Control yields a selection of 2-6 with focus set at position 4. This is wrong (you can try it in XP/Vista or similar).
Basically, there are only two rules for correct clicking logic...
The proper action when shift-clicking is:
1) Remove current selection, but remember anchor position (anchor is always included in the selection).
2) Select from anchor to clicked row.
When ctrl-clicking, the anchor is updated to the clicked row!
My theory: You don't update the anchor position when a selection is present?
|
|
PokerMemento - http://www.pokermemento.com/
|
|
![]() |
|
znakeeye ![]() Senior Member ![]() ![]() Joined: 26 July 2006 Status: Offline Points: 1672 |
![]() ![]() ![]() ![]() ![]() |
Have you looked at this?
|
|
PokerMemento - http://www.pokermemento.com/
|
|
![]() |
|
znakeeye ![]() Senior Member ![]() ![]() Joined: 26 July 2006 Status: Offline Points: 1672 |
![]() ![]() ![]() ![]() ![]() |
PokerMemento - http://www.pokermemento.com/
|
|
![]() |
|
mdoubson ![]() Senior Member ![]() ![]() Joined: 17 November 2008 Status: Offline Points: 1705 |
![]() ![]() ![]() ![]() ![]() |
So get related source update and build your app to check - https://forum.codejock.com/uploads/DemoVersion/ReportControlMFCUpdatedAug27.rar
Also look on new feature - Report Control with resizable rows - select row and you can track down row height -
Menu - Help - Header-Footer turn this mode off |
|
![]() |
|
Danlar ![]() Groupie ![]() ![]() Joined: 27 February 2008 Location: United States Status: Offline Points: 12 |
![]() ![]() ![]() ![]() ![]() |
With released 13.1, I was having the problem listed in another post where GetCount() was giving incorrect results ( see http://forum.codejock.com/forum_posts.asp?TID=14948 ) and I applied the ReportControlMFCUpdatedAug27.rar source update listed above to fix that problem. It now appears that applying an unmodified left click to any currently-selected row in the report does not replace the current selection, it merely changes focus.
-Dan |
|
![]() |
|
mdoubson ![]() Senior Member ![]() ![]() Joined: 17 November 2008 Status: Offline Points: 1705 |
![]() ![]() ![]() ![]() ![]() |
The stable update ReportControlMFCUpdated.rar (SVN matched version) while ReportControlMFCUpdatedAug27.rar is current working progress (see http://forum.codejock.com/forum_posts.asp?TID=13387&PID=52496#52496) to help us with testing.
You right - it will be de-select all previous selection in your case and select only one row you click
|
|
![]() |
|
mdoubson ![]() Senior Member ![]() ![]() Joined: 17 November 2008 Status: Offline Points: 1705 |
![]() ![]() ![]() ![]() ![]() |
Good - did you try to resize row's height?
|
|
![]() |
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 |