Print Page | Close Window

Custom themed CXTPTabView no longer works

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=19449
Printed Date: 02 July 2024 at 8:52pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Custom themed CXTPTabView no longer works
Posted By: mojonez
Subject: Custom themed CXTPTabView no longer works
Date Posted: 31 January 2012 at 5:46pm

We have some 12.x code that subclasses the Tab control theme and works well:

 

CXTTabView * mAppSettingsPane;

  ...
  ...
 
CMJTabBaseTheme * pTabTheme2 = new CMJTabBaseTheme();
mAppSettingsPane->SetTheme(xtThemeOfficeXP);
mAppSettingsPane->SetTheme(pTabTheme2);
 
where:
 
class _XTP_EXT_CLASS CMJTabBaseTheme : public CXTPTabBaseThemeOfficeXP

After upgrading to 15.2, the code no longer compiles.  Looking at the source it appears CXTTabView has been renamed to CXTPTabView, and the SetTheme() method no longer can take a pointer to a custom theme.  I can't seem to find any example of how to achieve the same thing in 15.x. 

Does anyone know how to fix this?
 
thx!
 

 




Replies:
Posted By: mojonez
Date Posted: 07 February 2012 at 9:04pm
Just to clsoe the loop, we've worked around this issue by subclassing the CXTPTabView and adding our own theme handler:

class CMJTabView : public CXTPTabView
{
public:
void SetCustomTheme(CXTPTabBaseTheme* pTheme) { m_pTheme = pTheme; RefreshMetrics(); }
};





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