Missing: Always show selection |
Post Reply |
Author | |
znakeeye
Senior Member Joined: 26 July 2006 Status: Offline Points: 1672 |
Post Options
Thanks(0)
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!
|
|
mgampi
Senior Member Joined: 14 July 2003 Status: Offline Points: 1201 |
Post Options
Thanks(0)
|
I vote for this too!
Will it be included in 12.0 release?
|
|
Martin Product: Xtreme Toolkit v 22.1.0, new Projects v 24.0.0 Platform: Windows 10 v 22H2 (64bit) Language: VC++ 2022 |
|
Michl
Senior Member Joined: 14 September 2007 Status: Offline Points: 138 |
Post Options
Thanks(0)
|
Why?
A blue selected line suggest that the control has the input focus...
|
|
mgampi
Senior Member Joined: 14 July 2003 Status: Offline Points: 1201 |
Post Options
Thanks(0)
|
Because to be consistent with MS ListCtrl and MS TreeCtrl, also used in our applications...
|
|
Martin Product: Xtreme Toolkit v 22.1.0, new Projects v 24.0.0 Platform: Windows 10 v 22H2 (64bit) Language: VC++ 2022 |
|
inmaurik
Groupie Joined: 13 July 2007 Location: Netherlands Status: Offline Points: 17 |
Post Options
Thanks(0)
|
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) |
|
znakeeye
Senior Member Joined: 26 July 2006 Status: Offline Points: 1672 |
Post Options
Thanks(0)
|
I've pointed out this bug before, and I also wrote a quite simple workaround for it:
Let me scream it out again: it's a bug!!
|
|
PokerMemento - http://www.pokermemento.com/
|
|
mdoubson
Senior Member Joined: 17 November 2008 Status: Offline Points: 1705 |
Post Options
Thanks(0)
|
There is a topic about architecture changes you are looking for. Write your post there please
|
|
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 |