Print Page | Close Window

Office2007 Black

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=9720
Printed Date: 04 May 2024 at 5:05am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Office2007 Black
Posted By: adrien
Subject: Office2007 Black
Date Posted: 27 February 2008 at 10:45am
There seems to be a problem when you skin an app with the office 2007 style
 
for starters, the Office2007.cjstyles file only contains Blue and Aqua.  That DLL doesn't contain resources for Black and Silver.
 
When you look into the projects that build Office2007Black.dll and Office2007Silver.dll, the INI file formats are completely different.
 
When I load Office2007Black.dll as a skin, I get big chunky black boxes everywhere.  The frame shape looks like the Dire Straits Money for Nothing video - cool in 1984, but pretty chunky now!
 
I can get the app frame, skin and dialogs all working sweet with Blue and Aqua (using Office2007.cjstyles).
 
I've tried several methods:
 
option 1.
 
XTPSkinManager()->LoadSkin("Styles/Office2007Black.dll", "OFFICE2007BLACK.INI")
 
option 2.
 
XTPSkinManager()->GetResourceFile()->SetModuleHandle(LoadLibrary("Styles/Office2007Black.dll"));
XTPSkinManager()->LoadSkin(NULL, "OFFICE2007BLACK.INI")
 
option 3.
 
include the Office2007Black.rc file in my .RC2, and use
 
XTPSkinManager()->GetResourceFile()->SetModuleHandle(AfxGetInstanceHandle());
XTPSkinManager()->LoadSkin(NULL, "OFFICE2007BLACK.INI")
 
I've tried all sorts of other combinations.
 
I get one of 2 outcomes.
 
1. No skinning.  In this case, the frame looks ok, and the commandbars etc, but dialogs are native XP.
 
2. Chunky skinning.
 
 



Replies:
Posted By: adrien
Date Posted: 27 February 2008 at 11:00am
I found something interesting
 
If you open the .cjstyles files in MSDev as resources, and look into the INI file embedded in it, it's in UNICODE.
 
If you look at the DLL files, they aren't.
 
In the past when I worked with a style DLL, the INI file had to be unicode in order to load at all from the style manager.
 
I'll try rebuilding that by saving the file as unicode (needs a BOM marker at the start of the file ).


Posted By: Oleg
Date Posted: 27 February 2008 at 11:12am

They have totally diffferent formats. Don't use file from ribbon styles as skin for whole application.



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


Posted By: adrien
Date Posted: 27 February 2008 at 11:22am
didn't make any difference in this one.
 
It's like the image loader isn't finding any images.
 
I'm still very suspicious about the differences in the INI files, how is the loader supposed to get all the extra information that's in a cjstyle file from nowhere?  The metrics for starters aren't in the INI file for the other ones.


Posted By: adrien
Date Posted: 27 February 2008 at 11:23am
Originally posted by oleg oleg wrote:

They have totally diffferent formats. Don't use file from ribbon styles as skin for whole application.

 
So that means there is no skin for Office2007 black then?


Posted By: Oleg
Date Posted: 27 February 2008 at 1:41pm
Hi,
 
Yes, now we don't have black Office2007 skin. :( Check Vist.cjstyles maybe black skin from Vista can work for you.


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


Posted By: Oleg
Date Posted: 27 February 2008 at 2:02pm
btw there are some quite nice skins in deviantart.
Check this one http://andymorum.deviantart.com/art/Office-2007-47655257 - http://andymorum.deviantart.com/art/Office-2007-47655257  it has blue and black colors.


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


Posted By: Oleg
Date Posted: 27 February 2008 at 2:14pm
and this one looks great http://kaspers.deviantart.com/art/5203-to-Vista-2-30829032 - http://kaspers.deviantart.com/art/5203-to-Vista-2-30829032

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


Posted By: adrien
Date Posted: 27 February 2008 at 7:03pm
OK.  Is there any plan to make one?
 
I built a project for a couple of skins before for CJ, I'll see if I can piece one
together for Office2007 black based on the resources from the ribbon bar.


Posted By: jpbro
Date Posted: 25 March 2008 at 10:19pm
FWIW, I vote for Office2007Black skin as well...


Posted By: brain88
Date Posted: 28 March 2008 at 8:52am
I Need solution for this problem
if any one can help me plz send me  simple project .
office 2007 style in SDI IN VS2005




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