Background color of CXTPRecentFileListBox |
Post Reply |
Author | |
hiro-ta
Groupie Joined: 11 July 2013 Status: Offline Points: 61 |
Post Options
Thanks(0)
Posted: 27 January 2020 at 4:08am |
background color of CXTPRecentFileListBox Please teach me how to change the background color of CXTPRecentFileListBox. I want to change the color from white to theme color. At the time of version 18.6.0, we could do it with the following changes. but it does not work in 19.1.0. > 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. [Development environment] Windows10 Pro Japanese VisualStudio2015 Toolkit Pro for Visual C++ 19.1.0 |
|
Fredrik
Senior Member Joined: 22 June 2005 Status: Offline Points: 235 |
Post Options
Thanks(0)
|
Shouldn't be more than a call to CXTPRibbonBackstagePageRecent::SetTheme(xtpControlThemeOffice2013) ?
I get a gray background for the recent file list when I change to one of the dark themes. I'm calling SetTheme in OnSetActive but there's probably a better place to do it. |
|
Windows 10, Visual Studio 20157, Toolkit Pro 18.3.0
|
|
hiro-ta
Groupie Joined: 11 July 2013 Status: Offline Points: 61 |
Post Options
Thanks(0)
|
Thank you for your reply. I tried the following but it didn't work. BOOL CXTPRibbonBackstagePageRecent::OnSetActive() { m_wndList.BuildItems(); SetTheme(xtpControlThemeOffice2013); return TRUE; } |
|
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 |