![]() |
background color of RecentFileListBox |
Post Reply ![]() |
Author | |
Nick ![]() Groupie ![]() Joined: 23 July 2012 Location: United Kingdom Status: Offline Points: 30 |
![]() ![]() ![]() ![]() ![]() Posted: 20 January 2018 at 3:25pm |
Can you confirm there is an issue with the BackstagePageRecent not being themed properly? Is there a workaround for this?
|
|
![]() |
|
olebed ![]() Admin Group ![]() Joined: 01 July 2014 Location: Ukraine Status: Offline Points: 841 |
![]() ![]() ![]() ![]() ![]() |
I think you ask about white background of ListBox. I have seen this and it is very annoying on Dark themes. Unfortunately I can't find reason. This even not always can be reproduced but often. I will add this to our tasks/bugs database.
|
|
![]() |
|
Nick ![]() Groupie ![]() Joined: 23 July 2012 Location: United Kingdom Status: Offline Points: 30 |
![]() ![]() ![]() ![]() ![]() |
yes, the white background and also the wrong foreground color and mouseover styling - it looks like it's reverting to the basic windows theme no matter what the theme actually is.
|
|
![]() |
|
Nick ![]() Groupie ![]() Joined: 23 July 2012 Location: United Kingdom Status: Offline Points: 30 |
![]() ![]() ![]() ![]() ![]() |
I found a bit more information:
the first time you select an office theme that is a different version of office from the current theme, the BackstageListBox theme is wrong (e.g. change from one of the office 2010 themes to one of the office 2013 themes). But then if you select another variant from the same office version (e.g. after selecting office 2013 white, select office 2013 grey), then the BackstageListBox does adopt the correct theme. |
|
![]() |
|
Nick ![]() Groupie ![]() Joined: 23 July 2012 Location: United Kingdom Status: Offline Points: 30 |
![]() ![]() ![]() ![]() ![]() |
...apart from the background color that is.
|
|
![]() |
|
hiro-ta ![]() Groupie ![]() Joined: 11 July 2013 Status: Offline Points: 63 |
![]() ![]() ![]() ![]() ![]() |
Please teach me how to change the background color of CXTPRecentFileListBox.
I want to change the color from white to theme color. [Development environment] Windows10 Pro Japanese VisualStudio2010 SP1 Toolkit Pro for Visual C++ 18.2.0 ![]() |
|
![]() |
|
olebed ![]() Admin Group ![]() Joined: 01 July 2014 Location: Ukraine Status: Offline Points: 841 |
![]() ![]() ![]() ![]() ![]() |
Hello, You need to edit and rebuild Office2016.dll (Source\Styles\Office2016\) Edit desired INI files in section [CommandBars.Gallery] change property "Back" Regards, Oleksandr Lebed |
|
![]() |
|
hiro-ta ![]() Groupie ![]() Joined: 11 July 2013 Status: Offline Points: 63 |
![]() ![]() ![]() ![]() ![]() |
Hi,
I tried how to edit ini(Office2016PowerPointColorful.ini). [CommandBars.Gallery] Back = 255 0 0 But the color did'nt change. |
|
![]() |
|
hiro-ta ![]() Groupie ![]() Joined: 11 July 2013 Status: Offline Points: 63 |
![]() ![]() ![]() ![]() ![]() |
![]() |
|
![]() |
|
olebed ![]() Admin Group ![]() Joined: 01 July 2014 Location: Ukraine Status: Offline Points: 841 |
![]() ![]() ![]() ![]() ![]() |
Hello hiro-ta,
Maybe your RecentFileList is transparent ? see implementation of CXTPControlGalleryOffice2013Theme::FillControl() [CommandBars.Gallery] "Back" is CXTPControlGalleryOffice2013Theme::m_clrBack Regards, Oleksandr Lebed |
|
![]() |
|
hiro-ta ![]() Groupie ![]() Joined: 11 July 2013 Status: Offline Points: 63 |
![]() ![]() ![]() ![]() ![]() |
Hello olebed,
No. My RecentFileList is not transparent. Please teach me how to specify the parameter[CXTPControlGalleryOffice2013Theme::m_clrBack].
|
|
![]() |
|
olebed ![]() Admin Group ![]() Joined: 01 July 2014 Location: Ukraine Status: Offline Points: 841 |
![]() ![]() ![]() ![]() ![]() |
Hello hiro-ta,
You need to set breakpoint in method CXTPControlGalleryOffice2013Theme::FillControl() and see what conditions work and what color is used there. |
|
![]() |
|
hiro-ta ![]() Groupie ![]() Joined: 11 July 2013 Status: Offline Points: 63 |
![]() ![]() ![]() ![]() ![]() |
Hello olebed,
Sorry, My RecentFileList was transparent. I do not know why transparency is specified. What should I do?
|
|
![]() |
|
olebed ![]() Admin Group ![]() Joined: 01 July 2014 Location: Ukraine Status: Offline Points: 841 |
![]() ![]() ![]() ![]() ![]() |
you need to call SetTransparent(FALSE) for gallery control.
If you use CXTPRibbonBackstagePageRecent then see implementation of CXTPRibbonBackstagePageRecent::SetTheme(). It calls m_wndList.GetGallery()->SetTransparent(FALSE);
before change theme. By default this option is false, see constructor CXTPControlGallery::CXTPControlGallery(). Set breakpoint in CXTPControlGallery::SetTransparent() or data breakpoint for CXTPControlGallery::m_bTransparent to see where it is changed. |
|
![]() |
|
hiro-ta ![]() Groupie ![]() Joined: 11 July 2013 Status: Offline Points: 63 |
![]() ![]() ![]() ![]() ![]() |
I tried it with a ribbon sample.
m_bTransparent was FALSE but m_clrBack was white. How can I change the background color? ![]() |
|
![]() |
|
olebed ![]() Admin Group ![]() Joined: 01 July 2014 Location: Ukraine Status: Offline Points: 841 |
![]() ![]() ![]() ![]() ![]() |
you can change CXTPControlGalleryOffice2013Theme::m_clrBack right after changing theme or hardcode desired color in INI file like described above.
|
|
![]() |
|
hiro-ta ![]() Groupie ![]() Joined: 11 July 2013 Status: Offline Points: 63 |
![]() ![]() ![]() ![]() ![]() |
I can not hardcode.
CXTPControlGalleryOffice2013Theme::m_clrBack is protected. Is there a way to change m_clrBack ?
|
|
![]() |
|
olebed ![]() Admin Group ![]() Joined: 01 July 2014 Location: Ukraine Status: Offline Points: 841 |
![]() ![]() ![]() ![]() ![]() |
You did this before but your Recent File List was transparent. |
|
![]() |
|
hiro-ta ![]() Groupie ![]() Joined: 11 July 2013 Status: Offline Points: 63 |
![]() ![]() ![]() ![]() ![]() |
It is the same as hardcode. I can not do it because I make it possible to choose a GUI style.
|
|
![]() |
|
olebed ![]() Admin Group ![]() Joined: 01 July 2014 Location: Ukraine Status: Offline Points: 841 |
![]() ![]() ![]() ![]() ![]() |
You can change our library, add public setter/getter for that property and rebuild lib.
|
|
![]() |
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 |