One theme for all controls? |
Post Reply |
Author | |
maxxan
Groupie Joined: 15 July 2009 Status: Offline Points: 49 |
Post Options
Thanks(0)
Posted: 11 January 2016 at 8:13am |
Is there a way to set one theme for the app (say VS2015) and then all controls uses that theme or do I have to set the theme for every single control, like report control, pane manager, task panels etc? Sounds very inconvenient that that's the case!
I tried XTPThemeDLL()->SetHandle(xtpIniVisualStudio2015Dark); CXTPPaintManager::SetTheme(xtpThemeVisualStudio2015); in OnCreate, before any other control is created, but that does just change the theme for ribbons and the frame, but all controls in the app have a different theme..
|
|
cpede
Senior Member Joined: 13 August 2004 Location: Denmark Status: Offline Points: 668 |
Post Options
Thanks(0)
|
I fully understand your frustration. Just look at the samples, how many time SetTheme, SetStyle etc. are called.
I wrote a similar question in: http://forum.codejock.com/forum_posts.asp?TID=22449 I really hope CodeJock consider this. -cpede
|
|
Product: Xtreme ToolkitPro (24.0.0)
Platform: Windows 10 (x64) Language: Visual Studio 2017 (C++) |
|
maxxan
Groupie Joined: 15 July 2009 Status: Offline Points: 49 |
Post Options
Thanks(0)
|
Yeah, it would be so much better if it was possible to set a theme for the whole application.
|
|
kstowell
Admin Group Joined: 25 January 2003 Location: MIchigan, USA Status: Offline Points: 496 |
Post Options
Thanks(0)
|
You can use your top level window to send a WM_XTP_SETCONTROLTHEME message to all Controls objects like Buttons, Edit, etc that will allow you to make a single call. We will be adding this functionality to remaining classes as well in the near future.
|
|
Kirk Stowell, President and CEO
CODEJOCK SOFTWARE SOLUTIONS< |
|
maxxan
Groupie Joined: 15 July 2009 Status: Offline Points: 49 |
Post Options
Thanks(0)
|
Ok, so I create all controls first, then set the theme..
Maybe you should add that when a control is created, it should set its theme to what is currently set as a default theme.
|
|
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 |