home *** CD-ROM | disk | FTP | other *** search
- \#£¤
- \ SeeHelp:Write version 0.0 © G.C.Wraith 01/05/96
-
- £B#WRITING SEEFILES#
-
- This file is visible as £AWrite£7 if you click Adjust
- on the command £8*Filer_Opendir <See$Dir>.!Help£7.
-
- If you ¤1#SHIFT-DOUBLECLICK#¤0 on this file's icon you will
- see its underlying textual source. It is instructive to
- compare this with what you see in a See-window.
-
- The first thing to note is the top line, which makes no
- appearance in the See-window. This line determines four
- things, in order:
-
- 1. £AThe comment character
- 2. £AThe changefont character
- 3. £AThe foreground colour character
- 4. £AThe background colour character
-
- The first line of a SeeFile is not displayed.
- Subsequently an instance of the comment character and
- all text following it, up to, but ¤1not¤0 including
- the next newline, if any, is not displayed.
- \ Here is a comment!
- The changefont character toggles use of the extra font.
- It is displayed as a space in the See-window.
- \ For this file it is #.
- The foreground and background colour characters, if
- followed by a single hexadecimal digit, 0-9, A-F cause
- that colour to be set up to the next change, or up to the
- end of the line. The two characters, colour character and
- hexadecimal digit, are not displayed. To see which colours
- correspond to which numbers, click Select on the Palette
- icon on the iconbar (we are talking Risc OS 3.1 here).
- \ For this file foreground colour is changed by £
- \ and background colours by ¤.
- It is convenient to take top-bit-set characters for these,
- but you do not have to. £ and ¤ are convenient because
- they are accessible from the keyboard.
- \ You can choose these characters how you like.
- The width of the window displaying the Seefile is determined
- by the maximum width of a line of text, including the
- undisplayed comment lines.
-
- For a test card £8*see SeeHelp:Test£7.
-
- You can, of course, use any colour combinations for commands:
-
- ¤9*Time¤0 ¤C£D*FontList£7¤0
-
- It is suggested that you construct ¤1booklets¤0 of SeeFiles
- by constructing an application, say a directory called !Booklet.
- Choose its appearance by creating a !Sprites file containing
- a sprite called !booklet. Put your individual SeeFiles inside
- !Booklet. If the initial page is called, say, index, then create
- an Obey file called !Run containing the lines
-
- £BSet Booklet$Path <Obey$Dir>.
- £BRun Booklet:index
-
- Then you can include commands of the form *See Booklet:xxx in
- your SeeFiles to open a SeeFile called xxx.
-
- £8*See SeeHelp:!Run£7 Return to index.
-