Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Skin Framework
  New Posts New Posts RSS Feed - basic skin questions
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

basic skin questions

 Post Reply Post Reply
Author
Message
dalai View Drop Down
Groupie
Groupie


Joined: 07 January 2011
Status: Offline
Points: 36
Post Options Post Options   Thanks (0) Thanks(0)   Quote dalai Quote  Post ReplyReply Direct Link To This Post Topic: basic skin questions
    Posted: 26 April 2012 at 9:11am

Looking at sample SkinControls and have 3 questions:

1. in CSkinControlsDlg::CSkinControlsDlg and in

XTPSkinManager()->LoadSkin(m_strStylesPath + _T("Vista.cjstyles"), _T("NormalBlack2.ini"));

where is file NormalBlack2.ini?

2. when running SkinControls it creates \bin\vc100\Styles folder and would like to know where the code is that does this?

3. want to avoid installing .cjstyles files and have looked at

https://forum.codejock.com/forum_posts.asp?TID=9783&title=load-style-without-cjstylesfiles

but cannot find any info about putting the needed rc-files in your rc2-file and using them?

Back to Top
SuperMario View Drop Down
Admin Group
Admin Group
Avatar

Joined: 14 February 2004
Status: Offline
Points: 18057
Post Options Post Options   Thanks (0) Thanks(0)   Quote SuperMario Quote  Post ReplyReply Direct Link To This Post Posted: 26 April 2012 at 9:30am

1. It is "inside" Vista.cjstyles, you can open this in Skinbuilder and see the different ini.
2. It's a custom build step:


3. Here is a better link: 
Back to Top
dalai View Drop Down
Groupie
Groupie


Joined: 07 January 2011
Status: Offline
Points: 36
Post Options Post Options   Thanks (0) Thanks(0)   Quote dalai Quote  Post ReplyReply Direct Link To This Post Posted: 26 April 2012 at 11:30am

have added/included vista.rc alongside in CodejockSample.rc in .rc2

#include "CodejockSample.rc"

#include "Vista.rc"

and

XTPSkinManager()->LoadSkin(NULL, _T("NormalBlack2.ini"));

in CReportDialogExDlg::CReportDialogExDlg but nothing happens. am I missing so something?

Back to Top
dalai View Drop Down
Groupie
Groupie


Joined: 07 January 2011
Status: Offline
Points: 36
Post Options Post Options   Thanks (0) Thanks(0)   Quote dalai Quote  Post ReplyReply Direct Link To This Post Posted: 27 April 2012 at 6:53am
it would probably make life easier if there was a sample project?
Back to Top
dalai View Drop Down
Groupie
Groupie


Joined: 07 January 2011
Status: Offline
Points: 36
Post Options Post Options   Thanks (0) Thanks(0)   Quote dalai Quote  Post ReplyReply Direct Link To This Post Posted: 27 April 2012 at 7:48am

ok this works ...

have added/included vista.rc alongside in CodejockSample.rc in .rc2

#include "CodejockSample.rc"
#include "Vista.rc"

and in constructor

XTPSkinManager()->GetResourceFile()->SetModuleHandle(AfxGetInstanceHandle());
XTPSkinManager()->LoadSkin(NULL, _T("NormalBlack2.ini")); 
XTPSkinManager()->SetApplyOptions(xtpSkinApplyFrame | xtpSkinApplyMetrics);

Back to Top
blaider View Drop Down
Newbie
Newbie


Joined: 17 November 2012
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote blaider Quote  Post ReplyReply Direct Link To This Post Posted: 18 November 2012 at 12:51am
Originally posted by dalai dalai wrote:

ok this works ...

have added/included vista.rc alongside in CodejockSample.rc in .rc2

#include "CodejockSample.rc"
#include "Vista.rc"

and in constructor

XTPSkinManager()->GetResourceFile()->SetModuleHandle(AfxGetInstanceHandle());
XTPSkinManager()->LoadSkin(NULL, _T("NormalBlack2.ini")); 
XTPSkinManager()->SetApplyOptions(xtpSkinApplyFrame | xtpSkinApplyMetrics);

thx
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.158 seconds.