home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C!T ROM 5
/
ctrom5b.zip
/
ctrom5b
/
DOS
/
UTILITY
/
BATCH
/
M_CHUZ02
/
M-CHUZE.DOC
< prev
next >
Wrap
Text File
|
1994-10-15
|
10KB
|
199 lines
M-Chuze DOCUMENTATION
~~~~~~~~~~~~~~~~~~~~~~
'M-Chuze' was designed to meet two particular needs - provide a pleasant
user interface for batch programmes and, hand in hand with this, reclaim
half a meg of hard disk space a duff text-mode menu system was using up.
'M-Chuze' is freeware but contributions are gleefully accepted, :-).
Please see the end of this file for all the legal stuff and contact
details for complaints & suggestions.
As you will see it only uses around 36kb making it quite acceptable for
even distribution disks where often disk space is at a premium.
'M-Chuze' will auto-detect what video card is present in the host PC
and switch it into the highest resolution mode available (up to 640x480),
cards detectable being either CGA, MCGA , EGA, EGA64, EGAMono, or VGA.
At present Hercules is not supported as the mouse cursor disappears!??
Up to one hundred user-selectable buttons can be displayed complete with
a descriptive headline or question and because all this text is definable
from a plain ASCII text file ; an infinite number of nested menus can be
created with only one copy of M-Chuze.EXE.
Ten patterns are available to select between including solid colour
( i.e. no pattern ) - two appearing on screen at once within concentric
rectangular areas of the screen. Colours for both these patterns and
the overlayed lines and text are also definable should the defaults not
be to your taste.
'M-Chuze' terminates when a button is clicked on by the user and sets
its "exit code" , readable by DOS, to a value of 100 more than the
button selected. Thus if an array of 5 rows by 3 columns of buttons
are defined and displayed ; were the user to click on the button in
the centre of the top row 'M-Chuze' would terminate with an "exit code"
of 106 - as buttons are assigned their numbers descending columns,
row by row, left to right.
To see how to use this "exit code" if you are not familiar with the
DOS 'IF ERRORLEVEL .....' statement, study the *.BAT and *.TXT files
you received with 'M-Chuze'.
M-Chuze IMPLEMENTATION
~~~~~~~~~~~~~~~~~~~~~~~
The minimum command line is :-
M-Chuze <buttdata> <row> <column>
Where <buttdata> is an unformatted ASCII text file containing lines of
text, of maximum length 64 characters, that are the desired button labels.
The file must be in the current directory and of a maximum of 100 lines.
<row> is the number of rows of buttons and <column> is the number of
buttons occuring in each row (horizontally).
The enhanced command line is :-
M-Chuze <buttdata> <row> <column> <ipatt> <opatt> <icol> <ocol> <lcol>
Where the additional parameters are to select respectively ;
inner-area pattern, outer area pattern, inner area pattern colour,
outer-area pattern colour and line/title text colour.
DO NOT TYPE THE '<' , '>' BRACKETS AROUND THE PARAMETERS -
JUST LEAVE A SINGLE SPACE BETWEEN EACH PARAMETER
Valid values for parameters are outlined below :-
buttdata must be a valid DOS filename of a plain ASCII text
file located in the current directory.( \M-Chuze )
row & column must be integers with the result of multiplying
them together being equal or less than 100 .
ipatt & opatt must be integers in the range of 0 to 9 inclusive
these numbers representing the following patterns
0 Full - solid colour (no pattern)
1 Weave
2 Flower
3 Cross
4 Stripe (vertical)
5 Swan
6 Brick
7 Chain
8 Stars
9 Bats (a tiled bat-shape)
icol & ocol & lcol must be integers in the range of 0 to 15 inclusive
these numbers representing the default sixteen colour
palette for all modes as outlined below
0 Black
1 Blue
2 Green
3 Cyan
4 Red
5 Magenta
6 Brown
7 Light Grey
8 Dark Grey
9 Light Blue
10 Light Green
11 Light Cyan
12 Light Red
13 Light Magenta
14 Yellow
15 White
To keep command lines manageable further enhancements have been
implemented by providing optional codes for the first line of the
nominated text file (<buttdata>).
The first three characters of the first line are checked to see if
they match a code and if not they are treated like any other text
required to appear on a button , however , if they match codes as
outlined below a particular program feature is implemented and the
three characters discarded so that they do not appear on the screen.
$#@Mark's Main Menu this first line will result in the screen
.............. having a headline area clear of buttons
......... with the text "Mark's Main Menu" centred
... above the buttons.
#@@Mildred's Recipe this first line will result in the screen
.............. having NO headline and "Mildred's Recipe"
......... appearing on the top-left (first) button
... as usual but the screen will have a
monochrome colour scheme to suit high
resolution CGA card modes and some
grey-scale monitors not able to display
sixteen distinct shades.
(experiment with this-you may not need it)
$@@Which drive? this first line will result in both of the
............ features outlined above being implimented;
......... i.e. A monochrome colour scheme will be
... instigated with the question "Which drive?"
appearing as a centred headline above the
array of buttons.
##@Display Solutions this first line will result in the smallest
............. font being selected (normally 'M-Chuze' will
......... increment the font size as the number of
.... button rows fall) and the top-left (first)
button will have the text "Display Solutions"
displayed upon it.
$##Choose 'M-Chuze' this first line will result in the smallest
............. font being selected and "Choose 'M-Chuze'"
......... being displayed as a headline above the array
.... of buttons.
M-Chuze CONTACT INFORMATION
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
'M-Chuze' was written using Turbo Pascal (thank you Borland) and shows
that perhaps 'C' isn't the only half-useful language on the planet
after all, and is a first try at useful graphics programming.
The author Mark Allen provides a computer-based art, animation and
computer aided draughting service and is available for both DOS and
Windows training at all levels with emphasis on _real_ productivity.
Telling-bone : +61 9 336 2653
InterNet : markalln@omen.it.com.au
FidoNet : Mark J. Allen@3:690/660
OR Snail Mail
Display Solutions(tm)
P.O. Box 330
South Fremantle, 6162
Western Australia
M-Chuze LEGAL DOGMA
~~~~~~~~~~~~~~~~~~~~
'M-Chuze' is Copyright 1991-1992 by
Mark J. Allen trading as Display Solutions(tm)
All Rights Reserved.
You are free to redistribute this package in its entirety.
In doing so you may charge no more than a nominal fee for duplication.
No part of this package may be included as part of a commercial package
without explicit written permission.
'M-Chuze' should work quite happily on the vast majority of IBM clones;
however, it is only guaranteed to work on my 386SX clone - that is the
extent of my legal commitment !
If your modem explodes or your hair falls out that is a shame but I
accept no responsibility - I will happily commiserate with you but my
wallet will remain tightly closed ( It's virtually empty anyway ).
P.S.
I Hope 'M-Chuze' proves to be of as much use to you as it has to me -
Just using it for a menu system for my children and has given them
back nearly 400K of disk space with no loss of 'functionality'
and where as before every additional submenu cost nearly 125K
now the only cost is a couple of K for a text and batch file.
MJA