home *** CD-ROM | disk | FTP | other *** search
- | Help for ConvertTemplates "6.00 (08-Jun-1993)"
- |
-
- 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
- +++ 4. Sort window order (ie window "frank" before window "Zappa")
- 5. 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 + workarea
-
- Possible things it could easily do
- Delete zero-width/height icons
- Make sure icons are always wide enough for their 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.
-
- New to v3.00 is the ability to pre-process the input Template file. This
- has proved necessary with template files containing icons that are
- indirected non-text and non-sprite, ie illegal. The Wimp v3.16 *sometimes*
- barfs on these critters and so this master of bodgedom can be used to remove
- the vermin.
-
- Just place the supplied `DIndNoTNoS' file onto the Run$Path (usually this
- means put it into the $.Library directory) and turn the filtering on. See
- separate docs for more information on this little doodad.
-
-
- Autoload
-
- The option to Misc.Autoload file is very useful. When selected the processed
- Template file will automatically load (into) FormEd. Now why didn't I think
- of doing this before?? There is a *slight* problem in that you need to delay
- actually auto-loading the file until it has been generated and I can't see
- a simple solution to this, so I just wait 4 Null Reasons before broadcasting
- the DataOpen :-(
-
-
-
- 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)
- [-IndSize <n>] reserve <n> bytes for indirected
- data buffer (if wimp < 287) (32768)
- [-Sort] sort window order (on)
- [-Debug] error messages include line no (off)
-
-
- The BValidation switch toggles the following conversions:
-
- "B0"/"Z0" -> "R5", bbox extended by 4 os units
- "B1"/"Z1" -> "R3", bbox extended by 8 os units
- "B2"/"Z2" -> "R6", bbox extended by 16 os units
- "B3"/"Z3" -> "R2", bbox extended by 8 os units
- "B4"/"Z4" -> "R2", bbox extended by 4 os units
- "B5"/"Z5" -> "R7", bbox extended by 16 os units
- "B6"/"Z6" -> "R7", bbox extended by 8 os units
- "B7"/"Z7" -> "R1", bbox extended by 2/4 os units horiz/vertically
- "B8"/"Z8" -> "R1", bbox extended by 4 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!
-
- From v3.00 this optional also forces any `large' window to be bounded
- and possess scroll bars, a title bar, and a quit icon. This ensures
- that loading `background' windows does not necessitate a reset!
-
-
- 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
- 31-Dec-1992 v3.00 Better memory management for wimp > 2.87
- More meaningfull error messages
- "B4", "B8" validation strings
- Only opens a font once, so can do Large files
- Filter program option on front end
- Autoload on front end
- 18-Jan-1993 v3.01 "B5","B6","B7" added + "z0"-"z7" processed
- 27-Jan-1993 v4.00 Dynamic font handling on dboxes
- Should now add scroll bars in old-style templates
- 07-Feb-1993 v5.00 If drag application finds its' template file
- hi-rez. sprites
- 09-Mar-1993 v5.01 Anti-aliased menus in hi-rez.
- 08-Jun-1993 v6.00 Sort, Font menu uses local names
- can change fonts to use in ConvTmplt's menus
- font menu is anti-aliased if other menus are
- sprites23, !sprites23
-
-
- 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.
-
- Any comments / bug reports most welcome.
-
- Cy Booker
- 86 Church View
- Main Road
- Crockenhill
- Swanley
- Kent. BR8 8JW
- U.K.
-