Row focus |
Post Reply |
Author | |
YMHiK
Groupie Joined: 21 January 2009 Location: United States Status: Offline Points: 14 |
Post Options
Thanks(0)
Posted: 21 January 2009 at 9:07am |
I'm trying to come up with a way as to draw custom focus line for selected row. Currently in report control by default you see whole row selected and focus is drawn around all of the column items.
What I need is a way to draw focus line around all row items except for first one. You would ask why? I'm implementing row numbers for report control and to make look and feel better row numbers column must not behave as the rest of columns in report control. Any suggestions? |
|
znakeeye
Senior Member Joined: 26 July 2006 Status: Offline Points: 1672 |
Post Options
Thanks(0)
|
Override CXTPReportPaintManager::DrawFocusRow, and set your paint manager in your report control; SetPaintManager(new CYourPainter);
|
|
PokerMemento - http://www.pokermemento.com/
|
|
YMHiK
Groupie Joined: 21 January 2009 Location: United States Status: Offline Points: 14 |
Post Options
Thanks(0)
|
Yes, exactly what I had in mind. It didn't work since I messed up CRect modification code to draw focus rectangle. Now that I've found my mistake it works as it should! Thank you!
|
|
mdoubson
Senior Member Joined: 17 November 2008 Status: Offline Points: 1705 |
Post Options
Thanks(0)
|
You can reach effect of first column specific if make this column fixed and use column divider - see snapshot
|
|
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 |