comparison dwtest.c @ 2127:663467f6eee4

Code cleanup: Add constants to header for dark mode, buffer sizes and Unicode support. Windows and OS/2 can both be built without Unicode support for legacy platforms and apps. Some new Windows features require Unicode (notifications, edge) and Unicode is buggy on OS/2. Can now check if Unicode is supported with the DW_FEATURE_UTF8_UNICODE feature test. Dark mode constants added DW_DARK_MODE_DISABLED/BASIC/FULL/FORCED. Win: Include dw.h in the WinToast glue for the constants, and improve safety in Edge glue.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Sun, 28 Jun 2020 20:34:25 +0000
parents 79e5842fb609
children 0132afc8c955
comparison
equal deleted inserted replaced
2126:97839ff3c985 2127:663467f6eee4
1779 "Supports word wrapping in Multi-line Edit boxes", 1779 "Supports word wrapping in Multi-line Edit boxes",
1780 "Supports striped line display in container widgets", 1780 "Supports striped line display in container widgets",
1781 "Supports Multiple Document Interface window frame", 1781 "Supports Multiple Document Interface window frame",
1782 "Supports status text area on notebook/tabbed controls", 1782 "Supports status text area on notebook/tabbed controls",
1783 "Supports sending system notifications", 1783 "Supports sending system notifications",
1784 "Supports UTF8 encoded Unicode text",
1784 NULL }; 1785 NULL };
1785 1786
1786 /* 1787 /*
1787 * Let's demonstrate the functionality of this library. :) 1788 * Let's demonstrate the functionality of this library. :)
1788 */ 1789 */
1803 1804
1804 /* Setup the Application ID for sending notifications */ 1805 /* Setup the Application ID for sending notifications */
1805 dw_app_id_set("org.dbsoft.dwindows.dwtest", "Dynamic Windows Test"); 1806 dw_app_id_set("org.dbsoft.dwindows.dwtest", "Dynamic Windows Test");
1806 1807
1807 /* Enable full dark mode on platforms that support it */ 1808 /* Enable full dark mode on platforms that support it */
1808 dw_feature_set(DW_FEATURE_DARK_MODE, 2); 1809 dw_feature_set(DW_FEATURE_DARK_MODE, DW_DARK_MODE_FULL);
1809 1810
1810 /* Initialize the Dynamic Windows engine */ 1811 /* Initialize the Dynamic Windows engine */
1811 dw_init(TRUE, argc, argv); 1812 dw_init(TRUE, argc, argv);
1812 1813
1813 /* Test all the features and display the results */ 1814 /* Test all the features and display the results */