Print Page | Close Window

Theme

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=24258
Printed Date: 21 December 2024 at 9:32pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Theme
Posted By: erik1
Subject: Theme
Date Posted: 13 January 2022 at 5:11am
Hello, 
recently I updated from 19.1.0 version to 20.1.0 version, but few problems with themes appeared. I found that probles are with loading and unloading themes in XTPSkinManager.cpp.

void CXTPSkinManagerClass::BindTheme(HTHEME hTheme)
{
m_themeClasses.SetAt(hTheme, this);
}

void CXTPSkinManagerClass::UnbindTheme(HTHEME hTheme)
{
m_themeClasses.RemoveKey(hTheme);
}

Few items like tabs have this problem, others are ok.

Description of problem:
Tab themes are created with same HTHEME, so TAB theme is added to m_themeClasses  only once. When I open new window with TABS, new TAB themes want to be added to m_themeClasses, but they are not added because they have same HTHEME. When I close this new window TAB theme is deleted from m_themeClasses. Because in m_themeClasses is TAB theme only once, TAB theme is completly deleted from m_themeClasses. So after new window is closed and focus returns to application, TABS are without theme (the are greyed).
in 19.1.0 version themes works ok.




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