home *** CD-ROM | disk | FTP | other *** search
- | Help for ConvertTemplates "2.00 (19-Nov-1992)"
- |
-
- This program is a general purpose Wimp Template file filter. It is for Wimp
- programmers who wish to either:
- 1. Anti-alias all their text icons
- 2. Convert Interface validation strings to RO3.10 ones
- 3. See which icons are beyond a windows' extent
- 3. Insert "secret messages" into Template files :-)
-
- I wrote it because I'm a convert to anti-aliased text icons, and although I
- do like Simon Huntington's Interface module - it's a pain having to
- distribute it with every program.
-
- The current things it can do:
- Turn text icons into anti-aliased text icons
- Make sure anti-aliased text colours are correct
- Translates Interface (RO3.00) "B" validation strings to the
- equivalent RO3.10 "R" validation strings
- Set window extent to bbox of its' icons
-
- Possible things it could easily do
- Delete zero-width/height icons
- Make sure icons are always wide enough for there contents
-
- There are two programs, the nice Wimp front end and the back end itself.
- The latter is provided in source format, so change to suit yourself,
- although you'd need a new front end :-( The back end uses my CAssembler
- module to handle a dynamic wimp heap, so it should handle any sized template
- with ease.
-
-
- The Wimp Program
-
-
- Drag a template file to the icon bar icon. A stander xfer_send dbox
- appears. Just drag the icon to a filer window. Easy.
-
- Note that because the front end is separate from the back end, everything
- has to be in physical files, so no RAMTransfer's here, I'm afraid.
-
-
- Command line parameters:
-
- In the Boot file an alias `ConvTmplt' is set up for CLI use. Its' usage is
- as follows:
-
- ConvTmplt
- <in> name of input templates file
- <out> name of output file
- [-Hourglass] hourglass usage (on)
- [-Title] title font -> anti-aliased (on)
- [-TFont <name>] font name for title bar (Homerton.Medium)
- [-TSize <points>] point size of title bar font (12)
- [-Icon] text font -> anti-aliased (on)
- [-IFont <name>] name of icon font (Homerton.Medium)
- [-ISize <points>] size of icon font (13)
- [-CheckColours] add "F" validation string if
- change to anti-aliased (on)
- [-BValidation] see below (on)
- [-Extent] set window extent to bbox of
- all icons (see below) (off)
- [-Debug] error messages include line no (off)
-
-
- The BValidation switch toggles the following conversions:
-
- "B0" -> "R5", bbox extended by 4 os units
- "B1" -> "R3", bbox extended by 8 os units
- "B2" -> "R6", bbox extended by 16 os units
- "B3" -> "R2", bbox extended by 8 os units
-
- any other "B" validation string fails. Note that extra parameters (ie the
- comma separated list) are automatically stripped. Also, the icon is forced
- to have a border, and the window is set to be automatically drawn by the
- Wimp.
-
- Because all extra parameters are stripped, you lose the colour
- specifications, but as these are invariably unused, this doesn't matter so
- much.
-
-
- Anti-Aliased fonts
-
- Text / text and sprite icons can be converted to use anti-aliased fonts.
- However, there is some difficult with this in the COLOURS department.
- Because of the way anti-aliased text is implemented, the font colours
- default to black on white. This is OK for writable fields, but for comments
- which are on a grey (1) background they don't look QUITE as good as they
- could.
-
- The way you specify anti-aliased font colours is to use an "F" field in the
- validation string. Thus the algorithm to anti-alias an icon is:
- fore <-- icon.fore
- if icon is filled then
- back <-- icon.back
- else
- back <-- window.workback
- set text to anti-aliased
- if fore<>7 or back<>0
- if indirected
- if validation string exists && no F field
- append "F"<back><fore>
- else
- create "F"<back><fore>
- else
- force icon to be indirected
- create "F"<back><fore>
-
- As you can see, you may need to force an icon to be indirected.
-
- Note you can't `slab' anti-aliased icons. Well, you can, but it always
- slabs to the background colour of the font!
-
-
- Extent
-
-
- With this switch you can find all `hidden' icons. It sets the windows'
- extent to the bbox of all its' icons, opens the window full size. This
- option is useful for sneaking looks at other peoples' template files!
-
-
- Updates
- =======
-
- 17-Nov-1992 v1.00 semi-working version (oops)
- 19-Nov-1992 v2.00 Handles long file names now!!
- can convert BValidation without Anti-Aliasing
-
-
- FreeWare
- ========
-
- This program is released as FreeWare, That means it comes WITHOUT ANY
- WARRANTY. You can use it, sell it, delete it. Who cares. I don't. If you
- want more stuff added, then just write - or better yet do it yerself and
- send it in.
-
- Cy Booker
- 86 Church View
- Main Road
- Crockenhill
- Swanley
- Kent. BR8 8JW
- U.K.
-