PropertyGrid Item to SetReadOnly |
Post Reply |
Author | |
Anni
Newbie Joined: 04 June 2007 Location: United States Status: Offline Points: 11 |
Post Options
Thanks(0)
Posted: 19 July 2007 at 1:01pm |
How can I make PropertyGrid item to read only field without making it grayed out? Thanks,
Anni
|
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hi,
You can set readonly color:
m_wndPropertyGrid.GetPaintManager()->GetItemMetrics()->m_clrReadOnlyFore = 0;
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
Anni
Newbie Joined: 04 June 2007 Location: United States Status: Offline Points: 11 |
Post Options
Thanks(0)
|
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
|
|
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 |