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

Is dual skin possible?

 Post Reply Post Reply
Author
Message
Bertrand View Drop Down
Newbie
Newbie


Joined: 28 August 2006
Location: Switzerland
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote Bertrand Quote  Post ReplyReply Direct Link To This Post Topic: Is dual skin possible?
    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
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 28 August 2006 at 8:03am
Hello,
Afraid you can't :(
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
Bertrand View Drop Down
Newbie
Newbie


Joined: 28 August 2006
Location: Switzerland
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote Bertrand Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
Bertrand View Drop Down
Newbie
Newbie


Joined: 28 August 2006
Location: Switzerland
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote Bertrand Quote  Post ReplyReply Direct Link To This Post Posted: 29 August 2006 at 10:32am
Great
Tx Oleg
 
 
Back to Top
arline View Drop Down
Newbie
Newbie


Joined: 28 November 2006
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote arline Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
arline View Drop Down
Newbie
Newbie


Joined: 28 November 2006
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote arline Quote  Post ReplyReply Direct Link To This Post Posted: 28 November 2006 at 1:20pm
OK, thanks... That's what I did and it seems to work fine.
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.187 seconds.