Mercurial > projects > dwt-win
annotate README.txt @ 284:bb89fd34ec82
Fix for OLE functionality. Thanks to Enzo Petrelli
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Wed, 20 Aug 2008 15:20:55 +0200 |
parents | 50ff93cdc412 |
children |
rev | line source |
---|---|
58 | 1 |
2 DWT-Win | |
3 ======= | |
4 | |
5 Requirements: | |
6 ============= | |
176 | 7 Buildtool : DSSS 0.75 |
270
50ff93cdc412
updated README requirements, cleaned dsss.conf
Frank Benoit <benoit@tionex.de>
parents:
222
diff
changeset
|
8 Compiler : DMD 1.033 |
50ff93cdc412
updated README requirements, cleaned dsss.conf
Frank Benoit <benoit@tionex.de>
parents:
222
diff
changeset
|
9 D Lib : Tango release 0.99.7 |
99
873874015a62
Explanation where to get the import libs
Frank Benoit <benoit@tionex.de>
parents:
78
diff
changeset
|
10 Import libs |
222 | 11 Please check also http://www.dsource.org/projects/dwt/wiki/Requirements |
99
873874015a62
Explanation where to get the import libs
Frank Benoit <benoit@tionex.de>
parents:
78
diff
changeset
|
12 |
873874015a62
Explanation where to get the import libs
Frank Benoit <benoit@tionex.de>
parents:
78
diff
changeset
|
13 Import libs: |
873874015a62
Explanation where to get the import libs
Frank Benoit <benoit@tionex.de>
parents:
78
diff
changeset
|
14 ============ |
102 | 15 To link everything you need the import libs. |
16 They are not included in the source repository, please use this archive | |
99
873874015a62
Explanation where to get the import libs
Frank Benoit <benoit@tionex.de>
parents:
78
diff
changeset
|
17 |
222 | 18 http://downloads.dsource.org/projects/dwt/dwt-win-importlibs.zip |
99
873874015a62
Explanation where to get the import libs
Frank Benoit <benoit@tionex.de>
parents:
78
diff
changeset
|
19 |
873874015a62
Explanation where to get the import libs
Frank Benoit <benoit@tionex.de>
parents:
78
diff
changeset
|
20 They don't contain any DWT code, only the import libraries to link to the windows system DLLs. |
58 | 21 |
22 | |
23 Building with dsss | |
24 =================== | |
25 Per default dsss has the option 'oneatatime' enable. | |
26 This make dsss to compile one file at a time and building dwt take longer than 15 min. | |
27 Disable this option in the dsss/etc/rebuild/dmd-win-tango file. | |
28 Search for it (2 matches) and either delete those lines of change =on to =off. | |
29 | |
157
f8001bf383d2
TextLayout allow null for setText
Frank Benoit <benoit@tionex.de>
parents:
148
diff
changeset
|
30 In some situations, you may get linker errors when building the dwt examples. |
148 | 31 Try adding the "-full" switch to the dsss command line to fix these errors. |
32 | |
33 Example: | |
34 | |
157
f8001bf383d2
TextLayout allow null for setText
Frank Benoit <benoit@tionex.de>
parents:
148
diff
changeset
|
35 dsss build -full simple |
148 | 36 |
100
8e89c07402e9
Describe subsystem linker switch
Frank Benoit <benoit@tionex.de>
parents:
99
diff
changeset
|
37 Subsystem linker option |
8e89c07402e9
Describe subsystem linker switch
Frank Benoit <benoit@tionex.de>
parents:
99
diff
changeset
|
38 ======================= |
102 | 39 For dmd linker 'optlink' there is the option SUBSYSTEM which defines if the executable |
100
8e89c07402e9
Describe subsystem linker switch
Frank Benoit <benoit@tionex.de>
parents:
99
diff
changeset
|
40 shall be a console or windows application and the minimum required windows version (4=win95,5=win2000,6=vista) |
8e89c07402e9
Describe subsystem linker switch
Frank Benoit <benoit@tionex.de>
parents:
99
diff
changeset
|
41 -L/SUBSYSTEM:windows:5 |
8e89c07402e9
Describe subsystem linker switch
Frank Benoit <benoit@tionex.de>
parents:
99
diff
changeset
|
42 Without this option, DWT renderes some controls not correctly. Eg. table headers are not shown. |
8e89c07402e9
Describe subsystem linker switch
Frank Benoit <benoit@tionex.de>
parents:
99
diff
changeset
|
43 |
188
03f179597782
Make WinXP themes work with windows resources
Frank Benoit <benoit@tionex.de>
parents:
176
diff
changeset
|
44 |
03f179597782
Make WinXP themes work with windows resources
Frank Benoit <benoit@tionex.de>
parents:
176
diff
changeset
|
45 WinXP Theming and Controls |
03f179597782
Make WinXP themes work with windows resources
Frank Benoit <benoit@tionex.de>
parents:
176
diff
changeset
|
46 ========================== |
03f179597782
Make WinXP themes work with windows resources
Frank Benoit <benoit@tionex.de>
parents:
176
diff
changeset
|
47 With WinXP it is required to make windows use a manifest. |
03f179597782
Make WinXP themes work with windows resources
Frank Benoit <benoit@tionex.de>
parents:
176
diff
changeset
|
48 There are several ways to make this manifest available. |
03f179597782
Make WinXP themes work with windows resources
Frank Benoit <benoit@tionex.de>
parents:
176
diff
changeset
|
49 1.) Place the manifest file in the same directory where the .exe is. |
03f179597782
Make WinXP themes work with windows resources
Frank Benoit <benoit@tionex.de>
parents:
176
diff
changeset
|
50 E.g. |
03f179597782
Make WinXP themes work with windows resources
Frank Benoit <benoit@tionex.de>
parents:
176
diff
changeset
|
51 application.exe |
03f179597782
Make WinXP themes work with windows resources
Frank Benoit <benoit@tionex.de>
parents:
176
diff
changeset
|
52 application.exe.manifest |
03f179597782
Make WinXP themes work with windows resources
Frank Benoit <benoit@tionex.de>
parents:
176
diff
changeset
|
53 2.) Link the content of the manifest to the application as a windows resource. |
03f179597782
Make WinXP themes work with windows resources
Frank Benoit <benoit@tionex.de>
parents:
176
diff
changeset
|
54 3.) Have another program that uses resource injection to put the manifest into the application |
03f179597782
Make WinXP themes work with windows resources
Frank Benoit <benoit@tionex.de>
parents:
176
diff
changeset
|
55 4.) Let the application write the manifest to a an external file and load it. |
03f179597782
Make WinXP themes work with windows resources
Frank Benoit <benoit@tionex.de>
parents:
176
diff
changeset
|
56 This had problems in the past, some applications on some machines did not load images. |
03f179597782
Make WinXP themes work with windows resources
Frank Benoit <benoit@tionex.de>
parents:
176
diff
changeset
|
57 |
03f179597782
Make WinXP themes work with windows resources
Frank Benoit <benoit@tionex.de>
parents:
176
diff
changeset
|
58 1. .. 3.) Seems to work reliable. |
03f179597782
Make WinXP themes work with windows resources
Frank Benoit <benoit@tionex.de>
parents:
176
diff
changeset
|
59 |
03f179597782
Make WinXP themes work with windows resources
Frank Benoit <benoit@tionex.de>
parents:
176
diff
changeset
|
60 * Using 2. |
03f179597782
Make WinXP themes work with windows resources
Frank Benoit <benoit@tionex.de>
parents:
176
diff
changeset
|
61 compile the dwt.rc/dwt.exe.manifest files with rcc.exe from the digitalmars to create the dwt.res. |
03f179597782
Make WinXP themes work with windows resources
Frank Benoit <benoit@tionex.de>
parents:
176
diff
changeset
|
62 rcc dwt.rc |
03f179597782
Make WinXP themes work with windows resources
Frank Benoit <benoit@tionex.de>
parents:
176
diff
changeset
|
63 link the resulting dwt.res with the -L/rc:dwt.res |
03f179597782
Make WinXP themes work with windows resources
Frank Benoit <benoit@tionex.de>
parents:
176
diff
changeset
|
64 |
100
8e89c07402e9
Describe subsystem linker switch
Frank Benoit <benoit@tionex.de>
parents:
99
diff
changeset
|
65 |
8e89c07402e9
Describe subsystem linker switch
Frank Benoit <benoit@tionex.de>
parents:
99
diff
changeset
|
66 |