assign color for ribbon skin |
Post Reply |
Author | |
barobax
Senior Member Joined: 07 May 2008 Status: Offline Points: 117 |
Post Options
Thanks(0)
Posted: 26 March 2009 at 4:29pm |
Hello,
can I assign a color for ribbon Skin ? Thanks in advance |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
You can use only 4 standard color.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
barobax
Senior Member Joined: 07 May 2008 Status: Offline Points: 117 |
Post Options
Thanks(0)
|
Hello,
Thanks Oleg, when I include CodeJock resources my executable size is huge. how can I add skin resources to a dynamic library and load from it ?!? |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hi,
Create dll and load it:
//HMODULE hModule = LoadLibrary(m_csStylesPath + _T("Office2007Blue.dll"));
//((CXTPOffice2007Theme*)pCommandBars->GetPaintManager())->SetImageHandle(hModule); |
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
barobax
Senior Member Joined: 07 May 2008 Status: Offline Points: 117 |
Post Options
Thanks(0)
|
thanks oleg for your help
|
|
barobax
Senior Member Joined: 07 May 2008 Status: Offline Points: 117 |
Post Options
Thanks(0)
|
how can I Build an office 2007 skin ?!?
|
|
barobax
Senior Member Joined: 07 May 2008 Status: Offline Points: 117 |
Post Options
Thanks(0)
|
SetImageHandle have two parameters.I can't do it.
|
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hi,
Set second parameter to NULL.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
barobax
Senior Member Joined: 07 May 2008 Status: Offline Points: 117 |
Post Options
Thanks(0)
|
Hi,
I removed three lines of code in rc2 and my application load perfectly but when I remove Blue theme resource line in rc2 my application throw an exception. How can I load four themes from DLL ?!? |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hi, Repeat same code with RibbonSample and attach it here. I don't know how you build dll and load it to sugget something.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
barobax
Senior Member Joined: 07 May 2008 Status: Offline Points: 117 |
Post Options
Thanks(0)
|
Hi Oleg,
You are very good. thanks for your helps repeatly. I changed the OnOptionsStyle(UINT nStyle) code as below : switch (nStyle) { case ID_OPTIONS_STYLEBLUE: lpszIniFile = _T("./Office2007Blue.dll"); break; case ID_OPTIONS_STYLEBLACK: lpszIniFile = _T("./Office2007Black.dll"); break; case ID_OPTIONS_STYLEAQUA: lpszIniFile = _T("./Office2007Aqua.dll"); break; case ID_OPTIONS_STYLESILVER: lpszIniFile = _T("./Office2007Silver.dll"); break; } HMODULE hModule = LoadLibrary(lpszIniFile); ((CXTPOffice2007Theme*)GetCommandBars()->GetPaintManager())->SetImageHandle(hModule, NULL); But when my main module try to load following assertion occured http://img91.imageshack.us/img91/70/skinassertion.th.jpg |
|
(Farsi IS WRONG you must say [PARSI])
|
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hi,
Please send issue to support@codejock.com and attach Office2007Blue.dll that you tried.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
barobax
Senior Member Joined: 07 May 2008 Status: Offline Points: 117 |
Post Options
Thanks(0)
|
thanks oleg,
I sent compressed sample and DLL's |
|
tNgLoo
Groupie Joined: 21 April 2005 Status: Offline Points: 31 |
Post Options
Thanks(0)
|
I get same problem, any solution out?
without include "office2007blue.rc"
statement "CXTPPaintManager::SetTheme(xtpThemeRibbon);" will popup assertion.
as your discription, insert
HMODULE hModule = LoadLibrary(m_csStylesPath + _T("Office2007Blue.dll"));
((CXTPOffice2007Theme*)pCommandBars->GetPaintManager())->SetImageHandle(hModule); before CXTPPaintManager::SetTheme(xtpThemeRibbon);
but I get an exception because no CXTPOffice2007Theme* will prints to before SetTheme statement ( new CXTPRibbonTheme() not run in current time, where to find CXTPOffice2007Theme*?). |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hi, You can call XTPOffice2007Images()->SetHandle(hModule) instead.
|
|
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 |