Is dual skin possible? |
Post Reply |
Author | |
Bertrand
Newbie Joined: 28 August 2006 Location: Switzerland Status: Offline Points: 5 |
Post Options
Thanks(0)
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
|
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hello,
Afraid you can't :(
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
Bertrand
Newbie Joined: 28 August 2006 Location: Switzerland Status: Offline Points: 5 |
Post Options
Thanks(0)
|
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
|
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
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 |
|
Bertrand
Newbie Joined: 28 August 2006 Location: Switzerland Status: Offline Points: 5 |
Post Options
Thanks(0)
|
Great
Tx Oleg |
|
arline
Newbie Joined: 28 November 2006 Status: Offline Points: 2 |
Post Options
Thanks(0)
|
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
|
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
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 |
|
arline
Newbie Joined: 28 November 2006 Status: Offline Points: 2 |
Post Options
Thanks(0)
|
OK, thanks... That's what I did and it seems to work fine.
|
|
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 |