Print Page | Close Window

2 questions about skin

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Skin Framework
Forum Description: Topics Related to Codejock Skin Framework
URL: http://forum.codejock.com/forum_posts.asp?TID=15634
Printed Date: 22 November 2024 at 6:11pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: 2 questions about skin
Posted By: feffe
Subject: 2 questions about skin
Date Posted: 16 November 2009 at 7:03am
First:
 
I have a skinned dialog (with office2007.cjstyles, normalsilver.ini). If in DoDataExchange I have
 
DDX_CONTROL(pDX, m_myCXTPButton, IDC_MYBUTTON)
 
the skin does not apply to the button.
So, if I try to call
 
m_myCXTPButton.SetTheme((XTPButtonTheme)xtpButtonThemeOffice2007);
 
I get the blue version of the button, not the silver that I need. What method should I call?

Second: Frame skinned with  office2007.cjstyles, normalsilver.ini. I use Ribbon Theme.

I found out that I have to call

((CXTPOffice2007Theme*)GetCommandBars()->GetPaintManager())->SetImageHandle(hModule, _T("OFFICE2007SILVER.INI"));

What's the difference between office2007silver.ini and normalsilver.ini?
 
I also call other methods, for sizing the ribbon and its caption. But I've seen that the ribbon is modified or not
depending on where I place these calls; for example, in CMainFrame::OnCreate or in CreateRibbonBar they don't work,
probably because other settings are applied later.
So, where should I place these calls to make the code correct?
 
 



Replies:
Posted By: Oleg
Date Posted: 18 November 2009 at 7:44am
Hi,
 
Yes to fix Button issue you need load OFFICE2007SILVER.ini before you show it.
 
 


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS



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