CXTPTabClientWnd Client Margin Color |
Post Reply |
Author | |
cpede
Senior Member Joined: 13 August 2004 Location: Denmark Status: Offline Points: 668 |
Post Options
Thanks(0)
Posted: 30 August 2017 at 6:01am |
When specifying a client margin using
How do I control the color of the margin in the Office theme? -cpede |
|
Product: Xtreme ToolkitPro (24.0.0)
Platform: Windows 10 (x64) Language: Visual Studio 2017 (C++) |
|
cpede
Senior Member Joined: 13 August 2004 Location: Denmark Status: Offline Points: 668 |
Post Options
Thanks(0)
|
Any comments from CJ?
-cpede
|
|
Product: Xtreme ToolkitPro (24.0.0)
Platform: Windows 10 (x64) Language: Visual Studio 2017 (C++) |
|
olebed
Admin Group Joined: 01 July 2014 Location: Ukraine Status: Offline Points: 841 |
Post Options
Thanks(0)
|
Hello cpede,
This color is defined in method GetItemColor() (for Office2013 it is CXTPTabColorSetVisualStudio2012::GetItemColor()) it is taken from CXTPTabPaintManagerColorSet::m_clrButtonSelected. If you need other color than tab background then you can redefine or change method CXTPTabPaintManagerColorSet::FillClient() Regards, Oleksandr Lebed |
|
cpede
Senior Member Joined: 13 August 2004 Location: Denmark Status: Offline Points: 668 |
Post Options
Thanks(0)
|
Hi,
Sorry not being totally clear here. The color I'm looking to change is the color appearing when you set a margin to the CXTPTabClientWnd using:
In this example the white'ish RGB(240, 240, 240) in all themes under the tab: -cpede
|
|
Product: Xtreme ToolkitPro (24.0.0)
Platform: Windows 10 (x64) Language: Visual Studio 2017 (C++) |
|
olebed
Admin Group Joined: 01 July 2014 Location: Ukraine Status: Offline Points: 841 |
Post Options
Thanks(0)
|
in RibbonMDISample
|
|
cpede
Senior Member Joined: 13 August 2004 Location: Denmark Status: Offline Points: 668 |
Post Options
Thanks(0)
|
OK, this seems to work when the m_clientFrame is not xtpTabFrameNone.
But I don't want the border, so what if the following is set?
In this case CXTPTabPaintManagerColorSet::FillClient is never called? -cpede
|
|
Product: Xtreme ToolkitPro (24.0.0)
Platform: Windows 10 (x64) Language: Visual Studio 2017 (C++) |
|
cpede
Senior Member Joined: 13 August 2004 Location: Denmark Status: Offline Points: 668 |
Post Options
Thanks(0)
|
Any comments from CJ?
-cpede
|
|
Product: Xtreme ToolkitPro (24.0.0)
Platform: Windows 10 (x64) Language: Visual Studio 2017 (C++) |
|
cpede
Senior Member Joined: 13 August 2004 Location: Denmark Status: Offline Points: 668 |
Post Options
Thanks(0)
|
Still a problem in v18.2.0.
-cpede
|
|
Product: Xtreme ToolkitPro (24.0.0)
Platform: Windows 10 (x64) Language: Visual Studio 2017 (C++) |
|
adamg
Groupie Joined: 16 July 2018 Status: Offline Points: 32 |
Post Options
Thanks(0)
|
and in 18.6 as well, how to get gap free MDI Tabs? Adam
|
|
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 |