Print Page | Close Window

basic skin questions

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=19698
Printed Date: 24 November 2024 at 6:29am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: basic skin questions
Posted By: dalai
Subject: basic skin questions
Date 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 - 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?




Replies:
Posted By: SuperMario
Date 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: 
https://forum.codejock.com/forum_posts.asp?TID=16653&KW=rc2&PID=58697&title=loadskin-from-resource#58697 - https://forum.codejock.com/forum_posts.asp?TID=16653&KW=rc2&PID=58697&title=loadskin-from-resource#58697


Posted By: dalai
Date 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?



Posted By: dalai
Date Posted: 27 April 2012 at 6:53am
it would probably make life easier if there was a sample project?


Posted By: dalai
Date 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);



Posted By: blaider
Date 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



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