Hi,
I have a TdxRibbonForm form on which is placed a TdxRibbon.
I now need to respond to runtime changes in the theming of my application by picking up the colors (or bitmap resource) associated with the FormCaption element.
From the form or ribbon component, how do I access the colors or bitmaps (I expect it's along the lines of "Ribbon.Theme.FormCaption.Bitmap.Handle" etc.)?
Thanks in advance for you help.
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.
Hi Richard,
Sorry, but it's not clear.
If you want to get access to a glyph of the ApplicationButton, use the Ribbon's ApplicationButton.Glyph property.
It this information doesn't help you, could you please provide us with a couple of screenshots illustrating your requirements?
Thanks,
Dimitros
Hi Dimitros,
OK. What I need to do is somehow access the colors (or bitmaps) that are used to make up the forms Caption bar (i.e. The area of the form at the very top that is home to Close, Minimize, Maximize etc.)
As my application supports skins, the color of my Caption Bar changes accordingly and I need access to the gradient colors being adopted for the skin so that I can replicate them elsewhere in non-DevEx controls.
So, what I need to know is the means of accessing either the bitmap that is compiled into the application's resource or the fully qualified properties to reach the gradient colors being used.
Thanks again.
Hi Richard,
Thank you for the clarification. Sorry, but it's difficult to obtain this color. The cause of this problem is that the RibbonCaption is drawn by the TdxRibbonPainter, which uses a RibbonSkin. The skin doesn't contain any color value, it uses PNG images instead. However these PNG images are stored in one resource file. I've attached a small example on how to obtain these images. If you need any further assistance on this subject, please feel free to reactivate this ticket.
Thanks,
Dimitros