Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Skin Framework
  New Posts New Posts RSS Feed - Skinning an CXTResizeFormView
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Skinning an CXTResizeFormView

 Post Reply Post Reply
Author
Message
Paddy View Drop Down
Groupie
Groupie


Joined: 28 July 2003
Status: Offline
Points: 15
Post Options Post Options   Thanks (0) Thanks(0)   Quote Paddy Quote  Post ReplyReply Direct Link To This Post Topic: Skinning an CXTResizeFormView
    Posted: 21 January 2009 at 4:26am
Hi,

I try to build a SDI app with a CXTResizeFormView. But the FormView still looks gray:



Can I change this? Sample is attached...

Thanks in advance,

Patrik
uploads/20090121_042332_SkinProblem.zip
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: 21 January 2009 at 8:12am
Hi,
you don't call LoadSkin.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
Paddy View Drop Down
Groupie
Groupie


Joined: 28 July 2003
Status: Offline
Points: 15
Post Options Post Options   Thanks (0) Thanks(0)   Quote Paddy Quote  Post ReplyReply Direct Link To This Post Posted: 22 January 2009 at 2:40am
Hi Oleg,

as said it is a small sample. If I load a skin I still have the grey background. What would be the best method for using the background from the loaded skin? In my app the skin is changeable at runtime.

The XTP version is 12.1.0.

Greets,

Patrik
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: 22 January 2009 at 3:46am
Hi,
 
Even in small samle you have call LoadSkin :)
 
Add this code to constructor
 
CMainFrame::CMainFrame()
{
 XTPSkinManager()->LoadSkin("Office2007.cjstyles");
}
 
and add Office2007.cjstyles to your Debug folder.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
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.156 seconds.