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

PropertyGrid Item to SetReadOnly

 Post Reply Post Reply
Author
Message
Anni View Drop Down
Newbie
Newbie
Avatar

Joined: 04 June 2007
Location: United States
Status: Offline
Points: 11
Post Options Post Options   Thanks (0) Thanks(0)   Quote Anni Quote  Post ReplyReply Direct Link To This Post Topic: PropertyGrid Item to SetReadOnly
    Posted: 19 July 2007 at 1:01pm

How can I make PropertyGrid item to read only field without making it grayed out?

Thanks,
Anni
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: 20 July 2007 at 2:53am
Hi,
 
You can set readonly color:
 
 m_wndPropertyGrid.GetPaintManager()->GetItemMetrics()->m_clrReadOnlyFore = 0;
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
Anni View Drop Down
Newbie
Newbie
Avatar

Joined: 04 June 2007
Location: United States
Status: Offline
Points: 11
Post Options Post Options   Thanks (0) Thanks(0)   Quote Anni Quote  Post ReplyReply Direct Link To This Post Posted: 20 July 2007 at 1:29pm
Thanks Oleg, this helps when the grid is getting populated with all the items. What if I am cloning a new item from an existing item? It crashes.
 
However, today I found one more customize solution for my problem, I am modifying GetItemTextColor function for the same.
 
Anyways, thanks for your help.
 
Regards,
Anni
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.141 seconds.