summaryrefslogtreecommitdiff
path: root/widgetfactory.cpp
diff options
context:
space:
mode:
authorJonas Kümmerlin <jonas@kuemmerlin.eu>2020-04-18 17:34:55 +0200
committerJonas Kümmerlin <jonas@kuemmerlin.eu>2020-04-18 17:34:55 +0200
commit479d1226faaa937ef6820b14f36099ef3f575883 (patch)
tree10e5560fb8bae6c317ca06564c9609c3c498503e /widgetfactory.cpp
parent4054b17c661d2e709895e8235e9dce6edaa61e4f (diff)
implement background color
reduce flickering by keeping pixels if we know the background didn't change panel text is now gone, it would require us to redraw every transparent widget on top, which is a bad tradeoff since that panel text isn't very useful anyway.
Diffstat (limited to 'widgetfactory.cpp')
-rw-r--r--widgetfactory.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/widgetfactory.cpp b/widgetfactory.cpp
index 5ef96f1..eed7909 100644
--- a/widgetfactory.cpp
+++ b/widgetfactory.cpp
@@ -208,6 +208,9 @@ WinMain
ALF_SetText(hwndTabPanel2, TEXT("Panel Text Demo Test Test Test"));
+ HWND l = ALF_AddLabel(win, (WORD)-1, 3, 7, TEXT("Hello There"));
+ SendMessage(l, ALF_WM_LBL_SETSTYLE, 0, ALF_LABEL_ALIGN_HCENTER | ALF_LABEL_ALIGN_VCENTER);
+
ALF_SetDefaultButton(win, ID_B2);
ALF_ComboBoxSetText(hwndCombo2, TEXT("Goodbye World!"));
@@ -216,6 +219,8 @@ WinMain
ALF_LayoutSetColumnExpandNumerator(win, 1, 4);
ALF_LayoutSetColumnExpandNumerator(win, 3, 1);
+ //SendMessage(win, ALF_WM_SETBGCOLOR, (WPARAM)RGB(0, 0, 255), 0);
+
EnableWindow(ALF_WidgetHwndById(win, ID_LBL3), FALSE);
ALF_ResizeWindow(win, 1, 1);