Print Page | Close Window

Shift+clicking yields incorrect selection!

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Report Control
Forum Description: Topics Related to Codejock Report Control
URL: http://forum.codejock.com/forum_posts.asp?TID=15030
Printed Date: 29 September 2024 at 3:33pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Shift+clicking yields incorrect selection!
Posted By: znakeeye
Subject: Shift+clicking yields incorrect selection!
Date 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/



Replies:
Posted By: znakeeye
Date Posted: 25 August 2009 at 3:41am
Have you looked at this?

-------------
PokerMemento - http://www.pokermemento.com/


Posted By: znakeeye
Date Posted: 27 August 2009 at 11:07am
https://forum.codejock.com/uploads/DemoVersion/ReportPaneViewStaticAug27.rar - https://forum.codejock.com/uploads/DemoVersion/ReportPaneViewStaticAug27.rar  works! :)

-------------
PokerMemento - http://www.pokermemento.com/


Posted By: mdoubson
Date Posted: 28 August 2009 at 12:01am
So get related source update and build your app to check - https://forum.codejock.com/uploads/DemoVersion/ReportControlMFCUpdatedAug27.rar - 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 -
 
https://forum.codejock.com/uploads/DemoVersion/ReportPaneViewStaticTrack.rar - https://forum.codejock.com/uploads/DemoVersion/ReportPaneViewStaticTrack.rar
 
Menu - Help - Header-Footer turn this mode off


-------------
Mark Doubson, Ph.D.


Posted By: Danlar
Date Posted: 28 August 2009 at 11:11am
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


Posted By: mdoubson
Date Posted: 28 August 2009 at 11:20am

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 - 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


-------------
Mark Doubson, Ph.D.


Posted By: mdoubson
Date Posted: 28 August 2009 at 1:05pm
Good - did you try to resize row's height?

-------------
Mark Doubson, Ph.D.



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net