diff options
| author | Jonas Kümmerlin <jonas@kuemmerlin.eu> | 2020-04-22 16:49:38 +0200 |
|---|---|---|
| committer | Jonas Kümmerlin <jonas@kuemmerlin.eu> | 2020-04-22 16:49:38 +0200 |
| commit | f81e1371de63c0bd4c0ae77cbba0fed908fd58b2 (patch) | |
| tree | 50fe12f2a0d0739c69265180b22fe1847f62d207 /widgetfactory.cpp | |
| parent | 31b35bfe05740beac6481e6ff8d365f2a9cebbb3 (diff) | |
notebook: save layout flags to control font and bg inheritance
this makes setting fonts and background color for tab panels work,
instead of appearing to work but then being overridden later
Diffstat (limited to 'widgetfactory.cpp')
| -rw-r--r-- | widgetfactory.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/widgetfactory.cpp b/widgetfactory.cpp index d27c068..e03c7fc 100644 --- a/widgetfactory.cpp +++ b/widgetfactory.cpp @@ -333,9 +333,10 @@ WinMain HWND hwndTabPanel0 = ALF_NotebookAddTab(hwndTab, TEXT("Notebook Debug")); HWND hwndTabPanel1 = ALF_NotebookAddTab(hwndTab, TEXT("Tab 1")); HWND hwndTabPanel2 = ALF_NotebookAddTab(hwndTab, TEXT("Tab 2")); - ALF_NotebookAddTab(hwndTab, TEXT("Another tab")); + HWND hwndTabPanel3 = ALF_NotebookAddTab(hwndTab, TEXT("Another tab")); ALF_NotebookAddTab(hwndTab, TEXT("Yet another empty tab")); + ALF_SetBackgroundColor(hwndTabPanel3, ALF_COLOR_RGB(0, 255, 0)); ALF_AddButton(hwndTabPanel0, ID_B_TABBGSOLID, 0, 0, TEXT("Solid tab background")); ALF_AddButton(hwndTabPanel0, ID_B_TABBGTEXTURE, 0, 1, TEXT("Textured tab background")); |
