Print Page | Close Window

Ribbon + Vista 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=9287
Printed Date: 27 September 2024 at 5:11pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Ribbon + Vista skin?
Posted By: znakeeye
Subject: Ribbon + Vista skin?
Date Posted: 12 January 2008 at 11:23pm

I believe this has been asked before, but I can't get it working!

I have a ribbon-application with dialog-panes where I want Vista-styled GUI components. This is my rc2-file:
 
#include <XTToolkitPro.rc>
 
#include "Styles\Office2007Blue\Office2007Blue.rc"
#include "Styles\Office2007Aqua\Office2007Aqua.rc"
#include "Styles\Office2007Black\Office2007Black.rc"
#include "Styles\Office2007Silver\Office2007Silver.rc"

#include "SkinFramework\Styles\Vista\Vista.rc"

In CMainFrame::CMainFrame() I call:
XTPSkinManager()->GetResourceFile()->SetModuleHandle(AfxGetInstanceHandle());
 
The problem is that the dialogs are not skinned! However, if I load the skin via LoadSkin() it works:
XTPSkinManager()->LoadSkin("vista.cjstyles");
 
Please help! I do not want this external DLL. Also note that I'm using Xtreme Toolkit Pro v11.2.2.



Replies:
Posted By: Oleg
Date Posted: 13 January 2008 at 11:35am
Hi,
Do you have problem only with dialog's background or with dialog controls also ?


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


Posted By: znakeeye
Date Posted: 13 January 2008 at 2:26pm
Both dialog background and controls. Also, the pane tabs look different, if I recall correctly.


Posted By: Oleg
Date Posted: 14 January 2008 at 5:38am
Hi,
 
Use these lines:
 
XTPSkinManager()->GetResourceFile()->SetModuleHandle(AfxGetInstanceHandle());
XTPSkinManager()->LoadSkin(NULL, _T("NORMALBLUE.INI"));


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


Posted By: znakeeye
Date Posted: 14 January 2008 at 6:56pm
Thanks! You're da man!



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