Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - CXTPTearOffFrame - incorrectly drawn skinned tabs
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

CXTPTearOffFrame - incorrectly drawn skinned tabs

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


Joined: 23 May 2018
Status: Offline
Points: 33
Post Options Post Options   Thanks (0) Thanks(0)   Quote jw_statica Quote  Post ReplyReply Direct Link To This Post Topic: CXTPTearOffFrame - incorrectly drawn skinned tabs
    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.
Back to Top
agontarenko View Drop Down
Admin Group
Admin Group


Joined: 25 March 2016
Status: Offline
Points: 315
Post Options Post Options   Thanks (0) Thanks(0)   Quote agontarenko Quote  Post ReplyReply Direct Link To This Post Posted: 08 April 2025 at 3:12am
Hello, 

How can I reproduce this bug with our sample?

Regards,
Artem Gontarenko
Back to Top
agontarenko View Drop Down
Admin Group
Admin Group


Joined: 25 March 2016
Status: Offline
Points: 315
Post Options Post Options   Thanks (0) Thanks(0)   Quote agontarenko Quote  Post ReplyReply Direct Link To This Post Posted: 21 hours 20 minutes ago 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

Back to Top
jw_statica View Drop Down
Groupie
Groupie


Joined: 23 May 2018
Status: Offline
Points: 33
Post Options Post Options   Thanks (0) Thanks(0)   Quote jw_statica Quote  Post ReplyReply Direct Link To This Post Posted: 19 hours 24 minutes ago 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.

Back to Top
agontarenko View Drop Down
Admin Group
Admin Group


Joined: 25 March 2016
Status: Offline
Points: 315
Post Options Post Options   Thanks (0) Thanks(0)   Quote agontarenko Quote  Post ReplyReply Direct Link To This Post Posted: 19 hours 10 minutes ago at 7:54am
What version СJ you use?
Back to Top
agontarenko View Drop Down
Admin Group
Admin Group


Joined: 25 March 2016
Status: Offline
Points: 315
Post Options Post Options   Thanks (0) Thanks(0)   Quote agontarenko Quote  Post ReplyReply Direct Link To This Post Posted: 6 minutes ago 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

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.031 seconds.