![]() |
Setting CXTPPropertyGridItem value to bold? |
Post Reply ![]() |
Author | |
andrewg ![]() Groupie ![]() Joined: 24 September 2007 Status: Offline Points: 41 |
![]() ![]() ![]() ![]() ![]() Posted: 01 October 2007 at 3:38pm |
As the title says, how do you set the value or the caption for that matter to bold weight?
|
|
![]() |
|
mgampi ![]() Senior Member ![]() ![]() Joined: 14 July 2003 Status: Offline Points: 1198 |
![]() ![]() ![]() ![]() ![]() |
Hi;
One possible solution could be to create your own CXTPPropertyGridPaintManager derives class and overwrite the function
CFont* CXTPPropertyGridPaintManager::GetItemFont(CXTPPropertyGridItem* pItem, BOOL bValuePart) Then dependig on your settings/need you can return the pointer to the m_fontBold member of the item metics class (see CXTPPropertyGridItemMetrics())
Or you overwrite the SetDefaultValues() function of the CXTPPropertyGridItemMetrics() class and set m_fontNormal to a bold font... |
|
Martin
Product: Xtreme Toolkit v 19.0.0, new Projects v 19.1.0 Platform: Windows 10 v 1909 (64bit) Language: VC++ 2017 |
|
![]() |
|
link ![]() Groupie ![]() Joined: 02 July 2009 Status: Offline Points: 20 |
![]() ![]() ![]() ![]() ![]() |
Hi, I'd like to follow up with this question. Is this still a valid answer?
If you subclass CXTPPropertyGridPaintManager, you also must subclass CXTPPropertyGridItemMetrics as well as the property grid class itself.
This is not really manageable...
The fonts in the CXTPPropertyGridItemMetrics need to be accessible, etc...
Thx.
|
|
![]() |
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 |