Print Page | Close Window

Ribbon sizing

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=15656
Printed Date: 05 July 2024 at 2:58am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Ribbon sizing
Posted By: feffe
Subject: Ribbon sizing
Date Posted: 18 November 2009 at 3:17am

Hi,

could someone post some lines of code for showing me how decrease ribbon height and eliminate group caption?
 
thank you a lot
 
N.B:. My frame window is skinned with office theme
 
EDIT: I've found only one solution.
In InitInstance of my application I set a timer of 100ms, and then in CMainFrame I have a method OnTimer:

if (nIDEvent == ID_RIBBON_TIMER)

{

KillTimer(nIDEvent);

CXTPCustomRibbonTheme *pTheme = (CXTPCustomRibbonTheme*)m_pRibbonBar->GetPaintManager();

pTheme->SetGroupCaptionHeight(0);

m_pRibbonBar->OnRecalcLayout();

}

In this way, it seems to work. If i put these lines anywhere in the code, before the main window is shown, it doesn't work.
I really don't understand WHAT and WHEN overrides my caption settings. 



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