![]() |
Ribbon + Vista skin? |
Post Reply
|
| Author | |
znakeeye
Senior Member
Joined: 26 July 2006 Status: Offline Points: 1672 |
Post Options
Thanks(0)
Quote Reply
Topic: Ribbon + Vista skin?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.
|
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
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 |
|
![]() |
|
znakeeye
Senior Member
Joined: 26 July 2006 Status: Offline Points: 1672 |
Post Options
Thanks(0)
Quote Reply
Posted: 13 January 2008 at 2:26pm |
|
Both dialog background and controls. Also, the pane tabs look different, if I recall correctly.
|
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
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 |
|
![]() |
|
znakeeye
Senior Member
Joined: 26 July 2006 Status: Offline Points: 1672 |
Post Options
Thanks(0)
Quote Reply
Posted: 14 January 2008 at 6:56pm |
|
Thanks! You're da man!
|
|
![]() |
|
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 |