home *** CD-ROM | disk | FTP | other *** search
-
-
- QuickReq
- ==============
-
- (c) 1991 by Markus Aalto
-
- Version: 2.0
-
- ***************************************************************************
-
- This product is public domain! You may copy this product to anyone as long
- as it's made free of charges. Only insignificant copying fee, not more than
- 5$, is accepted. Also you may not change in any way files included. The
- complete list of files comes after this notice! Also, I am !NOT! in any
- situation responsible for damages made by this program or accesory files.
- If you for some reason want to include this program into any commercial
- Amiga product, you may do that. But only the executable code (QuickReq) is
- allowed to be included.
-
- List of files included:
-
- These files belong under the copyright notice!
- QuickReq - Program file
- QuickReq.doc - This document file
- QuickReq.c - C source file for this program
- QuickReq.History - Programs history
-
- These files don't belong under the copyright notice!
- README - Short introductory for this program
- Examples/text1 - Example text 1
- Examples/text2 - Example text 2
- Examples/TestScript - Short example script-file!
-
- ***************************************************************************
-
- INTRODUCTION
- -------------
-
- QuickReq is an ask-utility to replace the crude version found from
- AmigaDOS. Althought there are several similar programs out there, they all
- have lacked few important features (unfortunately this program also lacks
- some features of those programs). The ability to use long files for multiple
- rows of text in a requester and support for overscan displays have been
- rare. This is why QuickReq was originally designed. As I mentioned before,
- QuickReq lacks few nice options from other similar programs but I'm
- planning to support some of them later. Please infor me what you would
- like to see in QuickReq.
-
- USAGE
- ------
-
- To use QuickReq you don't need anything else but the executable code. It
- has no .info file, because it was originally designed to be used from CLI.
- It should also work from Workbench with IconX or similar program. This is
- something I haven't tested. Because QuickReq is a CLI-program I also made
- it residentable. This has been achieved by using the 'cres.o'-objectfile
- while linking, instead of 'c.o'. Now copy QuickReq to somewhere into your
- path (maybe to c-directory) and then you are ready to use it.
-
- Write QuickReq to get some help! The following text prints to your screen.
-
- QuickReq V2.0 (c) 1991 by Markus Aalto
- USAGE: QuickReq <Question> [<True>] <False> [OPTIONS] or
- <FileName> [OPTIONS]
- OPTIONS:
- -C = Text centering
- -B = DisplayBeep
- -L = Large view
- -W# = Width
- -H# = Height
- -P# = Pen color
-
-
- QUESTION
- Question is the requester text. For example you want to ask if the user
- wants to load workbench, then the question text could look like
- this.
-
- "Do you want to load Workbench?"
-
- Of course you can write anything you want but this was just an example.
- Also you can use much longer texts than screens width is and QuickReq knows
- how to cut lines. Height and width of this text is limited only by screens
- size. In here you can also use "FORCE LINE BREAK"-character to make your
- linebreaks where ever you need them. The "FORCE LINE BREAK"-character
- is same as backslash '\'.
-
- TRUE
- True is the first BOOL-gadget text. By pressing its gadget (left one)
- QuickReq returns error number 0 to CLI or SHELL. Usually this text is
- something like "Yes", "True" or "Retry". But of cource you can write what
- ever you like. This text has maximum height of 1 char and width is about
- half the screens width. This is really an optional text and if you choose
- not to use this, then only the FALSE-text gadget (see further for
- FALSE-text) will be displayed.
-
- FALSE
- This is the second BOOL-gadget text. By pressing its gadget (right one)
- QuickReq returns error number 5 (WARN) to CLI or SHELL. This is easy to
- check out from script files using WARN option in IF command. This text has
- same limits as TRUE-text has.
-
- FILENAME
- If you want to use longer texts, particularly in Question text, then you
- should make a file which contains all the information for requester. For
- QuickReq you just make an text file with your favourite text editor and
- pass the filename to program, and that's all you have to do. I haven't
- tried very long files but the maximum size should be limited only by
- your available memory. Of course it is senseless to use very big
- redirection files because all the text won't fit into the screen.
- Redirection file option has priority over argument line options. So if you
- specify windows width to 150 in argument line (-w150) and redir. file has
- the same option with value 300 (-w300) then your window will be 300 pixels
- wide. Same goes to -H and -P options. Also if you have specified redirection
- file in a redirection file, then error message will be displayed and
- program execution is terminated.
-
- OPTIONS
- There are six of them. And they may be specified in argument line or in
- redirection file.
-
- -C ... Centers the Question text.
-
- -B ... Makes DisplayBeep in ActiveScreen. Before activating
- Requester.
-
- -L ... Forces to use as big screen as available. In other words, if
- you have a WorkBench with 1024*1280 resolution then QuickReq
- opens really big requester for you. Of course this works
- only if you have enough text specified, or you are also
- using -W and/or -H options.
-
- -W# ... If you want to force your requesters width to some value #,
- then you can use this option. If you, for some reason,
- specify requester width smaller or wider than possible,
- then this value will be ignored and 'Illegal window size'-
- text is displayed. This means that requester is still
- showed but QuickReq computes its own width value.
-
- -H# ... If you want to force requesters height to value #, then use
- this option. The rules concerning use of this option, are
- the same as in -W option.
-
- -P# ... Specify new FrontPen color. If the new FrontPen color is the
- same as the default BackPen color, then the BackPen color is
- automatically changed to the new color. This works with all
- possible colors current OS is suporting (of course, only if
- you have your WB-screen deep enough).
-
-
- Bugs
- -----
-
- With kickstart versions 1.3 and smaller, you get really weird windows if you
- specify -L option and -W# with number # being larger than 1024. I used
- MegaWb to make my WB-screen as big as 1404*560 (Yes, I have 1 MB-Chip-Agnus)
- and then used -L and -W#. If # was bigger than 1024 then screen went quite
- messy and I think that this is a error in Intuition, and is propably
- repaired in WB2.0! Because this isn't really a bug I let it be there.
- Problem should arise only with very large screens, and with WB2.0 it should
- work correctly. At the moment I haven't got access to WB2.0 and I wasn't
- able to test QuickReq with it but there shouldn't be any problems. I you
- have any please infor me about them!
-
- Examples
- ---------
-
- Try these examples to see what happens. There are also couple of example
- files which you can load as redirection files in Examples Directory.
- Don't be suprised by the Examples/Text2 because QuickReq uses the same
- function to render requesters as OS does, and so it's possible to make
- very similar requesters as you have seen in AmigaDOS.
-
- QuickReq -p3 "Do you want to load workbench?" " Yes! " " No! "
-
- QuickReq -cw300p1 "Look\How\Nicely\QuickReq\Centers\The\Text!" Agreed
-
- QuickReq -h200 -b -c Examples/Text1
-
- QuickReq Examples/Text2
-
- There is an example script in Examples directory called TestScript. It
- should give you a small idea about QuickReq and it's usefulness! Just
- Execute it to see what happens.
-
- Future
- -------
-
- In future I'm planning to make this program better, but before I can start
- developing any new options I would like to hear what you really need
- from Requester-program. Do you want to use your own fonts instead of Topaz-
- 8? Or do you want to use BOLD, Underline and Italics? So if you have any
- wishes, please send me a letter. But remember that QuickReq is now smaller
- than 5 Kbytes, so if you want it to be a small utility then be reasonable
- with your wishes. Of course it would be nice to use your own iff-pictures as
- backgrounds but after including that to my little program it wouldn't be so
- little anymore. Please let me know, what you want! I also want to hear
- about bugs you have possibly encountered while using QuickReq. There
- shouldn't be any but we can't be sure, can we?
-
- Happy QuickReqing!!!
-
- My Internet address: s37732v@puukko.hut.fi (BTW I prefer email! :^)
-
- Home address: M. Aalto
- Lemmmenkuja 1
- 01230 Vantaa
- Finland
-