home *** CD-ROM | disk | FTP | other *** search
- WM Read
- ───────
-
- WM Read is a simple text browser. If you can use the WM Help browser, you
- can use (most of) WM Read. Hypertext jumps are not supported, however, while
- there are a couple of additional commands related to Function keys F1-F10.
-
- There is another important difference: WM Read MUST be called with the name
- of a text file to browse. Leaving out the file extension is OK (the default
- TXT is then used), but you must provide a filename, as in "Read DOC\HELP".
- Failing to do so will cause WM Read to abort execution at startup.
-
- This Help file can be called up from within Read by pressing Alt-H or by
- selecting the Help command from the bottom bar (point with the mouse cursor
- and click the Left button).
-
-
- Contents: ■ Leaving WM Read {Read 25}
- ───────── ■ Scrolling {Read 31}
- ■ Searching {Read 44}
- ■ Printing {Read 70}
- ■ Function key operations {Read 127}
-
-
- ─── Leaving WM Read (Esc) ──────────────────────────────────────────────────────
-
- To leave Read, ■ Hit the Esc key, or
- ■ Click the Right mouse button
-
-
- ─── Scrolling ──────────────────────────────────────────────────────────────────
-
- Basic text scrolling commands (also available from the bottom row; point
- with the mouse cursor and hit Enter or click the Left button):
-
- ■ Home (go to first screen)
- ■ End (go to last screen)
- ■ PgUp (scroll up 24 lines)
- ■ PgDn (scroll down 24 lines)
- ■ Up arrow (scroll up one line)
- ■ Down arrow (scroll down one line)
-
-
- ─── Searching (Alt-F) ──────────────────────────────────────────────────────────
-
- To find a text string,
-
- ■ Press Alt-F, or
- ■ Choose Find from the bottom bar
-
- You will be prompted for the string to look for. Type it in using standard
- line editing commands (Left/Right arrow, Ins, Backspace and Del). You can
- abort by hitting Esc or by pressing the Right mouse button; if you terminate
- with Enter or Left mouse button, the file is scanned for the next occurrence
- of the search string.
-
- There is a difference compared to WM Help: hitting F1 to F10 while entering
- the search string will write the current value of the Function key (see
- {Read 127}) to the edit line.
-
- The search starts either at the first currently displayed line or, if the
- previous search was for the same string, at the position immediately
- following its latest found occurrence.
-
- Repeated searches are quite easy, since WM Help remembers the search string.
- Once you've typed it in, just position the mouse cursor on the Find command
- (bottom bar) and keep clicking!
-
-
- ─── Printing ───────────────────────────────────────────────────────────────────
-
- To print out the current screen, hit PrtSc.
- ────────────────────────────────
-
- To print out a selected portion of the file being viewed,
- ─────────────────────────────────────────────────────────
-
- (0) Hit the - (Minus) key a couple of times (a preparatory action
- to remove any previously set markers).
-
- (1) Position the mouse cursor at the beginning (first character)
- of the block to be printed out.
-
- (2) Hit the + (Plus) key. This sets the start marker (you won't
- see anything happening on the screen at this time).
-
- (3) Position the mouse cursor at the end (last character) of the
- block to be printed out.
-
- (4) Hit the + (Plus) key again. This sets the end marker. The
- (visible portion of the) selected range should now be
- highlighted (cyan background).
-
- You won't get a selected range if you set the end marker to a position
- preceding that of the start marker! If you want to change your marker
- assignments, use the - (Minus) key. This key removes the end mark first
- (if it's set), so you can hit it just once to remove the end marker but not
- the start marker, or twice to remove both markers and start all over again.
-
- Anyway, provided that you have selected a range (it does not need to be on
- screen, you are free to scroll around any way you like) you are all set for
- step
-
- (5) To print the selected range,
-
- ■ Press Alt-P, or
- ■ Choose Print from the bottom bar
-
- WM Read will now invoke HARDCOPY.BAT, which in turn calls the DOS PRINT
- utility. If you want to use a different printer/spooler, edit HARDCOPY.BAT.
-
- Technical Note:
-
- HARDCOPY.BAT sends all PRINT screen output to the NUL device. This is done
- to keep the WM Help screen intact. The resident part of PRINT is installed
- by WM.BAT when WAVmaker is first started up. If PRINT has not already been
- installed when WM Read invokes it, it will try to ask the usual question
- (device name), but since its output is being redirected to the NUL device,
- you won't see this, and the system will appear to have locked up. Hitting
- Enter will clear things up, but the morale is the usual one: use WM.BAT to
- start up WAVmaker, do not modify it unless you know what you are doing (or
- at least not without having backed it up first!), and do not run WAVmaker's
- user interface programs (WMmain, WMmenu, WM DOSbox, WM WAView, WM Read,
- WM Help and WM PRGed) in standalone mode!
-
-
- ─── Function key operations ────────────────────────────────────────────────────
-
- While in WM Read, you have ten programmable Function keys (F1 to F10) at your
- disposal. Each one is assigned a title and a value. Titles and values can be
- up to 15 characters long (reflecting the size of the default DOS keyboard
- buffer).
-
- At startup, WM Read inherits Function key titles and values from the calling
- program (the gory details of this process are described in {FnKeys}). If
- there is nothing to inherit, titles and values default to empty strings.
-
- To call up a window showing all Function key titles and values, press Alt and
- a Function key between F1 and F10.
-
- To make the Function key window go away, either
-
- ■ Press Alt and F1-F10 again, or
- ■ Hit the Esc key, or
- ■ Click the Right mouse button, or
- ■ Scroll the text file
-
- You can also view the contents of a single Function key by hitting it at any
- time (almost - see exceptions below). Title and value will be written to the
- screen's upper right corner. They will disappear the next time you execute a
- Find or a scroll command, close the Function key window, or hit another
- Function key.
-
- Now for the two exceptions:
-
- ■ Hitting a Function key when entering a search string with the Find
- command causes the current value of the Function key to be written
- to the edit line.
-
- ■ Hitting a Function key while a word is selected assigns the selected
- word to the Function key value and causes the NEW value to be
- displayed in the screen's upper right corner (see below).
-
- A word in the text file is selected by positioning the mouse cursor on it and
- hitting Enter or the Left mouse button. This causes the word to be highlighted
- (light cyan on blue background). Hitting Enter or the Left mouse button again
- undoes the selection. The selected word need NOT be on screen to be assigned
- to a Function key.
-
- The main purpose of programmable Function keys in WM Read is to allow data to
- be exported to other WAVmaker applications, including the menu programs. When
- WM Read is terminated, it makes Function key assignments available to other
- programs through the standard mechanism described in {FnKeys}. The menu
- programs WMmain and WMmenu can be instructed to inherit the exported values of
- Function keys with matching titles (only titles matter, not key numbers: if
- an application assigns a title:value pair "File #1":"Read.TXT" to Function
- key F8, and the Function keys F1 and F9 both have been assigned a title "File
- #1" in the calling menu, they will both inherit the new value "Read.TXT").
- Since WM Read inherits both titles and values from the caller, ALL titles
- will match, so you can reprogram all Function keys of the calling menu from
- within WM Read.
-
- Confused? Don't be. It's all very simple.
-
- An example:
- ───────────
-
- In WAVmaker, WM Read is used to browse directory listings {ReadDir}. While
- doing this, you can select a filename and assign it to the Function key
- entitled "File #1". Upon return to the calling menu, hitting the Function key
- entitled "File #1" (provided that the menu in question has one) will cause
- the filename to be written to the command line, avoiding you the hassle of
- having to remember it (and of having to type it in correctly!) when entering
- the next command.
-
- Handy, isn't it?