Print Page | Close Window

ReadOnly State Text

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Property Grid
Forum Description: Topics Related to Codejock Property Grid
URL: http://forum.codejock.com/forum_posts.asp?TID=2564
Printed Date: 23 November 2024 at 11:41pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: ReadOnly State Text
Posted By: fxrz
Subject: ReadOnly State Text
Date Posted: 11 July 2005 at 8:05am

Hello everyone:

I have derived my own custom class from CXTPropertyGridPaintManager and overriden the DrawItem function in order to get a new aspect for the property grid.

The problem comes when I select a non category item with a TRUE read-only state. It overwrites my selected colors and uses white background and gray text.

May somebody knows how to avoid (what class or function should I overwrite?) this problem?

Thanks.




Replies:
Posted By: Oleg
Date Posted: 11 July 2005 at 3:05pm

in 9.70 was added

virtual COLORREF GetItemTextColor(CXTPPropertyGridItem* pItem, BOOL bValuePart);

virtual COLORREF GetItemBackColor(CXTPPropertyGridItem* pItem, BOOL bValuePart);

that you can overwrite.

 



-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: fxrz
Date Posted: 12 July 2005 at 2:01am

It works nicely. Just I need.

Thank you, Oleg.




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