This directory contains an example of stretching mainframe NOMAD windows. It combines four techniques into a simple "EIS" system: 1) Cascading textual windows, to show a flow 2) Drill-down to show increasing level of detail 3) Mouse support (pointing and picking with a mouse) 4) Use of color to highlight output (report lines) The sample code uses the ED database, provided with the Collection or the Supplemental Programs. All references to the database, however, are located in 5 lines in the procedure WZCUSTOM, and may be modified to work with another database fairly simply. You can use this code as an example for building any of the four functions or, by modifying WZCUSTOM, you may be able to use it directly. Note the limitations described in the comments in WZCUSTOM. WZOOM: Drill down demo Call: WZOOM Files: WZ*.NOM Credits: Scot Stoney, Must Software, Norwalk Chuck Jenkins, Must Software, Atlanta TO RUN THE DEMO CODE: 1. Upload the WZ*.NOM files (this directory) to the host. 2. Upload the contents of WSAMPLE to the host (WZOOM needs several procedures, including WPICK and WEZHELP from that directory) 3. Insure that you have ED available, or change WZCUSTOM to another database. 4. If you want to use a mouse (optional), set it up, following the instructions in the MF\MOUSE directory. It should be configured to produce F19 when the pointing mouse button is clicked. 5. Get in NOMAD, with windows on. 6. Run WZOOM General operations: - You start with a summary list request. - You can drill down to detail behind a line by ... - Point to the line with the cursor - Press F2 - Pick the item to use to get detail - View the detail - You can return to a higher level, or quit from the top, by ... - Press F3 - You can scroll by ... - Press F7 for up, F8 for down - You can zoom the current window by ... - Press F4 to zoom, and again to shrink. Colored lines: - Lines in the report are colored based on the last item in the report. In this case, it is the AVERAGE EXPENSE. - You can change the amounts used for highlighting by ... - Press F5 to bring up the color menu - Change the amounts for the colors. The first color is for the headings and any lines that fall outside the ranges for the other 3 colors. (It is background). Each of the other three has a start and end range. - If you wish, you can fill in only the start or end values, and the tool will compute the other end of each range. - You can turn off highlighting lines by pressing F9. Mouse operations: - In general, you should be able to point anywhere on the screen and click (same as F19) and get a reasonable response. - You can test the mouse operations without an enabled mouse by using the cursor keys to move the cursor, and F19 to click. - Results of clicking are: - On a detail line: zoom to it (F2) - On a menu pick: pick it (ENTER) - On the function key strip: perform the function key. (Note that F2 will do nothing: it needs to be pointed at a line) - Outside the current list window (background or another list window): go back a level (F3) - On the border (or the character just outside the border) of the current window: scroll up or down (F7, up, if you are near the top of the screen, F8, down, if you are near the bottom). - On the color menu: continue (ENTER) TO CUSTOMIZE FOR OTHER USE: - While intended only as a sample for techniques, the demo can be customized fairly easily. - To change it, edit the procedure WZCUSTOM, changing the statements as described in the comments. - Limitations/requirements include: - List output is limited to 600 lines per list. - The last item in the list must be numeric. (This item is used for color highlighting. It should have a value less than 999,999, and can handle resolution down to hundredths (.99)). - The width of the reports are limited. (60 characters works for sure, 78 may be ok). - The list should be simple. (All lines the same format, standard headings, no folds). - There should be no dashes in the headings of the items. (It takes the first line with three dashes in it as the heading underscore line, and uses that to determine the character positions of the last column).