Print Page | Close Window

how to set backcolor of CXTPReportRecord

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Report Control
Forum Description: Topics Related to Codejock Report Control
URL: http://forum.codejock.com/forum_posts.asp?TID=24096
Printed Date: 23 April 2024 at 6:43am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: how to set backcolor of CXTPReportRecord
Posted By: yangyanhui
Subject: how to set backcolor of CXTPReportRecord
Date Posted: 19 November 2020 at 10:05pm
HI,I want to set the backcolor of a CXTPReportCtrl. If there is no items to show, the client area of the reportctrl will be white. I want to set a default color.Moreover,how can I hide the header of a reportctrl?
thanks



Replies:
Posted By: cpede
Date Posted: 23 November 2020 at 2:06am
I don' t know if I have misunderstood your problem, but normally you just set:
CXTPReportControl ctrlReport;
ctrlReport.ShowHeader(FALSE);
to hide the header part of the report control.

And the background can be controlled either by using the theme through
CXTPPaintManagerColor crBack;
crBack.SetStandardValue(XTPIniColor(_T("ReportControl"), _T("ControlBack"), RGB(253, 253, 253)));
or directly using:
ctrlReport.GetPaintManager()->m_clrControlBack= RGB(68, 68, 68);



-------------
Product: Xtreme ToolkitPro (20.3.0)
Platform: Windows 10 (x64)
Language: Visual Studio 2017 (C++)



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