Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Report Control
  New Posts New Posts RSS Feed - Row focus
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Row focus

 Post Reply Post Reply
Author
Message
YMHiK View Drop Down
Groupie
Groupie
Avatar

Joined: 21 January 2009
Location: United States
Status: Offline
Points: 14
Post Options Post Options   Thanks (0) Thanks(0)   Quote YMHiK Quote  Post ReplyReply Direct Link To This Post Topic: Row focus
    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?
Back to Top
znakeeye View Drop Down
Senior Member
Senior Member
Avatar

Joined: 26 July 2006
Status: Offline
Points: 1672
Post Options Post Options   Thanks (0) Thanks(0)   Quote znakeeye Quote  Post ReplyReply Direct Link To This Post Posted: 21 January 2009 at 11:52am
Override CXTPReportPaintManager::DrawFocusRow, and set your paint manager in your report control; SetPaintManager(new CYourPainter);
PokerMemento - http://www.pokermemento.com/
Back to Top
YMHiK View Drop Down
Groupie
Groupie
Avatar

Joined: 21 January 2009
Location: United States
Status: Offline
Points: 14
Post Options Post Options   Thanks (0) Thanks(0)   Quote YMHiK Quote  Post ReplyReply Direct Link To This Post Posted: 21 January 2009 at 1:59pm
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!
Back to Top
mdoubson View Drop Down
Senior Member
Senior Member
Avatar

Joined: 17 November 2008
Status: Offline
Points: 1705
Post Options Post Options   Thanks (0) Thanks(0)   Quote mdoubson Quote  Post ReplyReply Direct Link To This Post Posted: 22 January 2009 at 12:00am
 
You can reach effect of first column specific if make this column fixed and use column divider - see snapshot
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.109 seconds.