Print Page | Close Window

Skin applied to particular dialog

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=10174
Printed Date: 23 November 2024 at 9:14am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Skin applied to particular dialog
Posted By: himanshu
Subject: Skin applied to particular dialog
Date Posted: 10 April 2008 at 6:01am
Hi
 
If we apply skin effect in application it gets applied to everything .
e.g. All the dialogs i application we show the same skin effect.
Is there a way to apply skin in such a way that only some/particular dialogs  will show the skin effect and others don't
 
I mean i want selectively for the dialogs/other controls to show the skin effect .
Could we do that?
 
Secondly the files used to apply skin .cjstyle files could we edit those files
if yes how to do that.
 
Thanks in advance
Himanshu



Replies:
Posted By: Oleg
Date Posted: 10 April 2008 at 6:30am
Hi,
 
Call SetAutoApplyNewWindows(FALSE) and apply windows you only need.


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


Posted By: himanshu
Date Posted: 10 April 2008 at 7:14am
Hi
 
where to call that function and how to apply for particular windows only.


Posted By: pijnappel
Date Posted: 11 April 2008 at 7:20am
I have a similar problem.

I am using the following code to load the skin:


XTPSkinManager()->SetAutoApplyNewWindows(FALSE);
XTPSkinManager()->SetAutoApplyNewThreads(FALSE);
XTPSkinManager()->LoadSkin(m_strStylePath"));


To assign a window I use:


XTPSkinManager()->ApplyWindow(myWindow.m_hwnd);


The applied dialog is skinned, but the colors of the loaded skin are also applied to the other dialogs. For instance the background of static text controls is different from the default windows skin.

Example of the loaded skin:




Another dialog as it should be:



And that's how it looks like when the other theme is loaded:




Posted By: xhantt
Date Posted: 16 April 2008 at 11:37am
In my case if I set this options before any other operation

XTPSkinManager()->SetApplyOptions(xtpSkinApplyMetrics | xtpSkinApplyFrame );


it seems to work.

But I don't know if this is the correct solution, I'm glad to know other approaches.


Posted By: Oleg
Date Posted: 16 April 2008 at 2:47pm
Yes, its only right solution.

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


Posted By: pijnappel
Date Posted: 17 April 2008 at 4:34am

That worked...thanks




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