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 General Discussion » How to change font used int CExtComboBox and CExtGroupBox Collapse All
Subject Author Date
Carsten Pedersen Oct 26, 2007 - 7:43 AM

Hi,

Can the fonts used in the above classes be changed in any way?
I know the button fonts are changeable, by overloading the QueryFont method. But this is not available in the two classes mentioned.

Best regards,
Carsten

Technical Support Oct 29, 2007 - 10:50 AM

Yes, now you can use the SetFont() method. Earlier there was only one way to change the font: by overriding OnQueryFont().

Carsten Pedersen Oct 29, 2007 - 4:20 AM

Thanks alot, that wasn’t too difficult.
Actually it also works for buttons, so don’t know why we should around the overloaded OnQueryFont function, when this works as a charm?

Technical Support Oct 28, 2007 - 10:10 AM

You can use the MFC’s CWnd::SetFont() method, which works for any control in Prof-UIS.