home *** CD-ROM | disk | FTP | other *** search
- | Help for GrabMenu "1.10 (15-May-1992)"
- |
-
- This application will grab the menu(s) from the screen, and dump them
- into a masked sprite. This is useful for documentation purposes.
-
-
- Hot Keys
- ========
-
- It is activated by a user-defined hot key. Any key can be used, but
- note that defining the hotkey as, say "A" is not much good, as the
- wimp tends to process these sort of keys itself if any window owns the
- input focus. Better to use something like <Ctrl Shift> F9, or some
- such.
-
- But note that sometimes windows that own the caret do not behave
- properly, and fail to pass on unrecognised key presses. If this is
- the case, just close all windows which own the input focus, and try
- again.
-
-
- Files
- =====
-
- The file handling is slightly unorthodox. First you specify where to
- save the file, then the sprite file gets created when the hot key is
- pressed. Only now, when I'm writing this document, did I realise It
- would be better to do it as: press hotkey, grab the menus, then bring
- up the saveas dbox. Oh well, this method works, so what the hey?
-
- The file is a standard Acorn format sprite file.
-
-
- Sprites
- =======
-
- Since the problem was to create an exact copy of the menu's as seen
- on-screen, all this program does is grab the screen image. So it is
- better to be in a 16-colour screen mode to save on file size. If
- there are no dboxes, it is probably a better idea to use a four colour
- mode, since this will save even more memory.
-
- If sub-menus are being grabbed, then a mask is created so junk doesn't
- show through.
-
- Also, it would (probably) be better to save the menus in a
- high-resolution screen mode, so that there aren't twice as many x
- pixels as y. Similarly, don't save them in a non-standard mode, as
- other people may not be able to view them.
-
- (Also, if you use something like FontFixer to get a better font than
- the system font, you should disable this, as complete novices may get
- confused about tick marks, and such, that aren't exactly the same os
- on their screen - and with a sentence like that it is understandable I
- failed me English O level :-)
-
-
- Sub-menus And DBoxes
- ====================
-
- This program works on the assumption that menus are always the
- top-most windows on the desktop. So all it does is find the outline
- of the topmost N windows, and grab this screen image into a sprite.
- This works fine. It even works if there are no menus.
-
- Note that if you want to grab the main menu and a sub-menu, then set N
- sub-menus to 1. If you just want a copy of the sub-menu on its' own
- (usually preferable with big menu structures) then keep the N
- sub-menus to 0. This works because the sub-menu will be the window at
- the front of the window stack. This can be extended, vis-a-vis you've
- got a heavily nested menu structure, just set N sub-menus to 2 to grab
- the three "rightmost" sub-menus.
-
-
- Colours
- =======
-
- Now, on screen everything looks OK, but print anything out and you
- come across the Archimedes 4-bit palette restriction. I.e. the screen
- palette entry for white is saved as &F0F0F0, i.e. only 240/256 = 94%
- white! Since future versions of the OS should fix this, I've added a
- toggle to disable the post processing done on the palette, i.e.
- copying of the top nyblle to the lower nybble. This makes your whites
- even whiter!
-
-
- Credits
- =======
- Simon Huntington for the Interface module
- Nicko van Someren for BugView
- Acorn for an excellent OS
- Frank Zappa for musical entertainment
-
-
- Updates
- =======
-
- 11-May-1992 preliminary version, unreleased
- 14-May-1992 v1.00, and probably the last - it does its' job
- 15-May-1992 v1.10, palette problem fixed
-
-
- Boring bit
- ==========
-
- Written by, and copyright held by Cy Booker © 1992. This program has
- been put into the public domain with two provisos. That you use at
- your own risk, and if this program happens to reformat your hard disc,
- cause your monitor to blow up, or the keyboard to ignite, that's your
- problem. If you want guarantees of stability, you can pay for a
- program. All I will say, is that I've used this program, and so it
- works on at least one machine.
-
- If you use this program in a profit orientated project, then bung us a
- 10 quid cheque and I'll send you the latest version.
-
- If you wish to distribute this program with a "nominal service
- charge", then please contact me (that's P.D. libraries). Other people
- are free to give away as many copies as they like.
-
- If you find the program has any shortcomings, or you would like any
- extra features added, then I can be contacted:
-
- Cy Booker
- 86 Church View
- Main Road
- Crockenhill
- Swanley
- Kent. BR8 8JW
- U.K.
-
- Ya Hozna!