How to apply dark theme to dialog boxes |
Post Reply |
Author | |
g_j_a_i_n
Groupie Joined: 27 August 2005 Status: Offline Points: 91 |
Post Options
Thanks(0)
Posted: 26 June 2020 at 8:47am |
Hello, I am using the following for dark theme and also made docking page, splitter etc use dark theme. CXTPPaintManager::SetTheme(xtpThemeVisualStudio2012Dark); This is working well. Now, I don't know how to automatically make the dialog boxes also use the dark theme. Is there a way I can set a theme etc to tell all dialog boxes to use dark background and light text color. Basically dark theme. Thanks.
|
|
g_j_a_i_n
Groupie Joined: 27 August 2005 Status: Offline Points: 91 |
Post Options
Thanks(1)
|
I saw the Controls sample and GUI_VisualStudio sample. Looks like I have to handle the WM_CTLCOLOR message to implement dark mode in dialogs. This would work for many controls. But won't work for buttons (Button, Checkbox, Radio buttons). We will have to use CXTPButton::SetTheme for such cases.
Posted this so that it can helps someone.
|
|
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 |