source: trunk/CustomizingResources.txt@ 327

Last change on this file since 327 was 325, checked in by root, 19 years ago

Added

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 4.4 KB
Line 
1
2Customizing FM/2 Resources
3
4Since FM/2 is a GPL application, anyone can build a private version of
5FM/2 from source and modify the program as they choose.
6
7However, if all one wants to do is replace icons, bitmaps and text strings,
8this is not required.
9
10The FM/2 build system provides support for replacing resources without
11a full rebuild from source.
12
13== Prerequistes ==
14
15You will need
16
17 - a copy of the current FM/2 sources
18 - a copy of the FM/2 binary release
19 - a copy of the resource compiler, RC.EXE
20 - a copy of the help compiler, IPFC.EXE
21 - a copy of the exe compression tool, LXLITE.EXE
22 - a subset of the Warp4 toolkit #include files
23
24RC.EXE, IPFC.EXE and the #include files are included in Warp4 Toolkit which comes
25with eCS or MCP.
26
27Not all versions of RC.EXE are created equal. Currently, the best version to
28use is:
29
30 12-18-97 6:01 868,000 0 RC.EXE
31
32which reports itself as:
33
34 IBM RC (Resource Compiler) Version 5.00.002 Dec 18 1997
35
36and it is available at:
37
38 <ftp://ftp.software.ibm.com/ps/products/warpzilla/os2tk40rc.zip>
39
40You can get LXLITE.EXE at:
41
42 <http://hobbes.nmsu.edu/cgi-bin/h-search?key=lxlite&pushbutton=Search>
43
44It is recommended that you install the Warp4 toolkit. However, if space is
45tight, you only need to have RC.EXE, IPFC.EXE and the following include files
46available:
47
48 dirsize.h
49 fm3.h
50 fm3dlg.h
51 fm3dll.h
52 fm3dll2.h
53
54== What you can change ==
55
56In general, you can change any of the bitmaps or icons and you can make
57changes to the text strings in FM3DLL.STR, FM3RES.RC or FM3RES.DLG.
58
59When making changes to text strings, translate the _text only_. Do _not_
60reorder, remove or create new lines in FM3DLL.STR. Do not modify the
61odd-looking %%s, %%lu, etc. items in FM3DLL.STR. They are used by the
62formatted print routines.
63
64When replacing icons, make sure you provide an appropriate set of
65resolutions. When replacing bitmaps, make sure you to size the bitmap to fit
66correctly in place of the original bitmap.
67
68You need to limit icons to 256 colors and 40x40 pixels.
69
70Do not alter any other files. If you do not follow the above guidelines,
71the resource update may fail or FM/2 may refuse to run correctly.
72
73== Installation ==
74
75 - Create a work directory.
76
77 - Unzip the FM/2 sources to this directory preserving
78 the directory structure.
79
80 The resulting tree will look like
81
82 ÃÄÄfm2.work
83 ÃÄÄbitmaps
84 ÃÄÄdll
85 ³ ÃÄÄicons
86 ³ ÃÄÄinternal
87 ³ ÀÄÄipf
88 ³ ÀÄÄbitmaps
89 ÀÄÄicons
90
91 - Unzip the FM/2 binaries to the work directory.
92
93 - Copy the DLLs from the the work directory
94 to the dll subdirectory
95
96 - Copy FM2RES.STR from the the work directory
97 to the dll subdirectory
98
99Alternatively, you can use your installed FM/2 binaries.
100
101 - Copy the FM/2 EXEs to the work directory
102
103 - Copy the FM/2 DLLs to the dll subdirectory
104
105 - Copy FM2RES.STR to the dll subdirectory
106
107== Verification ==
108
109To test your setup, run:
110
111 nmake res
112
113from the work directory. The makefile should run to completion without
114errors.
115
116== Customizing ==
117
118To customize your copy of FM/2
119
120 - Edit the resources, bitmaps and icons, as needed.
121
122 - Apply the updates to the EXEs and DLLs with
123
124 nmake res
125
126 This will compile the resources, decompress the the the EXEs and DLLs and
127 apply the updated resources. The output of this process will be updated
128 versions of one or more of the FM/2 EXEs, DLLs and FM3RES.STR. The nmake
129 is efficient and only rebuilds the files with changed content.
130
131 - Test your updates:
132
133 set LIBPATHSTRICT=T
134 cd dll
135 ..\fm3
136
137LIBPATHSTRICT allows you to test the new FM/2 version without shutting down
138the production version.
139
140When you are satisfied with your changes, copy the updated executable files
141to your FM/2 program directory and restart FM/2. Some files may be locked, so
142use the unlock.exe utility that comes with lxlite to allow the locked files
143to be overwritten. I recommend adding an unlock item to the commands menus,
144so that you have it available from FM/2.
145
146== Trouble Shooting ==
147
148-- nmake does not rebuild the target --
149
150nmake depends on file timestamps to know what targets to rebuild. If you
151replace a file with an older version nmake may not do what you want it to.
152
153One workaround is to use one of the available touch utilities, to change the
154dependent file's timestamp.
155
156If you do not want to change the file's timestamp, use
157
158 nmake -a res
159
160to force all targets to be rebuilt.
161
162$Id: CustomizingResources.txt 325 2006-07-22 19:49:37Z root $
Note: See TracBrowser for help on using the repository browser.