![]() |
Changing commandbars font |
Post Reply ![]() |
Author | |
feffe ![]() Groupie ![]() Joined: 04 September 2009 Status: Offline Points: 56 |
![]() ![]() ![]() ![]() ![]() 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? |
|
![]() |
|
feffe ![]() Groupie ![]() Joined: 04 September 2009 Status: Offline Points: 56 |
![]() ![]() ![]() ![]() ![]() |
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.
|
|
![]() |
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 |