Print Page | Close Window

Skinning an CXTResizeFormView

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=13218
Printed Date: 22 November 2024 at 9:51pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Skinning an CXTResizeFormView
Posted By: Paddy
Subject: Skinning an CXTResizeFormView
Date 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 - uploads/20090121_042332_SkinProblem.zip



Replies:
Posted By: Oleg
Date Posted: 21 January 2009 at 8:12am
Hi,
you don't call LoadSkin.


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


Posted By: Paddy
Date 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


Posted By: Oleg
Date 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



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