Print Page | Close Window

CXTPTearOffFrame - incorrectly drawn skinned tabs

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=24559
Printed Date: 31 May 2025 at 11:02pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: CXTPTearOffFrame - incorrectly drawn skinned tabs
Posted By: jw_statica
Subject: CXTPTearOffFrame - incorrectly drawn skinned tabs
Date Posted: 25 March 2025 at 5:50am

Does anyone else have this problem? When I tear off the tab the tabs section won't draw correctly while dragging. The right part of the window isn't drawn either. We use an Office2016.dll style with our custom Skin.



Replies:
Posted By: agontarenko
Date Posted: 08 April 2025 at 3:12am
Hello, 

How can I reproduce this bug with our sample?

Regards,
Artem Gontarenko


Posted By: agontarenko
Date Posted: 16 April 2025 at 5:44am
Hello,

Could you create sample with Codejock Wizard and recheck this problem? 
Send me please it if problem will be reproduce.

Regards,
Artem Gontarenko



Posted By: jw_statica
Date Posted: 16 April 2025 at 7:40am
I can reproduce this with SkinMDISample, by enabling TearOff in m_MTIClientWnd, forcefully setting a theme with XTPPaintManager()->SetTheme(xtpThemeOffice2016), and using our theme file. It seems that the torn off window will try to draw both themed window header and the unthemed tab background. This happens while the tab is being dragged off, if fully detached it will redraw correctly.



Posted By: agontarenko
Date Posted: 16 April 2025 at 7:54am
What version СJ you use?


Posted By: agontarenko
Date Posted: 17 April 2025 at 2:58am
Hello,

I can to suppose that problem with Skin and Theme using together. 
Since 24.0 we changed logic of Skin and Theme using together

If you use SkinManager (for frame) and add CommandBar then SkinManager will be disabled because they are not compatible.

See plese CXTPCommandBarsFrameHook::CXTPCommandBarsFrameHook()
{
...
    if (!XTPSkinManager()->IsSkinApplyCommandBarsFrame())
        XTPSkinManager()->DisableSkinFrameOption();
}
and CXTPCommandBarsFrameHook::~CXTPCommandBarsFrameHook() functions.

To inform about thius problem we added message in Output log
"Codejock Skinframework is incompatible when used with Codejock CommandBars. xtpSkinApplyFrame option will be disabled."

Regards,
Artem Gontarenko



Posted By: jw_statica
Date Posted: 17 April 2025 at 4:55am
Disabling xtpSkinApplyFrame results in child windows of a tabbed pane not being skinned.


Is there a good way to manually enable frame skinning for particular CWnds?


Posted By: agontarenko
Date Posted: 17 April 2025 at 10:45am
I recommend you not use CommandBars themes with Skin together.
We not tested it together, many problems is here.

Regards,
Artem Gontarenko



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