annotate README.txt @ 341:f403c83322c3 default tip

fix: thx torhu
author Frank Benoit <benoit@tionex.de>
date Sun, 08 Nov 2009 20:58:32 +0100
parents 50ff93cdc412
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
58
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
1
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
2 DWT-Win
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
3 =======
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
4
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
5 Requirements:
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
6 =============
176
e0ea5a76da07 README edits
Frank Benoit <benoit@tionex.de>
parents: 160
diff changeset
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
f9012ceeafea update README.txt info
Frank Benoit <benoit@tionex.de>
parents: 188
diff changeset
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
40c02ead0a2c resource manifest
Frank Benoit <benoit@tionex.de>
parents: 100
diff changeset
15 To link everything you need the import libs.
40c02ead0a2c resource manifest
Frank Benoit <benoit@tionex.de>
parents: 100
diff changeset
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
f9012ceeafea update README.txt info
Frank Benoit <benoit@tionex.de>
parents: 188
diff changeset
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
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
21
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
22
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
23 Building with dsss
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
24 ===================
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
25 Per default dsss has the option 'oneatatime' enable.
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
26 This make dsss to compile one file at a time and building dwt take longer than 15 min.
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
27 Disable this option in the dsss/etc/rebuild/dmd-win-tango file.
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
28 Search for it (2 matches) and either delete those lines of change =on to =off.
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
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
029d0df3f515 update readme file
John Reimer <terminal.node@gmail.com>
parents: 129
diff changeset
31 Try adding the "-full" switch to the dsss command line to fix these errors.
029d0df3f515 update readme file
John Reimer <terminal.node@gmail.com>
parents: 129
diff changeset
32
029d0df3f515 update readme file
John Reimer <terminal.node@gmail.com>
parents: 129
diff changeset
33 Example:
029d0df3f515 update readme file
John Reimer <terminal.node@gmail.com>
parents: 129
diff changeset
34
157
f8001bf383d2 TextLayout allow null for setText
Frank Benoit <benoit@tionex.de>
parents: 148
diff changeset
35 dsss build -full simple
148
029d0df3f515 update readme file
John Reimer <terminal.node@gmail.com>
parents: 129
diff changeset
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
40c02ead0a2c resource manifest
Frank Benoit <benoit@tionex.de>
parents: 100
diff changeset
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