Professional UI Solutions
Site Map   /  Register
 
 

Forum

Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Prof-UIS Tech Support » Grid controls: How to use a smaller font and do not bold. Collapse All
Subject Author Date
Brian Horn Aug 29, 2007 - 4:18 AM

We are using the grid control CExtPropertyGridCtrl
We wish to have the text of different font and make it non-bold.
Do we have to use the PaintManager object for this, if yes how ?

Technical Support Aug 30, 2007 - 10:57 AM

You can assign a custom font using the SetFont() method.

There are two properties in the CExtPropertyGridWnd class:

m_bMakeBoldModifiedNames specifies if the names of modified properties are displayed in bold.
m_bMakeBoldModifiedValues specifies if the the values of modified properties are displayed in bold.

So to make all the cells non-bold when their values are in the modified state, just set these properties to false. You can find en example of how to do this in the CMainDlg::OnCheckMakeBoldModifiedCaptions() and CMainDlg::OnCheckMakeBoldModifiedValues() methods in the PropertyGrid sample.