Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Property Grid
  New Posts New Posts RSS Feed - Disabled Item color
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Disabled Item color

 Post Reply Post Reply
Author
Message
VAGB View Drop Down
Newbie
Newbie


Joined: 23 November 2004
Status: Offline
Points: 17
Post Options Post Options   Thanks (0) Thanks(0)   Quote VAGB Quote  Post ReplyReply Direct Link To This Post Topic: Disabled Item color
    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.

Back to Top
JamesH View Drop Down
Senior Member
Senior Member


Joined: 01 December 2004
Status: Offline
Points: 149
Post Options Post Options   Thanks (0) Thanks(0)   Quote JamesH Quote  Post ReplyReply Direct Link To This Post 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...

Back to Top
markr View Drop Down
Senior Member
Senior Member


Joined: 01 August 2004
Status: Offline
Points: 443
Post Options Post Options   Thanks (0) Thanks(0)   Quote markr Quote  Post ReplyReply Direct Link To This Post 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.

Back to Top
markr View Drop Down
Senior Member
Senior Member


Joined: 01 August 2004
Status: Offline
Points: 443
Post Options Post Options   Thanks (0) Thanks(0)   Quote markr Quote  Post ReplyReply Direct Link To This Post Posted: 08 July 2005 at 10:06pm
VAGB, just wondering if you were able to find a solution?
Back to Top
VAGB View Drop Down
Newbie
Newbie


Joined: 23 November 2004
Status: Offline
Points: 17
Post Options Post Options   Thanks (0) Thanks(0)   Quote VAGB Quote  Post ReplyReply Direct Link To This Post 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.

Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 26 July 2005 at 7:38am
Did you try ViewReadOnlyForeColor property?
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
markr View Drop Down
Senior Member
Senior Member


Joined: 01 August 2004
Status: Offline
Points: 443
Post Options Post Options   Thanks (0) Thanks(0)   Quote markr Quote  Post ReplyReply Direct Link To This Post 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.

Back to Top
SuperMario View Drop Down
Admin Group
Admin Group
Avatar

Joined: 14 February 2004
Status: Offline
Points: 18057
Post Options Post Options   Thanks (0) Thanks(0)   Quote SuperMario Quote  Post ReplyReply Direct Link To This Post Posted: 27 July 2005 at 7:40am
CXTPPropertyGridItemMetrics::m_clrReadOnlyFore

m_wndPropertyGrid.GetPaintManager()->GetItemMetrics()-& gt;m_clrReadOnlyFore
Back to Top
markr View Drop Down
Senior Member
Senior Member


Joined: 01 August 2004
Status: Offline
Points: 443
Post Options Post Options   Thanks (0) Thanks(0)   Quote markr Quote  Post ReplyReply Direct Link To This Post Posted: 28 July 2005 at 9:22pm
Perfect, thank you Oleg!

Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.156 seconds.