Print Page | Close Window

Disabled Item color

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=2463
Printed Date: 23 November 2024 at 9:49am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Disabled Item color
Posted By: VAGB
Subject: Disabled Item color
Date Posted: 27 June 2005 at 7:11am

Hello, I am using a Property Grid and I need the Grid Items to be disabled but the problem is that when set to disabled they are shown in light grey and are not very well readable. Is there any way to change the foreground color of these disabled items to another color, black for example?

Thanks.




Replies:
Posted By: JamesH
Date Posted: 27 June 2005 at 11:41am

Not sure about the MFC version but for the active-x version (using WTL) you can go like this:

 spPropertyGridSettings->ColorManager->SetColor( STDCOLOR_GRAYTEXT,  0x004080 );

where 0x000000 would be black...



Posted By: markr
Date Posted: 04 July 2005 at 8:06am
I have the same question, but can't seem to find a solution that works within the MFC version of XTP.



Posted By: markr
Date Posted: 08 July 2005 at 10:06pm
VAGB, just wondering if you were able to find a solution?


Posted By: VAGB
Date Posted: 26 July 2005 at 6:47am

I am now focused on other questions so I have not tried anything about it.

As soon as I find anything useful IŽll write it back.



Posted By: Oleg
Date Posted: 26 July 2005 at 7:38am
Did you try ViewReadOnlyForeColor property?

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


Posted By: markr
Date Posted: 26 July 2005 at 8:01pm
Hi Oleg,

I can't find any reference to "ViewReadOnlyForeColor" anywhere in XTP Professional documentation or in the source code files. I believe we're both using the MFC version of the XTP library.

Am I missing something?

- Mark R.



Posted By: SuperMario
Date Posted: 27 July 2005 at 7:40am
CXTPPropertyGridItemMetrics::m_clrReadOnlyFore

m_wndPropertyGrid.GetPaintManager()->GetItemMetrics()-& gt;m_clrReadOnlyFore


Posted By: markr
Date Posted: 28 July 2005 at 9:22pm
Perfect, 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