![]() |
Disabled Item color |
Post Reply ![]() |
Author | |
VAGB ![]() Newbie ![]() Joined: 23 November 2004 Status: Offline Points: 17 |
![]() ![]() ![]() ![]() ![]() 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. |
|
![]() |
|
JamesH ![]() Senior Member ![]() Joined: 01 December 2004 Status: Offline Points: 149 |
![]() ![]() ![]() ![]() ![]() |
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... |
|
![]() |
|
markr ![]() Senior Member ![]() Joined: 01 August 2004 Status: Offline Points: 443 |
![]() ![]() ![]() ![]() ![]() |
I have the same question, but can't seem to find a solution that works within the MFC version of XTP.
|
|
![]() |
|
markr ![]() Senior Member ![]() Joined: 01 August 2004 Status: Offline Points: 443 |
![]() ![]() ![]() ![]() ![]() |
VAGB, just wondering if you were able to find a solution?
|
|
![]() |
|
VAGB ![]() Newbie ![]() Joined: 23 November 2004 Status: Offline Points: 17 |
![]() ![]() ![]() ![]() ![]() |
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. |
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Did you try ViewReadOnlyForeColor property?
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
markr ![]() Senior Member ![]() Joined: 01 August 2004 Status: Offline Points: 443 |
![]() ![]() ![]() ![]() ![]() |
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. |
|
![]() |
|
SuperMario ![]() Admin Group ![]() ![]() Joined: 14 February 2004 Status: Offline Points: 18057 |
![]() ![]() ![]() ![]() ![]() |
CXTPPropertyGridItemMetrics::m_clrReadOnlyFore
m_wndPropertyGrid.GetPaintManager()->GetItemMetrics()-& gt;m_clrReadOnlyFore |
|
![]() |
|
markr ![]() Senior Member ![]() Joined: 01 August 2004 Status: Offline Points: 443 |
![]() ![]() ![]() ![]() ![]() |
Perfect, thank you Oleg!
|
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |