I want to know how can i change menu Button, Subitem or Item color from clBtnFace to white.
How to change the color of a BarItem
Answers
Hi Tommy,
Please inherit your custom painter class from the TdxBarItemControlEnhancedPainter, and override its BarToolbarBrush method. This should help you achieve the behavior you want.
Attached is a modified sample project, which demonstrates how this can be done. Please review it and let us know your results.
Thanks,
Vito
Hello,
Should you have a similar problem, please create a separate ticket, provide us with a sample project, detailed information about the issue and expected results in a step-by-step manner. We will examine it and do our best to find a solution for you.
Hi Tommy,
The only way to achieve what you want is to write a descendant of the required BarItemControlPainter class. Please look at the attached sample project demonstrating how this can be done. I hope it will be of some help.
Thanks,
Vito
Thanks for your support.
Your source code have example for TdxBarItemControlOffice11Painter.
I use TdxBarItemControlEnhancedPainter then How can I change BarItem Background color and height ?