Print Page | Close Window

Changing Font in Ribbon

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=23926
Printed Date: 27 April 2024 at 7:29pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Changing Font in Ribbon
Posted By: MarcoW
Subject: Changing Font in Ribbon
Date Posted: 05 December 2019 at 5:23am
Hi,

how can i change the font / font size in the ribbon?
When using

m_pRibbonBar->SetFont(font);

nothing happens.

When using

pCommandBars->GetPaintManager()->SetCommandBarsFontIndirect(&theApp.m_lfStartprogramFont);


the font changes but then the heigth of the ribbn doesnt change, so that icons get scaled but are to big for the ribbon.

Use of

m_pRibbonBar->SetFontHeight(16);

doesnt work, when pCommandBars->GetPaintManager()->SetCommandBarsFontIndirect gets called.


So my question is, how can i set the font for an ribbon with the possibility to change the font size and ribbon and icons get scaled correctly (like in the ribbon sample)?






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