Tabs font |
Post Reply |
Author | |
feffe
Groupie Joined: 04 September 2009 Status: Offline Points: 56 |
Post Options
Thanks(0)
Posted: 28 December 2009 at 12:04pm |
Hi,
I'd like to change ribbon tabs font.
This code, put in CMainFrame::OnCreate, does not work.
I think it is due to the fact that I'm using a skin.
So, I set a timer and AFTER the window is opened, I set tabs font.
But I think it's not a good solution. So, how can I change tabs font?
|
|
feffe
Groupie Joined: 04 September 2009 Status: Offline Points: 56 |
Post Options
Thanks(0)
|
Another question.... If I try to adopt the solution above (using the timer) and I also try to set the font for docking panes: m_paneManager.GetPaintManager()->UseOfficeFont(TRUE); the commandbars text (eg, groups caption) becomes... vertical. Why? |
|
znakeeye
Senior Member Joined: 26 July 2006 Status: Offline Points: 1672 |
Post Options
Thanks(0)
|
I'd derive CXTPRibbonBar and do that in the constructor. Otherwise you need to redraw the entire ribbon before the font change will have effect. |
|
PokerMemento - http://www.pokermemento.com/
|
|
feffe
Groupie Joined: 04 September 2009 Status: Offline Points: 56 |
Post Options
Thanks(0)
|
I use "OnRecalcLayout" and it seems to work... |
|
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 |