Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Command Bars
  New Posts New Posts RSS Feed - Changing commandbars font
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Changing commandbars font

 Post Reply Post Reply
Author
Message
feffe View Drop Down
Groupie
Groupie


Joined: 04 September 2009
Status: Offline
Points: 56
Post Options Post Options   Thanks (0) Thanks(0)   Quote feffe Quote  Post ReplyReply Direct Link To This Post Topic: Changing commandbars font
    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?
 
Back to Top
feffe View Drop Down
Groupie
Groupie


Joined: 04 September 2009
Status: Offline
Points: 56
Post Options Post Options   Thanks (0) Thanks(0)   Quote feffe Quote  Post ReplyReply Direct Link To This Post 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. 
 
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.203 seconds.