Print Page | Close Window

Is dual skin possible?

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=4895
Printed Date: 31 May 2024 at 2:42am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Is dual skin possible?
Posted By: Bertrand
Subject: Is dual skin possible?
Date Posted: 28 August 2006 at 5:19am
Hello,
 
We are really insterested to switch to CodeJock to skin our application.
 
But, I'm wonder if it is possible to have two different skin at the same time. 
Our application does/show two different job at the same time.
One job is made in the standard MDI framework and the other job in floating windows.
 
We would like that all windows (mainframe, MDI view, FileDialog....)  open from the first job have a particular look and all windows open from the other job have another look.
 
I'm aware that we can have at the same time some windows with the standard look and some others with the SkinFramework look.
 
But, it is possible to have two SkinFrameWork at the same time?
 
Thanks,
 
Bertrand



Replies:
Posted By: Oleg
Date Posted: 28 August 2006 at 8:03am
Hello,
Afraid you can't :(


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


Posted By: Bertrand
Date Posted: 29 August 2006 at 10:05am
Bad news
 
OK, so I can imagine to continue to apply our skin for our tools windows (we derived all windows classes (cdialogwnd, cminiframewnd...) and draw by ourself) and use CodeJock for the mainframe and all other windows.
But, the SkinFrameWork overwrite our skin.
I found a way to avoid this by modifying CXTPSkinManager::SetHook to filter ClassName prefixed by "MTCommonUI".
This works but I'm wonder if you know a better way to do that.
 
I'm aware that it is possible to don't apply the skin for some windows but the problem is that these windows are created by other COM object that are not aware of the CXTPSkinManager.
 
Thanks,
 
Bertrand


Posted By: Oleg
Date Posted: 29 August 2006 at 10:29am
For 10.3.1 we added GetCladdMap method - to allow include/exclude class names you want to apply, so you will be able to exclude "MTCommonUI" classes without changing our code.

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


Posted By: Bertrand
Date Posted: 29 August 2006 at 10:32am
Great
Tx Oleg
 
 


Posted By: arline
Date Posted: 28 November 2006 at 11:16am
Hi Oleg,
Calling GetClassMap seems to work fine, but the functions on the CXTPSkinObjectClassMap class are not exported so I get linker errors when trying to call RemoveClass, etc.
Is there another way to do this?  We are using the 10.3.1 xtpro version.
Thanks,
Arline


Posted By: Oleg
Date Posted: 28 November 2006 at 1:19pm

Hi,

 
please just add
class _XTP_EXT_CLASS CXTPSkinObjectClassMap
and build library.
 
We found this next day after release :(


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


Posted By: arline
Date Posted: 28 November 2006 at 1:20pm
OK, thanks... That's what I did and it seems to work fine.



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