Print Page | Close Window

CXTPReportView

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=2839
Printed Date: 09 November 2025 at 12:48am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: CXTPReportView
Posted By: Hazelnut
Subject: CXTPReportView
Date Posted: 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!




Replies:
Posted By: sserge
Date 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


Posted By: Hazelnut
Date 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...




Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net