Mercurial > projects > dwt-win
comparison README.txt @ 188:03f179597782
Make WinXP themes work with windows resources
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Sat, 15 Mar 2008 00:33:19 +0100 |
parents | e0ea5a76da07 |
children | f9012ceeafea |
comparison
equal
deleted
inserted
replaced
187:bcdc37794717 | 188:03f179597782 |
---|---|
38 For dmd linker 'optlink' there is the option SUBSYSTEM which defines if the executable | 38 For dmd linker 'optlink' there is the option SUBSYSTEM which defines if the executable |
39 shall be a console or windows application and the minimum required windows version (4=win95,5=win2000,6=vista) | 39 shall be a console or windows application and the minimum required windows version (4=win95,5=win2000,6=vista) |
40 -L/SUBSYSTEM:windows:5 | 40 -L/SUBSYSTEM:windows:5 |
41 Without this option, DWT renderes some controls not correctly. Eg. table headers are not shown. | 41 Without this option, DWT renderes some controls not correctly. Eg. table headers are not shown. |
42 | 42 |
43 | |
44 WinXP Theming and Controls | |
45 ========================== | |
46 With WinXP it is required to make windows use a manifest. | |
47 There are several ways to make this manifest available. | |
48 1.) Place the manifest file in the same directory where the .exe is. | |
49 E.g. | |
50 application.exe | |
51 application.exe.manifest | |
52 2.) Link the content of the manifest to the application as a windows resource. | |
53 3.) Have another program that uses resource injection to put the manifest into the application | |
54 4.) Let the application write the manifest to a an external file and load it. | |
55 This had problems in the past, some applications on some machines did not load images. | |
56 | |
57 1. .. 3.) Seems to work reliable. | |
58 | |
59 * Using 2. | |
60 compile the dwt.rc/dwt.exe.manifest files with rcc.exe from the digitalmars to create the dwt.res. | |
61 rcc dwt.rc | |
62 link the resulting dwt.res with the -L/rc:dwt.res | |
63 | |
43 Changes/Additions to SWT | 64 Changes/Additions to SWT |
44 ======================== | 65 ======================== |
45 o MessageBox can be instantiated without parent. Use the Ctor "this( int style )", | 66 o MessageBox can be instantiated without parent. Use the Ctor "this( int style )", |
46 calling the other ctors will still force a non-null parent. | 67 calling the other ctors will still force a non-null parent. |
47 o Allow null argument for | 68 o Allow null argument for |