2 questions about skin |
Post Reply |
Author | |
feffe
Groupie Joined: 04 September 2009 Status: Offline Points: 56 |
Post Options
Thanks(0)
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? |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hi,
Yes to fix Button issue you need load OFFICE2007SILVER.ini before you show it.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
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 |