![]() |
Font colour |
Post Reply ![]() |
Author | |
link ![]() Groupie ![]() Joined: 02 July 2009 Status: Offline Points: 20 |
![]() ![]() ![]() ![]() ![]() Posted: 11 November 2009 at 2:06pm |
for CXTPPropertyGridItem's in the grid: if they are set to read only then they appear gray with lighter gray background. can i override this without having to owner draw the control? i know i can set the entire grid to AllowEdit(FALSE); but then user cannot edit combo box items, etc...
thx
|
|
![]() |
|
Oleg ![]() Senior Member ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Hello,
You can just remove edit from item with pItem->SetFlags(0);
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
markr ![]() Senior Member ![]() Joined: 01 August 2004 Status: Offline Points: 443 |
![]() ![]() ![]() ![]() ![]() |
You can also take complete control over the font colors (including read-only) like so:
m_wndPropertyGrid.GetPaintManager()->GetItemMetrics()->m_clrFore = RGB(X,X,X); m_wndPropertyGrid.GetPaintManager()->GetItemMetrics()->m_clrReadOnlyFore = RGB(Y,Y,Y); ... |
|
![]() |
|
link ![]() Groupie ![]() Joined: 02 July 2009 Status: Offline Points: 20 |
![]() ![]() ![]() ![]() ![]() |
thx. it was getitemmetrics() that i was looking for.
|
|
![]() |
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 |