![]() |
Disabled Item color |
Post Reply
|
| Author | |
VAGB
Newbie
Joined: 23 November 2004 Status: Offline Points: 17 |
Post Options
Thanks(0)
Quote Reply
Topic: Disabled Item colorPosted: 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 |
Post Options
Thanks(0)
Quote Reply
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... |
|
![]() |
|
markr
Senior Member
Joined: 01 August 2004 Status: Offline Points: 443 |
Post Options
Thanks(0)
Quote Reply
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.
|
|
![]() |
|
markr
Senior Member
Joined: 01 August 2004 Status: Offline Points: 443 |
Post Options
Thanks(0)
Quote Reply
Posted: 08 July 2005 at 10:06pm |
|
VAGB, just wondering if you were able to find a solution?
|
|
![]() |
|
VAGB
Newbie
Joined: 23 November 2004 Status: Offline Points: 17 |
Post Options
Thanks(0)
Quote Reply
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. |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 26 July 2005 at 7:38am |
|
Did you try ViewReadOnlyForeColor property?
|
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
markr
Senior Member
Joined: 01 August 2004 Status: Offline Points: 443 |
Post Options
Thanks(0)
Quote Reply
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. |
|
![]() |
|
SuperMario
Senior Member
Joined: 14 February 2004 Status: Offline Points: 18057 |
Post Options
Thanks(0)
Quote Reply
Posted: 27 July 2005 at 7:40am |
|
CXTPPropertyGridItemMetrics::m_clrReadOnlyFore
m_wndPropertyGrid.GetPaintManager()->GetItemMetrics()-& gt;m_clrReadOnlyFore |
|
![]() |
|
markr
Senior Member
Joined: 01 August 2004 Status: Offline Points: 443 |
Post Options
Thanks(0)
Quote Reply
Posted: 28 July 2005 at 9:22pm |
|
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 |