how to set the bkcolor of header if it is pressed |
Post Reply |
Author | |
yangyanhui
Senior Member Joined: 20 August 2020 Status: Offline Points: 131 |
Post Options
Thanks(0)
Posted: 02 December 2020 at 2:57am |
HI,I have a CXTPREPORTCTRL. When I pressed on the header of it,the background color of the header will be shown in yellow. I want to keep it as the same color as it is when it is not pressed. How can I realize it?I have not find the color to set in XTPPaintManager.
thanks
|
|
mgampi
Senior Member Joined: 14 July 2003 Status: Offline Points: 1198 |
Post Options
Thanks(0)
|
Did you overwrite GetItemMetrics()?
In my case I can't see yellow colors in header. |
|
Martin
Product: Xtreme Toolkit v 19.0.0, new Projects v 19.1.0 Platform: Windows 10 v 1909 (64bit) Language: VC++ 2017 |
|
yangyanhui
Senior Member Joined: 20 August 2020 Status: Offline Points: 131 |
Post Options
Thanks(0)
|
I have overwriten GetItemMetrics in report data and it works good. I do not know how to use it in header rows
|
|
cpede
Senior Member Joined: 13 August 2004 Location: Denmark Status: Offline Points: 647 |
Post Options
Thanks(0)
|
It is much easier to use the themes to change the colors in your application consistently. Most of the CodeJock sample projects are using this approach.
Basically set the handle: XTPResourceImages()->SetHandle(_T("Office2016.dll"), _T("Office2016PowerPointDarkGray.ini")); CXTPPaintManager::SetTheme(xtpThemeOffice2013); SendMessageToDescendants(WM_XTP_SETCONTROLTHEME, xtpControlThemeOffice2013); and specify the control theme: SetTheme(xtpReportThemeOffice2013, TRUE); You can then play with the color definitions in Office2016PowerPointDarkGray.ini in the project: XTToolkit\v19.1.0\Source\Styles\Office2016 compile it and use it in your application.
|
|
Product: Xtreme ToolkitPro (22.1.0)
Platform: Windows 10 (x64) Language: Visual Studio 2017 (C++) |
|
yangyanhui
Senior Member Joined: 20 August 2020 Status: Offline Points: 131 |
Post Options
Thanks(0)
|
as codejock set,when the header of a xtpreport is pressed, it will change color. I do not want this function. How can I cancel the function?
thanks
|
|
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 |