Print Page | Close Window

Changing commandbars font

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=15696
Printed Date: 27 February 2025 at 9:04am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Changing commandbars font
Posted By: feffe
Subject: Changing commandbars font
Date Posted: 23 November 2009 at 7:02am

Hi

I've an application with ribbon. I'd like to change the font of command bars, and I try to call
 
LOGFONT lf;
....
pCommandBars->GetPaintManager()->SetCommandBarsFontIndirect(&lf);

in CMainFrame OnCreate. This doesn't seem to change statusbar and ribbon controls font.

So I call

m_wndStatusBar.SetFont(...));

and
 

CXTPRibbonTheme* pPaintManager = (CXTPRibbonTheme*)m_pRibbonBar->GetRibbonPaintManager();

pPaintManager->GetTabPaintManager()->SetFontIndirect(&lf);

Is it right? I have to call all these methods?
It remains one problem: I still can't change the font of the Ribbon controlcombobox.
 
Any suggestions?
 



Replies:
Posted By: feffe
Date Posted: 23 November 2009 at 11:06am
please help.....
 
it's so frustrating
 
EDIT:

I created a customized CXTPRibbonTheme and set my font for m_fontIcon, m_fontRegular etc.

Result: I can change font for the EDIT, but not for the listbox.
 
SECOND EDIT!!!
Resolved... I found out the right settings in ModifyStyle.
The default font would be Icon Font, so I've modified this. 
 



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net