![]() |
CXTPReportView |
Post Reply
|
| Author | |
Hazelnut
Groupie
Joined: 22 July 2005 Location: United States Status: Offline Points: 18 |
Post Options
Thanks(0)
Quote Reply
Topic: CXTPReportViewPosted: 02 September 2005 at 12:37pm |
|
Hello All, Is it possible to 1) change the color of the header columns, and 2) set the alignment of those columns? I'm trying to center some of the column headings. I can center some of the columns by using the following code, but is it possible to do the same for the headings? wndReport.GetColumns()->GetAt(RPT_COL_INCLUDE)->SetAlignment(DT_CENTER); wndReport.GetColumns()->GetAt(RPT_COL_TEST)->SetAlignment(DT_LEFT); wndReport.GetColumns()->GetAt(RPT_COL_LOOPS)->SetAlignment(DT_CENTER); wndReport.GetColumns()->GetAt(RPT_COL_STATUS)->SetAlignment(DT_CENTER); Thanks! |
|
![]() |
|
sserge
Moderator Group
Joined: 01 December 2004 Status: Offline Points: 1297 |
Post Options
Thanks(0)
Quote Reply
Posted: 05 September 2005 at 8:45am |
|
Hi,
For Header text alignment see CXTPReportPaintManager::m_bUseColumnTextAlignment You cannot change colors for individual columns, only for all: CXTPReportPaintManager::m_clrCaptionText Use m_clrCaptionText.SetCustomValue() method. -- WBR, Serge |
|
![]() |
|
Hazelnut
Groupie
Joined: 22 July 2005 Location: United States Status: Offline Points: 18 |
Post Options
Thanks(0)
Quote Reply
Posted: 05 September 2005 at 10:49am |
|
Hi, Thank you, both suggestions worked perfectly! ...I should have checked the documentation before posting, but I do appreciate the help Regards, Paul... |
|
![]() |
|
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 |