Print Page | Close Window

Missing: Always show 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=9823
Printed Date: 29 September 2024 at 7:31pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Missing: Always show selection
Posted By: znakeeye
Subject: Missing: Always show selection
Date Posted: 07 March 2008 at 1:29pm
It should be possible to, in a convenient way, set the report's paint manager to always draw the selected row as if it had focus. Similar to the LVS_SHOWSELALWAYS style!



Replies:
Posted By: mgampi
Date Posted: 03 April 2008 at 6:18am
I vote for this too!
Will it be included in 12.0 release?


-------------
Martin

Product: Xtreme Toolkit v 19.0.0, new Projects v 19.1.0
Platform: Windows 10 v 1909 (64bit)
Language: VC++ 2017


Posted By: Michl
Date Posted: 03 April 2008 at 9:36am
Why?
A blue selected line suggest that the control has the input focus...


Posted By: mgampi
Date Posted: 03 April 2008 at 9:39am
Because to be consistent with MS ListCtrl and MS TreeCtrl, also used in our applications...

-------------
Martin

Product: Xtreme Toolkit v 19.0.0, new Projects v 19.1.0
Platform: Windows 10 v 1909 (64bit)
Language: VC++ 2017


Posted By: inmaurik
Date Posted: 10 April 2009 at 5:33am
It would be great if this could be in a next version. I have been looking in a way to implement it myself but then I have to overwrite all of the following functions because they call CXTPReportControl::HasFocus.

CXTPReportPaintManager::FillGroupRowMetrics
CXTPReportPaintManager::DrawGroupRow
CXTPReportPaintManager::DrawLink2
CXTPReportRow::Draw
CXTPReportRow::GetItemMetrics
CXTPReportRow::DrawFixed

Because my derived class of the PaintManager is not a friend of CXTPReportRow you get into problems because of access to protected members. Isn't it possible to make this kind of adjustment easier by making CXTPReportControl::HasFocus virtual or by using some other logic.

Maybe it is possible to extend IsRowFocusVisible and have the focused logic in this function. This function can then return TRUE when the control has the focus and the row focus should be shown. If every function mentioned above would use this function (instead of HasFocus) there is just one place to overwrite to show the focus always. Unfortunately this function is also not virtual.

-------------
Product: Xtreme SuitePro (MFC) version 13.3.1
Platform: Windows 7 Enterprise (64bit)
Language: C++ (Visual Studio 2008 SP1)


Posted By: znakeeye
Date Posted: 13 April 2009 at 2:59pm
I've pointed out this bug before, and I also wrote a quite simple workaround for it:
http://forum.codejock.com/forum_posts.asp?TID=11285&KW=CXTPReportPaintManager - http://forum.codejock.com/forum_posts.asp?TID=11285&KW=CXTPReportPaintManager
 
Let me scream it out again: it's a bug!!


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


Posted By: mdoubson
Date Posted: 13 April 2009 at 10:32pm
There is a topic about architecture changes you are looking for. Write your post there please

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