[solved] BackStage label controls ignore theme |
Post Reply |
Author | |
SvenC
Groupie Joined: 02 February 2007 Status: Offline Points: 79 |
Post Options
Thanks(0)
Posted: 23 February 2016 at 4:52am |
When I use the Office 2013 theme the background color gets set to light grey for the large right backstage area and the command area on the left has a dark blue background.
But label controls on the right side get a white background (tried transparent style, didn't help). If the label height is higher than the text height, the bottom background of the label area is dark blue. This is a regression compared to 16.3 and 17.0 I tried SetTheme on the labels, but looking at the impl that does nothing. The backstage theme was set by calling SetTheme on the CXTPRibbonBackstageView. Any workarounds?
|
|
--
SvenC Toolkit Pro 15.3.1, 16.2.4, 16.3.1, 16.4.0, 17.2.0, 17.3.0, 18.0.1, 18.2 with VC++ 2010, 2012, 2013, 2015, 2017 |
|
SvenC
Groupie Joined: 02 February 2007 Status: Offline Points: 79 |
Post Options
Thanks(0)
|
One more note: making the window smaller and larger again leaves the dark blue areas of the labels black. So redraw makes it even worse.
|
|
--
SvenC Toolkit Pro 15.3.1, 16.2.4, 16.3.1, 16.4.0, 17.2.0, 17.3.0, 18.0.1, 18.2 with VC++ 2010, 2012, 2013, 2015, 2017 |
|
olebed
Admin Group Joined: 01 July 2014 Location: Ukraine Status: Offline Points: 841 |
Post Options
Thanks(0)
|
Hello SvenC,
What version of ToolKitPro do you use to get this issues ? Did you try to use last v17.1? It has fixed backstage for themes office2013 and VS2015. Regards, Oleksandr Lebed |
|
SvenC
Groupie Joined: 02 February 2007 Status: Offline Points: 79 |
Post Options
Thanks(0)
|
This is new to 17.1
Worked correctly with 17.0
|
|
--
SvenC Toolkit Pro 15.3.1, 16.2.4, 16.3.1, 16.4.0, 17.2.0, 17.3.0, 18.0.1, 18.2 with VC++ 2010, 2012, 2013, 2015, 2017 |
|
olebed
Admin Group Joined: 01 July 2014 Location: Ukraine Status: Offline Points: 841 |
Post Options
Thanks(0)
|
There are some changes in setting theme for backstage and its elements.
You can use RibbonSample as example. See next methods:
CMainFrame::OnOptionsStyleOffice2013, CBackstagePageInfo::SetTheme |
|
SvenC
Groupie Joined: 02 February 2007 Status: Offline Points: 79 |
Post Options
Thanks(0)
|
That got me into the right direction: I overwrote CXTPRibbonBackstagePage::SetTheme and missed to call the base implementation. After adding this line in my override all is well again:
CXTPRibbonBackstagePage::SetTheme(nTheme); |
|
--
SvenC Toolkit Pro 15.3.1, 16.2.4, 16.3.1, 16.4.0, 17.2.0, 17.3.0, 18.0.1, 18.2 with VC++ 2010, 2012, 2013, 2015, 2017 |
|
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 |