Ticket AQ7473
Visible to All Users

How to change the color of a BarItem

created 18 years ago

I want to know how can i change menu Button, Subitem or Item color from clBtnFace to white.

Comments (2)
DevExpress Support Team 18 years ago

    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 ?

      Answers

      created 18 years ago

      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

        Comments (2)

          This was 9 years ago :)

          DevExpress Support Team 10 years ago

            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.

            Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

            Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.