![]() |
CXTPTearOffFrame - incorrectly drawn skinned tabs |
Post Reply
|
| Author | |
jw_statica
Groupie
Joined: 23 May 2018 Status: Offline Points: 36 |
Post Options
Thanks(0)
Quote Reply
Topic: CXTPTearOffFrame - incorrectly drawn skinned tabsPosted: 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.
|
|
![]() |
|
agontarenko
Moderator Group
Joined: 25 March 2016 Status: Offline Points: 332 |
Post Options
Thanks(0)
Quote Reply
Posted: 08 April 2025 at 3:12am |
|
Hello, How can I reproduce this bug with our sample? Regards, Artem Gontarenko
|
|
![]() |
|
agontarenko
Moderator Group
Joined: 25 March 2016 Status: Offline Points: 332 |
Post Options
Thanks(0)
Quote Reply
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 |
|
![]() |
|
jw_statica
Groupie
Joined: 23 May 2018 Status: Offline Points: 36 |
Post Options
Thanks(0)
Quote Reply
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.
![]() |
|
![]() |
|
agontarenko
Moderator Group
Joined: 25 March 2016 Status: Offline Points: 332 |
Post Options
Thanks(0)
Quote Reply
Posted: 16 April 2025 at 7:54am |
|
What version СJ you use?
|
|
![]() |
|
agontarenko
Moderator Group
Joined: 25 March 2016 Status: Offline Points: 332 |
Post Options
Thanks(0)
Quote Reply
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 |
|
![]() |
|
jw_statica
Groupie
Joined: 23 May 2018 Status: Offline Points: 36 |
Post Options
Thanks(0)
Quote Reply
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?
|
|
![]() |
|
agontarenko
Moderator Group
Joined: 25 March 2016 Status: Offline Points: 332 |
Post Options
Thanks(0)
Quote Reply
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 |
|
![]() |
|
Post Reply
|
|
|
Tweet
|
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |