Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Report Control
  New Posts New Posts RSS Feed - Changing individual row colors
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Changing individual row colors

 Post Reply Post Reply
Author
Message
andrewg View Drop Down
Groupie
Groupie


Joined: 24 September 2007
Status: Offline
Points: 41
Post Options Post Options   Thanks (0) Thanks(0)   Quote andrewg Quote  Post ReplyReply Direct Link To This Post Topic: Changing individual row colors
    Posted: 21 December 2007 at 2:12pm
We need to change specific row colors to either red or yellow depending on their urgency. How is this accomplished in XTP?
Back to Top
sserge View Drop Down
Moderator Group
Moderator Group


Joined: 01 December 2004
Status: Offline
Points: 1297
Post Options Post Options   Thanks (0) Thanks(0)   Quote sserge Quote  Post ReplyReply Direct Link To This Post Posted: 21 December 2007 at 5:33pm
In the regular sample see code for option "Automatic formatting sample".

You'll handle CMessageRecord::GetItemMetrics and depending on your urgency value will set a corresponding background:
pItemMetrics->clrBackground = RGB(...);

--
WBR,
Serge
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.172 seconds.