home *** CD-ROM | disk | FTP | other *** search
/ Simtel MSDOS - Coast to Coast / simteldosarchivecoasttocoast2.iso / c / boss03.zip / BOSS.MAN < prev    next >
Text File  |  1991-01-14  |  323KB  |  10,671 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.  
  9.  
  10.  
  11.  
  12.                                  The Window BOSS
  13.                                         &
  14.                                    Data Clerk
  15.  
  16.  
  17.                                 Revision 01.07.91
  18.                                   Version 6.01
  19.  
  20.  
  21.  
  22.  
  23.                          Star Guidance Consulting, Inc.
  24.                                  273 Windy Drive
  25.                           Waterbury, Connecticut 06705
  26.  
  27.                                  (203) 574-2449
  28.  
  29.  
  30.  
  31.  
  32.                                _______
  33.                           ____|__     |               (tm)
  34.                        --|       |    |-------------------
  35.                          |   ____|__  |  Association of
  36.                          |  |       |_|  Shareware
  37.                          |__|   o   |    Professionals
  38.                        -----|   |   |---------------------
  39.                             |___|___|    MEMBER
  40.  
  41.  
  42.  
  43.  
  44.  
  45.                 Copyright (c) 1984-1991 by Philip A. Mongelluzzo
  46.                                All Rights Reserved.
  47.  
  48.  
  49.  
  50.  
  51.  
  52.         The Window BOSS Shareware diskette,  containing a copy of this 
  53.         manual  may  be freely copied and shared,  but printed copies  of 
  54.         this document may not be copied in any way without permission  in 
  55.         writing from Star Guidance Consulting.  Thank you.  
  56.                                                      The Window BOSS
  57.  
  58.  
  59.  
  60.         1. Introduction
  61.  
  62.         The Window BOSS is one of the most powerful and cost-effective 
  63.         products available to enhance and accelerate the development of 
  64.         system and applications programs in the "C" language.  The BOSS 
  65.         will let you create programs that have the same look and feel as 
  66.         top sellers like Lotus 1-2-3, Sidekick, dBASE III, and Framework!  
  67.         Pop-up windows, pull down menus, status lines, and in context on-
  68.         line help functions can be easily implemented.  Your applications 
  69.         can drag windows around the screen and automatically sense the 
  70.         video card installed.  All of this without snow, flicker, or 
  71.         delay! 
  72.  
  73.         The BOSS's assistant, The Data Clerk is always on call to handle 
  74.         the tasks associated with data entry.  Whether they be as simple 
  75.         as fetching a line of text or as complicated as the coordination 
  76.         of filling out a form, the Data Clerk will be there to assist, 
  77.         and if necessary, validate precious information as it is entered.
  78.  
  79.         Registered users can take advantage of our "Source Plus" policy 
  80.         that provides meticulously commented source code, technical 
  81.         support, and minimal fee updates.
  82.  
  83.         2. Technical Nitty Gritties
  84.  
  85.         The Window BOSS supports PC/MSDOS for the IBM PC/XT/AT, PS/2 and 
  86.         compatibles.   However, you'll need one of the following 
  87.         compilers in order to take advantage of the state-of-the-art 
  88.         techniques available from the BOSS:
  89.  
  90.                         Watcom C & Express C, TopSpeed C
  91.                   Microsoft C & Quick C, Borland Turboc C & C++
  92.                      Computer Innovations CI86, Datalight C    
  93.                         Mix Power C, Zortech C++, Aztec C
  94.  
  95.         The BOSS is written in "C" and assembly language.  You'll need 
  96.         the Microsoft Assembler, MASM, to assemble any local changes to 
  97.         the assembler source.
  98.  
  99.           Stats:
  100.  
  101.              Maximum windows:    limited only by compiler and memory
  102.              Maximum window:     full screen (25x80, 43x80, 50x80)
  103.              Minimum window:     1 row 1 column (borderless)
  104.                                  3 rows 3 columns (framed)
  105.              Minimum fields:     none
  106.              Maximum fields:     limited only by compiler and memory
  107.  
  108.           Operation:
  109.  
  110.              Simply include the library at link time and invoke the 
  111.              function desired.  
  112.  
  113.  
  114.  
  115.  
  116.                                                            Page: 1
  117.                                                      The Window BOSS
  118.  
  119.  
  120.  
  121.         3. User Supported Software
  122.  
  123.         Star Guidance Consulting distributes The Window BOSS with a 
  124.         unique marketing approach called Shareware.  The Shareware 
  125.         diskette and its programs and manual may be freely copied and 
  126.         shared.  It is also available from Star Guidance for $20.00. We 
  127.         ask you to help us distribute The Window BOSS by sharing 
  128.         unmodified copies of the Shareware diskette with others.  We also 
  129.         encourage you to register your copy for $55.00.  You'll find a 
  130.         registration form at the end of this manual.  Thank you for your 
  131.         support and enjoy the BOSS.  
  132.  
  133.         3.1. Registering
  134.  
  135.         Shareware is a term for software that can be freely copied and 
  136.         shared.  The term describes copyrighted software which the author 
  137.         supports and encourages people to copy and share.
  138.  
  139.         Shareware is like public television:  the programming is freely 
  140.         distributed, but support from users is encouraged.  The concept 
  141.         is based on these principles:
  142.  
  143.           1. People need to try programs to see if they are useful.
  144.           2. Software authors can be supported directly by users.
  145.           3. Copying and networking of programs can be encouraged.
  146.  
  147.         We encourage you to register your copy of The Window BOSS for 
  148.         $55.00.  Registration has a number of benefits to you:
  149.  
  150.           1. Serialized diskette containing all source code for all 
  151.              supported compilers.
  152.           2. Telephone Support and minimal fee updates. Minimal fees 
  153.              cover the cost of media, packaging materials, shipping, 
  154.              handling, and update preparation.
  155.           3. Thanks from us for your support and encouragement!
  156.  
  157.         3.2. Support Services
  158.  
  159.         You may call, write, or use one of the supported commercial 
  160.         services (CompuServe, GENIE, BIX) to obtain support and 
  161.         assistance. Unless the problem is relatively complex, you will 
  162.         get the best results by calling. Electronic mailboxes are checked 
  163.         on daily basis (excluding weekends & holidays) and are a very 
  164.         effective way of communicating. Electronic mailboxes are great 
  165.         for passing problem code samples and receiving work-arounds 
  166.         and/or problem specific updates. If you write, please include a 
  167.         phone number and the times when you will be available. Our 
  168.         response to written questions is much slower, but we do give 
  169.         priority to overseas users. We are available between 9AM and 5PM 
  170.         Monday through Friday, and sometimes on Saturday and Sunday.
  171.  
  172.  
  173.  
  174.  
  175.  
  176.  
  177.                                                            Page: 2
  178.                                                      The Window BOSS
  179.  
  180.  
  181.  
  182.         Support Services - continued.
  183.  
  184.  
  185.  
  186.         With reference to calls, if we do not call back, please remember 
  187.         that about 20% of our call backs do not get completed because of 
  188.         faulty phone numbers, unanswered, or busy phones. If we have not 
  189.         called back within 1 business day, call us again.  Frequent, 
  190.         difficult to reach, or foreign callers can expect "person to 
  191.         person" collect return calls.
  192.  
  193.         3.2.1. Electronic Support
  194.  
  195.         Electronic support is provided on GENIE, CompuServe, and BIX.
  196.         Support previously provided by our BBS is now provided on these 
  197.         services.  You are strongly advised to obtain a USER ID on at 
  198.         least one of these fine services as no other form of electronic 
  199.         support can be provided.
  200.  
  201.         On GENIE, a special topic on the IBM PC Round Table Bulletin 
  202.         Board has been set up to provide support to Window BOSS users.  
  203.         The Window BOSS topic can be found in the "On-Line Product 
  204.         Support" category of the Bulletin Board.  As of this writing, 
  205.         the IBM PC Round Table main menu is page 615 and the "On-Line 
  206.         Product Support" category is category # 30 of the Round Table's 
  207.         Bulletin Board.  Simply move to page 615 by typing "M 615", 
  208.         select the IBM PC Round Table Bulletin Board from the menu by 
  209.         typing "1", then SET the category by typing "SET 30".  Reading 
  210.         and entering messages is straight forward. The on-line help 
  211.         system and GENIE's user guide should assist you if you have 
  212.         questions.  If you prefer, you can leave mail addressed to 
  213.         MONGELLUZZO.  Round Table and Mail messages are answered on a 
  214.         daily basis.  If you need information on obtaining a GENIE 
  215.         account  you can call GENIE toll free at 800-638-9636.
  216.  
  217.         CompuServe electronic correspondence is limited to EMAIL.  Our 
  218.         EMAIL ID is [71565,1001].  SIG(s) are also occasionally checked 
  219.         for messages but should not be considered a vehicle for effective 
  220.         communication to Star Guidance.  If you are a CompuServe user and 
  221.         you need to reach us, use EMAIL.  EMAIL messages are answered on 
  222.         a daily basis.  If you need information on obtaining a CompuServe 
  223.         account you can call CompuServe toll free at 800-848-8199.
  224.  
  225.         BIX electronic correspondence is limited to Electronic Mail.  Our 
  226.         BIX NAME is "pmongelluzzo". The conference areas in the 
  227.         "ibm.exchange" are also occasionally checked for messages but 
  228.         should not be considered a vehicle for effective communication to 
  229.         Star Guidance.  If you are a BIX user and you need to reach us, 
  230.         use EMAIL.  EMAIL messages are answered on a daily basis.  If you 
  231.         need information on BIX can reach them at 800-227-2983 (in 
  232.         New Hampshire and outside the United States call 603-924-2983).
  233.  
  234.  
  235.  
  236.  
  237.  
  238.                                                            Page: 3
  239.                                                      The Window BOSS
  240.  
  241.  
  242.  
  243.         4. The Basics
  244.  
  245.         The Window BOSS is an extensive library of C functions for the 
  246.         creation, the management and the manipulation of text windows.  
  247.         We take care of all the housekeeping and let you, the programmer, 
  248.         get on with developing your application with a minimum of fuss.
  249.  
  250.         Both The Window BOSS and The Data Clerk are based on a layered 
  251.         software design in which powerful, easy to use functions are 
  252.         created from a series of lower level primitives.  As a 
  253.         programmer, you will quickly appreciate our clean and uncluttered 
  254.         approach to getting the job done.
  255.  
  256.         Windows are created and defined by opening them. Once created, 
  257.         you can write to them, move them around, change their attributes, 
  258.         use them as the basis for data entry, or "kill" them by closing 
  259.         them.  Windows are nothing more than a sub display of a larger 
  260.         display - the physical screen.  They are defined to have size, 
  261.         location, and attributes like foreground color, background color, 
  262.         border colors and so on.  The BOSS includes a whole host of 
  263.         functions for defining and manipulating your windows.
  264.  
  265.         Windows can also serve as the backdrop for data entry.  Once a 
  266.         window is created, you can use it to convey information or to 
  267.         retrieve it!  The Data Clerk will assist you in obtaining the 
  268.         desired goal, whether it be as simple as a single line of text or 
  269.         as complex as a complete form. 
  270.  
  271.         Forms are an ordered collection of input requests (fields) that 
  272.         occur within a specific window.  Fields have size, location 
  273.         (relative to the window which they will be displayed in), and 
  274.         attributes (foreground color, background color, mask values, fill 
  275.         characters, type [integer, float, long, text], validation 
  276.         ranges and so on).  Like windows, forms are created by opening 
  277.         them.  Their contents must then be defined by using the field 
  278.         definition functions provided, or with your own custom field 
  279.         definition functions.  Once created and defined, a form becomes 
  280.         part of the window and moves with it. Forms are "killed" by 
  281.         closing them (n.b. killing a form has no effect on the window to 
  282.         which it was anchored or to the information displayed in it, form 
  283.         or otherwise). The same functions used to input single data items 
  284.         are used to build forms.  This consistency, coupled with an 
  285.         uncluttered approach and flexibility, gives The Window BOSS its 
  286.         power.    
  287.  
  288.  
  289.  
  290.  
  291.  
  292.  
  293.  
  294.  
  295.  
  296.  
  297.  
  298.  
  299.                                                            Page: 4
  300.                                                      The Window BOSS
  301.  
  302.  
  303.  
  304.         4.1. Window Basics
  305.  
  306.         Here is the famous "hello" program!  As you can see it's pretty 
  307.         simple to get windows into your applications with The Window 
  308.         BOSS!!  You should review this code in conjunction with the 
  309.         function descriptions found in this manual and the concepts 
  310.         outlined in the Important Concepts section following the 
  311.         examples.
  312.  
  313.         #include "windows.h"            /* REQUIRED */
  314.         main()
  315.         {
  316.         WINDOWPTR w1;                   /* window handle */
  317.         int batrib;                     /* border atrib */
  318.         int watrib;                     /* window atrib */
  319.  
  320.         /*
  321.          * Set attributes:
  322.          *
  323.          *      border - blue/white box
  324.          *      window - white background/black letters
  325.          *
  326.         */
  327.  
  328.           batrib = (BLUE << 4) | WHITE; /* border atrib */
  329.           watrib = (WHITE <<4) | BLACK; /* window atrib */
  330.  
  331.         /*
  332.          * Open window at 0,0 - 25 cells wide and 10 cells high
  333.         */
  334.  
  335.           w1 = wn_open(0,0,0,25,10,watrib,batrib);
  336.           if(!w1) exit();       
  337.  
  338.         /*
  339.          * Print the famous string and wait for key to be struck.
  340.          * Close window on key strike.. exit.
  341.         */
  342.  
  343.           wn_printf(w1,"Hello World...");
  344.           v_getch();                    /* wait for key */
  345.           wn_close(w1);                 /* close the window */
  346.           exit(0);                      /* and exit */
  347.         }
  348.  
  349.         /* End */
  350.  
  351.  
  352.  
  353.  
  354.  
  355.  
  356.  
  357.  
  358.  
  359.  
  360.                                                            Page: 5
  361.                                                      The Window BOSS
  362.  
  363.  
  364.  
  365.         4.2. Data Entry Basics
  366.  
  367.         Lets expand our "hello" program to prompt and fetch a name.
  368.  
  369.         #include "windows.h"            /* REQUIRED */
  370.         main()
  371.         {
  372.         WINDOWPTR w1;                   /* window handle */
  373.         int batrib;                     /* border atrib */
  374.         int watrib;                     /* window atrib */
  375.         char name[15];                  /* name */
  376.  
  377.         /*
  378.          * Set attributes:
  379.          *
  380.          *      border - blue/white box
  381.          *      window - white background/black letters
  382.          *
  383.         */
  384.  
  385.           batrib = (BLUE << 4) | WHITE; /* border atrib */
  386.           watrib = (WHITE <<4) | BLACK; /* window atrib */
  387.  
  388.         /*
  389.          * Open window at 0,0 - 25 cells wide and 10 cells high
  390.         */
  391.  
  392.           w1 = wn_open(0,0,0,25,10,watrib,batrib);
  393.           if(!w1) exit();       
  394.  
  395.         /*
  396.          * Print the famous string, prompt and fetch a name, 
  397.          * wait for key to be struck.
  398.          * Close window on key strike.. exit.
  399.         */
  400.  
  401.           wn_printf(w1,"Hello World...");
  402.  
  403.           *name = NUL;                  /* init buffer for name */
  404.           wn_gtext(XEQ,NFRM,NFLD,w1,2,1,"Name: ",watrib,'_',15,name,NSTR,NSTR);
  405.  
  406.           v_getch();                    /* wait for key */
  407.           wn_close(w1);                 /* close the window */
  408.           exit(0);                      /* and exit */
  409.         }
  410.  
  411.         /* End */
  412.  
  413.  
  414.  
  415.  
  416.  
  417.  
  418.  
  419.  
  420.  
  421.                                                            Page: 6
  422.                                                      The Window BOSS
  423.  
  424.  
  425.  
  426.         4.3. Form Basics
  427.  
  428.         Now we will expand a bit further to read a 2 field form.
  429.  
  430.         #include "windows.h"            /* REQUIRED */
  431.         main()
  432.         {
  433.         WINDOWPTR w1;                   /* window handle */
  434.         WIFORM f1;                      /* form handle */
  435.         int batrib;                     /* border atrib */
  436.         int watrib;                     /* window atrib */
  437.         char name[15];                  /* name */
  438.         char city[15];                  /* city */
  439.  
  440.         /*
  441.          * Set attributes:
  442.          *
  443.          *      border - blue/white box
  444.          *      window - white background/black letters
  445.          *
  446.         */
  447.  
  448.           batrib = (BLUE << 4) | WHITE; /* border atrib */
  449.           watrib = (WHITE <<4) | BLACK; /* window atrib */
  450.  
  451.         /*
  452.          * Open window at 0,0 - 25 cells wide and 10 cells high
  453.         */
  454.  
  455.           w1 = wn_open(0,0,0,25,10,watrib,batrib);
  456.           if(!w1) exit();       
  457.  
  458.         /*
  459.          * Print the famous string, create, define, and fetch form
  460.          * wait for key to be struck.
  461.          * Close window on key strike.. exit.
  462.         */
  463.  
  464.           wn_printf(w1,"Hello World...");
  465.  
  466.           *name = NUL;                  /* init buffer for name */
  467.           *city = NUL;                  /* init buffer for city */
  468.           f1 = wn_frmopn(3);            /* open form 2 + 1 Fields */
  469.           wn_gtext(SET,f1,0,w1,2,1,"Name: ",watrib,'_',15,name,NSTR,NSTR);
  470.           wn_gtext(SET,f1,1,w1,3,1,"City: ",watrib,'_',15,city,NSTR,NSTR);
  471.           wn_frmget(f1);                /* read the form */
  472.  
  473.           v_getch();                    /* wait for key */
  474.           wn_frmcls(f1);                /* first close the form */
  475.           wn_close(w1);                 /* then close the window */
  476.           exit(0);                      /* and exit */
  477.         }
  478.  
  479.  
  480.  
  481.  
  482.                                                            Page: 7
  483.                                                      The Window BOSS
  484.  
  485.  
  486.  
  487.         4.4. Popup Menu Basics
  488.  
  489.         Popup and pulldown menus add that extra sparkle to your 
  490.         applications.  The Window BOSS includes a simple popup menu 
  491.         system that is fast and easy to use.  The system consists of two 
  492.         functions; wn_popup() and wn_qpopup().  wn_popup() is an 
  493.         interactive version of wn_qpopup().  That is to say that 
  494.         wn_popup() can be used to solicit user input while wn_qpopup is a 
  495.         *information only* popup.  The "q" in qpopup stands for 'quick'.  
  496.         Both functions have function parameters and require the menu 
  497.         structure "pmenu" to be initialized.  "pmenu" is defined in 
  498.         "windows.h".
  499.  
  500.         Popup menus, like windows, have size (height & width), an origin 
  501.         (row & column), and attributes (text & border).  These are passed 
  502.         as parameters to both wn_popup and wn_qpopup in the same fashion 
  503.         as they would be for a call to wn_open.  In addition to the 
  504.         normal window stuff, popup menus also have information that needs 
  505.         to be displayed and, in some cases, information that needs to be 
  506.         returned, to the calling function.  This additional information 
  507.         is passed to popup via the pmenu structure.  The pmenu structure 
  508.         allows us to tell wn_popup what text is to be displayed where, 
  509.         and what value (return code), if any, is to be provided back to 
  510.         the calling function.
  511.  
  512.         Both wn_popup and wn_qpopup call wn_open to open a window defined 
  513.         by the calling parameters. Calls to wn_putsa are then made to 
  514.         display the text defined in pmenu within the window just opened 
  515.         at the location in the window specified by the values defined in 
  516.         pmenu.  A menu item is highlighted by moving either the cursor 
  517.         keys, space bar, or by pressing the first character of the menu 
  518.         item desired.  Control is passed back to the calling function 
  519.         when the 'Enter' or 'Escape' key is pressed. Here is a typical 
  520.         call to wn_popup:
  521.  
  522.             wat = (WHITE<<4|BLACK);
  523.             bat = (BLUE<<4|WHITE); 
  524.             rv = wn_popup(0, 0, 0, 33, 14, wat, bat, &intelc, FALSE);
  525.                           |                       |  |     |  |   |
  526.                           +-------\/--------------+  |     |  |   |
  527.                              Normal wn_open parms    |     |  |   |
  528.                                                      |     |  |   |
  529.                                   pmenu structure  <-+-----+  |   |
  530.                                                               |   |
  531.                                         window close flag   <-+---+
  532.  
  533.         The normal wn_open parameters define the popup menu's location, 
  534.         size, and color.  The pmenu structure address allows wn_popup and 
  535.         wn_qpopup to access the contents of the intelc pmenu structure.  
  536.         The window close flag is used to tell wn_popup whether or not to 
  537.         close the popup menu when returning to the calling function. 
  538.         Telling wn_popup not to close the menu when returning to the 
  539.         calling function allows you to create nested popups.
  540.  
  541.  
  542.  
  543.                                                            Page: 8
  544.                                                      The Window BOSS
  545.  
  546.  
  547.  
  548.         Popup Menu Basics - continued.
  549.  
  550.  
  551.  
  552.         Lets examine the pmenu structure definition from windows.h:
  553.  
  554.           struct mitem {              /* POPUP menu item template */
  555.             int r;                    /* row */
  556.             int c;                    /* col */
  557.             char *t;                  /* text */
  558.             int rv;                   /* return value */
  559.           };
  560.  
  561.           struct pmenu {              /* POPUP menu structure */
  562.             WINDOWPTR wpsave;         /* place to hold window id */
  563.             int winopn;               /* leave window open flag */
  564.             int lndx;                 /* last index */
  565.             int fm;                   /* first menu item index */
  566.             int lm;                   /* last menu item index */
  567.             struct mitem scrn[WN_MXROWS*4]; /* a bunch of menu items */
  568.           };                          /* NOTE RELATIVE LIMIT */
  569.  
  570.           mitem - Popup menus contain a number of menu items. Each menu 
  571.           item has a location (within the window), text (to be displayed 
  572.           in the window), and an integer return code that is passed back 
  573.           to the calling function to let the caller know which menu item 
  574.           was selected.  "r" and "c" define the row and column, "t" is a 
  575.           pointer to the text, and rv is integer return code.
  576.              
  577.           pmenu - In addition to the information needed about each menu 
  578.           item, we need to do some internal housekeeping on the popup 
  579.           menu itself.  "wpsave" is used to store the WINDOWPTR that was 
  580.           returned from the call to wn_open made by popup. "winopn" is 
  581.           used internally by popup as an indicator of whether or not the 
  582.           window referenced by wpsave is currently open.  "lndx" is used 
  583.           internally to hold the index of the menu item last referenced 
  584.           or selected.  The combination of "wpsave", "winopn", and "lndx" 
  585.           provide wn_popup with the ability to correctly handle both 
  586.           nested and non-nested popups.  The structure members "wpsave", 
  587.           "winopn", "lndx" should not be modified, only initialized. 
  588.  
  589.  
  590.  
  591.  
  592.  
  593.  
  594.  
  595.  
  596.  
  597.  
  598.  
  599.  
  600.  
  601.  
  602.  
  603.  
  604.                                                            Page: 9
  605.                                                      The Window BOSS
  606.  
  607.  
  608.  
  609.         Popup Menu Basics - continued.
  610.  
  611.  
  612.  
  613.           The Window BOSS's popup menus allow you to have informational 
  614.           headers and trailers.  This is handy for providing multiple 
  615.           line titles and or trailing instructional messages.  Consider 
  616.           the following:
  617.  
  618.              +---------------------------------+
  619.              |                                 |
  620.              |           Intellicom            |   <- Informational
  621.              |          Quick - Help           |   <- Informational
  622.              |                                 |
  623.              |     1 General Information       |   <- Action item
  624.              |     2 Terminal Mode Options     |   <- Action item
  625.              |     3 XMODEM File Send          |   <- Action item
  626.              |     4 XMODEM File Receive       |   <- Action item
  627.              |     5 CompuServe Exec Mode      |   <- Action item  
  628.              |                                 |
  629.              |  Press: ESC to quit or Cursor   |   <- Informational
  630.              |   Keys to Position Cursor then  |   <- Informational 
  631.              |   press RETURN for MORE info.   |   <- Informational
  632.              |                                 |
  633.              +---------------------------------+
  634.  
  635.           In the above popup there are 10 menu items, 5 are action 
  636.           oriented, and 5 are informational.  They are numbered 0 through 
  637.           9 and correspond to the "scrn" array of pointers in the pmenu 
  638.           structure. "fm" and "lm" are the indexes of the first and last 
  639.           action items in scrn array.  In the case of the above popup, fm 
  640.           and lm would be initialized to 2 and 6 respectively. "fm" and 
  641.           "lm", like the other housekeeping structure members, should not 
  642.           be modified, only initialized.  The pmenu structure for this 
  643.           popup is as follows: 
  644.  
  645.           static struct pmenu intelc = {
  646.             0, FALSE, 0,                     /* wpsave, winopn, lndx */
  647.              2, 6, {                         /* fm, lm */
  648.              1, 2, "         Intellicom", 0,            /** ----- **/
  649.              2, 2, "        Quick - Help", 0,           /*    |    */ 
  650.              4, 5, "1 General Information  ", 1,        /*    |    */
  651.              5, 5, "2 Terminal Mode Options", 2,        /*    |    */
  652.              6, 5, "3 XMODEM File Send     ", 3,        /* 10 menu */
  653.              7, 5, "4 XMODEM File Receive  ", 4,        /*  items  */
  654.              8, 5, "5 CompuServe Exec Mode ", 5,        /*         */
  655.             10, 2, "Press: ESC to quit or Cursor", 0,   /*         */
  656.             11, 2, " Keys to Position Cursor then", 0,  /*         */
  657.             12, 2, " press RETURN for MORE info.", 0,   /** ----- **/
  658.             99, 99, "",99 }                 /* ALWAYS ADD THIS LINE */
  659.           };
  660.           
  661.  
  662.  
  663.  
  664.  
  665.                                                            Page: 10
  666.                                                      The Window BOSS
  667.  
  668.  
  669.  
  670.         Popup Menu Basics - continued.
  671.  
  672.  
  673.  
  674.         The end of the pmenu structure is designated by defining a menu 
  675.         item at row 99, column 99, with null text, with a return code of 
  676.         99.  THIS MUST ALWAYS BE DONE!
  677.  
  678.           Example:
  679.              
  680.              #include "windows.h"
  681.  
  682.              static struct pmenu intelc = {
  683.                0, FALSE, 0,
  684.                2, 6, {
  685.                1, 2, "         Intellicom", 0,
  686.                2, 2, "        Quick - Help", 0,
  687.                4, 5, "1 General Information  ", 1,
  688.                5, 5, "2 Terminal Mode Options", 2,
  689.                6, 5, "3 XMODEM File Send     ", 3,
  690.                7, 5, "4 XMODEM File Receive  ", 4,
  691.                8, 5, "5 CompuServe Exec Mode ", 5,
  692.               10, 2, "Press: ESC to quit or Cursor", 0,
  693.               11, 2, " Keys to Position Cursor then", 0,
  694.               12, 2, " press RETURN for MORE info.", 0,
  695.               99, 99, "",99 }
  696.              };
  697.             
  698.              main()
  699.              {
  700.              WINDOWPTR w1;
  701.              int wat, bat, rv;
  702.  
  703.                wn_init();
  704.                w1 = wn_open(0,11,1,31,2,NORMAL,NORMAL);
  705.                if(!w1) exit(1);
  706.                wat = (WHITE<<4|BLACK);
  707.                bat = (BLUE<<4|WHITE); 
  708.                rv = wn_popup(0, 0, 0, 33, 14, wat, bat, &intelc, FALSE);
  709.                wn_printf(w1, "wn_popup returned: %d\n",rv);
  710.                wn_printf(w1, "Press any key to continue..");
  711.                v_getch();
  712.                wn_close(w1);
  713.                wn_exit();
  714.                exit(0);
  715.              }
  716.              /* End */
  717.  
  718.           To make the popup menu disappear upon return, change the call 
  719.           to wn_popup to be:
  720.  
  721.                rv = wn_popup(0, 0, 0, 33, 14, wat, bat, &intelc, TRUE);
  722.  
  723.  
  724.  
  725.  
  726.                                                            Page: 11
  727.                                                      The Window BOSS
  728.  
  729.  
  730.  
  731.         Popup Menu Basics - continued.
  732.  
  733.  
  734.  
  735.         The calling sequence and setup of wn_qpopup is similar to 
  736.         wn_popup but the functions significantly differ operationally.  
  737.         The parameter list differs in that there is no window close flag 
  738.         parameter.  The operational differences are more significant. 
  739.         wn_qpopup places the popup window on the screen and then 
  740.         immediately returns a WINDOWPTR to the open and active popup 
  741.         window.  The calling function assumes full responsibility for  
  742.         the window from then on (i.e. moving, closing, etc.).
  743.  
  744.         Quick popups are used to display information only and do not 
  745.         contain action menu items.  
  746.  
  747.         Example:
  748.  
  749.              #include "windows.h"
  750.  
  751.              static struct pmenu m1 = {
  752.                0, FALSE, 0,
  753.                0, 0, {
  754.                1, 2, "Presenting", 0,
  755.                99, 99, "",99 }
  756.              };
  757.  
  758.              main()
  759.              {
  760.              int wat, bat;
  761.              WINDOWPTR w2;
  762.  
  763.                wat = (WHITE<<4|BLACK);
  764.                bat = (BLUE<<4|WHITE);
  765.                w2 = wn_qpopup(0,0,0,16,3,wat,bat,&m1);
  766.                v_getch();
  767.                wn_close(w2);
  768.                wn_exit();
  769.                exit();
  770.              }
  771.              /* End */
  772.  
  773.  
  774.  
  775.  
  776.  
  777.  
  778.  
  779.  
  780.  
  781.  
  782.  
  783.  
  784.  
  785.  
  786.  
  787.                                                            Page: 12
  788.                                                      The Window BOSS
  789.  
  790.  
  791.  
  792.         Popup Menu Basics - continued.
  793.  
  794.  
  795.  
  796.         4.4.1. Notes
  797.  
  798.         Popup menu items are highlighted by moving the cursor bar with 
  799.         the arrow keys, space bar, or by pressing the first letter/digit 
  800.         of the menu item.  wn_popup will return as soon as the Enter or 
  801.         Escape key is struck.  The return code specified in the pmenu 
  802.         structure is returned when the Enter key is pressed, Escape 
  803.         causes return code of 99 to be passed back to the calling 
  804.         function. 
  805.  
  806.         Menu navigation is from the current to next or current to 
  807.         previous menu item when using the cursor keys or space bar.  Item 
  808.         skipping can only be accomplished by using the "first character" 
  809.         selection method.  Skip selection will only work as anticipated, 
  810.         if the first character of each action menu item is unique.
  811.  
  812.         Source code is provided (WN_HELP.C) to allow you to customize 
  813.         and/or enhance the popup menu system to meet your needs.
  814.  
  815.         The BOSSDEMO program contains coding samples showing the use of 
  816.         wn_popup, wn_qpopup, and how to implement pulldown menus using 
  817.         wn_popup.
  818.  
  819.  
  820.  
  821.  
  822.  
  823.  
  824.  
  825.  
  826.  
  827.  
  828.  
  829.  
  830.  
  831.  
  832.  
  833.  
  834.  
  835.  
  836.  
  837.  
  838.  
  839.  
  840.  
  841.  
  842.  
  843.  
  844.  
  845.  
  846.  
  847.  
  848.                                                            Page: 13
  849.                                                      The Window BOSS
  850.  
  851.  
  852.  
  853.         4.5. Help System Basics
  854.  
  855.         The Window BOSS includes a file based help system that can be 
  856.         used to provide your applications with "context sensitive" help.  
  857.  
  858.         It would be helpful for you to print out a few pages of 
  859.         "INTELC.HLP" to refer to during the following discussion.  You 
  860.         should also run the BOSSDEMO program and exercise the Intellicom 
  861.         Quick Help popup menu. This code uses the help system to produce 
  862.         the displays when menu selections are made.
  863.  
  864.         The system uses plain ASCII text files you create with your 
  865.         favorite editor.  A special, but easy to follow, file layout is 
  866.         used.  The file layout we have chosen allows the plain ASCII text 
  867.         files to be indexed using the supplied index generation utility 
  868.         GENINDEX.  The indexing provides the system with the ability to 
  869.         rapidly locate and display help messages when called upon to do 
  870.         so.  Since the source (WN_HELP.C & GENINDEX.C) to the entire help 
  871.         system is provided, you can modify it to meet your own needs.  
  872.  
  873.         In order to use the help system in your application you must take 
  874.         two preparatory steps: (1) prepare the ASCII text file in the 
  875.         specified format and (2) run the GENINDEX program.  For example, 
  876.         you first create a text file called "TAXES.HLP" using Brief, 
  877.         Vedit, Edlin, or your favorite word processor in non_document 
  878.         (ASCII) mode and then run the GENINDEX program by:
  879.  
  880.                             C> GENINDEX TAXES.HLP
  881.  
  882.         The GENINDEX program reads "TAXES.HLP" and produces "TAXES.NDX".  
  883.         Both "TAXES.HLP" and "TAXES.NDX" must be available to the 
  884.         application program at run time.
  885.  
  886.         To actually use the help system in your application you must 
  887.         first initialize the help system by calling wn_hlinit.  This 
  888.         must be done before any attempt is made to display help messages.
  889.         The help system must only be initialized once.  The call to 
  890.         initialize the help system is of the form:
  891.  
  892.              .....                              /* code */
  893.           rv = wn_hlinit(row, col, width, height, atrib, batrib, file)
  894.              .....                              /* code */
  895.  
  896.         The parameters define the location, size, and attributes of the 
  897.         window in which the help messages will be displayed, along with 
  898.         the name of the help file to be used.  wn_hlinit returns TRUE if 
  899.         all is well, FALSE otherwise.
  900.  
  901.         Initialization does not cause a window to be displayed, it merely 
  902.         sets the system up for later use by opening and reading the index 
  903.         file into memory.
  904.  
  905.  
  906.  
  907.  
  908.  
  909.                                                            Page: 14
  910.                                                      The Window BOSS
  911.  
  912.  
  913.  
  914.         Help System Basics - continued.
  915.  
  916.  
  917.  
  918.         To initialize the system for full screen help messages in a 
  919.         window with white letters on blue background and a similar border 
  920.         using the file "INTELC.HLP", the call to wn_hlinit would be:
  921.  
  922.          wn_hlinit(0,0,78,23,(BLUE<<4|WHITE),(BLUE<<4|WHITE),"intelc");
  923.  
  924.         The help system is now initialized to display full screen help 
  925.         messages using "INTELC.HLP" and "INTELC.NDX" as the help message 
  926.         database. (The BOSSDEMO program uses the above code.)
  927.  
  928.         Important - Unless you intend to modify the help system, the 
  929.         above call to wn_hlinit should always be used - modified only to 
  930.         reflect the name of your help file. 
  931.  
  932.         Obtaining help at run time is accomplished by calling the wn_help 
  933.         function with a subject key word.  For example:
  934.  
  935.              rv = wn_help("%general information%");
  936.  
  937.         Subject key words are located in the ASCII help file you prepare 
  938.         and are processed by the GENINDEX program.  The usage of 
  939.         wn_help() should be clear once we complete the discussion of the 
  940.         file layout.
  941.  
  942.         The text file you prepare consists of help system commands, 
  943.         subject key words, and the actual text to be displayed which is 
  944.         formatted to fit inside the window defined by wn_hlinit.  
  945.  
  946.         Commands 
  947.  
  948.           .cp   - signals end of page 
  949.           *END* - signals end of page and end of help for this subject
  950.  
  951.           Text is sequentially displayed one screen at a time from the 
  952.           subject keyword through any number of .cp delimited screens 
  953.           through and including the screen delimited by *END*.  The 
  954.           system allows for forward and reverse display via the PgDn and 
  955.           PgUp keys.  The .cp signals the end of a single screen in a 
  956.           series of 2 or more screens.  When .cp is detected the message  
  957.           "Esc to quit help, PgUp for previous screen, any other key to 
  958.           continue..." will be displayed.  When *END* is detected, the 
  959.           message "End of help, PgUp for previous screen, any other key 
  960.           to continue..." is displayed.  
  961.  
  962.  
  963.  
  964.  
  965.  
  966.  
  967.  
  968.  
  969.  
  970.                                                            Page: 15
  971.                                                      The Window BOSS
  972.  
  973.  
  974.  
  975.         Help System Basics - continued.
  976.  
  977.  
  978.  
  979.         Keywords:
  980.  
  981.           Keywords are always enclosed within percent signs (%) and 
  982.           signal the beginning of text on a particular subject.  They are 
  983.           used by the GENINDEX program to create the index (NDX) file and 
  984.           are used by you as parameters to the wn_help() function.
  985.  
  986.           In the case of "INTELC.HLP" you will find the following 
  987.           keywords:
  988.  
  989.           %ksend%, %ksend1%, %krecv%, %krecv1%, %checksum xmit1%, 
  990.           %checksum recv1%, %terminal/c1%, %cistty1%, %terminal%, 
  991.           %terminal/c%, %cistty%, %status%, %dos window%, %exit to dos%,
  992.           %close capture%, %autodial%, %ascii xmit%, %checksum xmit%,
  993.           %checksum recv%, %general information%, %bossinfo%, 
  994.           %end-of-file%
  995.  
  996.         Text:
  997.              
  998.           Each screen of text is delimited by either a keyword, the .cp 
  999.           command, or the *END* command.  Text is always formatted to fit 
  1000.           inside the help window.  In the case of "INTELC.HLP" there are 
  1001.           two leading spaces and the text is right justified to end at 
  1002.           column 76.  The two leading and trailing spaces center the text 
  1003.           between the borders.  Blank lines at the top of each screen 
  1004.           (page full) can be used to vertically center the text.  Spaces 
  1005.           on the left can be used to horizontally center text.
  1006.  
  1007.           Important - Unless you intend to modify the help system, the 
  1008.           format defined by "INTELC.HLP" should always be followed for 
  1009.           any help files you create for your own use.
  1010.  
  1011.         4.5.1. Notes
  1012.  
  1013.           The help system is configured to provide a full screen text 
  1014.           message, subject keys are limited to 25 characters, and there 
  1015.           is a limit of 255 subject keys per file.  This can be changed 
  1016.           by modifying the functions found in "wn_help.c"  THERE IS A 
  1017.           DIRECT CORRELATION BETWEEN THE PARAMETERS USED TO INITIALIZE 
  1018.           THE HELP SYSTEM AND THE LAYOUT OF THE ASCII TEXT FILE READ BY 
  1019.           THE GENINDEX PROGRAM.  If you modify the code be sure to also 
  1020.           modify location and text of the messages to be displayed when 
  1021.           .cp and/or *END* are detected.
  1022.          
  1023.  
  1024.  
  1025.  
  1026.  
  1027.  
  1028.  
  1029.  
  1030.  
  1031.                                                            Page: 16
  1032.                                                      The Window BOSS
  1033.  
  1034.  
  1035.  
  1036.         Help System Basics - continued.
  1037.  
  1038.  
  1039.  
  1040.           The GENINDEX program is provided in source form.  An EXEcutable 
  1041.           will have to be created locally.  You may also have to adjust 
  1042.           the logic to account for the way the various compilers treat 
  1043.           <CR><LF> sequences.  This usually amounts to nothing more than 
  1044.           changing the "rb" to "r" in the fopen statement.  The best way 
  1045.           to determine if you have built a properly functioning GENINDEX 
  1046.           program is to run your newly created GENINDEX program against 
  1047.           "INTELC.HLP" to create a new "INTELC.NDX".  Then rebuild the 
  1048.           BOSSDEMO program and test to see if the Intellicom Quick Help 
  1049.           popup is functioning properly.  If it is, you are all set.  If 
  1050.           you receive a "Sorry - No info on... " message, then you will 
  1051.           need to edit GENINDEX to make the "rb"/"r" change.  
  1052.  
  1053.           This help system has nothing in common with the way in which 
  1054.           the data entry help and error messages get displayed.
  1055.  
  1056.           Help files always have a filename extension of "HLP".  Index 
  1057.           files always have a filename extension of "NDX".
  1058.  
  1059.  
  1060.  
  1061.  
  1062.  
  1063.  
  1064.  
  1065.  
  1066.  
  1067.  
  1068.  
  1069.  
  1070.  
  1071.  
  1072.  
  1073.  
  1074.  
  1075.  
  1076.  
  1077.  
  1078.  
  1079.  
  1080.  
  1081.  
  1082.  
  1083.  
  1084.  
  1085.  
  1086.  
  1087.  
  1088.  
  1089.  
  1090.  
  1091.  
  1092.                                                            Page: 17
  1093.                                                      The Window BOSS
  1094.  
  1095.  
  1096.  
  1097.         Help System Basics - continued.
  1098.  
  1099.  
  1100.  
  1101.         Here is a sample program that uses INTELC.HLP.
  1102.  
  1103.              #include "windows.h"
  1104.              main()
  1105.              {
  1106.              WINDOWPTR w1;                   /* window handle */
  1107.              int batrib;                     /* border atrib */
  1108.              int watrib;                     /* window atrib */
  1109.  
  1110.                wn_init();
  1111.                batrib = BLUE<<4 | WHITE;
  1112.                watrib = WHITE<<4 | BLACK;
  1113.                w1 = wn_open(0,0,0,25,10,watrib,batrib);
  1114.                if(!w1) exit(1);
  1115.  
  1116.                wn_hlinit(0,0,78,23,(BLUE<<4|WHITE),(BLUE<<4|WHITE),"intelc");
  1117.  
  1118.                wn_printf(w1, "Press any key\n"); v_getch();
  1119.                wn_help("%ksend%");
  1120.                wn_printf(w1, "Press any key\n"); v_getch();
  1121.                wn_help("%ksend1%");
  1122.                wn_printf(w1, "Press any key\n"); v_getch();
  1123.                wn_help("%krecv%");
  1124.                wn_printf(w1, "Press any key\n"); v_getch();
  1125.                wn_help("%krecv1%");
  1126.                wn_printf(w1, "Press any key\n"); v_getch();
  1127.                wn_help("%checksum xmit1%");
  1128.  
  1129.                wn_printf(w1, "Press any key\n"); v_getch();
  1130.                wn_close(w1);
  1131.                wn_exit();
  1132.                exit(0);
  1133.              }
  1134.  
  1135.              /* End */
  1136.  
  1137.  
  1138.  
  1139.  
  1140.  
  1141.  
  1142.  
  1143.  
  1144.  
  1145.  
  1146.  
  1147.  
  1148.  
  1149.  
  1150.  
  1151.  
  1152.  
  1153.                                                            Page: 18
  1154.                                                      The Window BOSS
  1155.  
  1156.  
  1157.  
  1158.         4.6. Mouse Basics
  1159.  
  1160.         The Window BOSS includes a collection of routines that provide 
  1161.         the building blocks for developing applications that incorporate 
  1162.         Mouse support.  As a programmer you will need following:
  1163.  
  1164.              . The mouse and its associated hardware
  1165.  
  1166.              . The mouse driver software
  1167.  
  1168.              . C and/or Assembly level functions to communicate with the 
  1169.                mouse
  1170.  
  1171.         The first two are provided by the mouse manufacturer and must be 
  1172.         installed as outlined in the manufacturer's literature.  The last 
  1173.         item is provided as part of The Window BOSS. The Window BOSS's 
  1174.         mouse functions adhere to the de facto Microsoft standard. 
  1175.         However, all of the routines have been extensively tested with 
  1176.         both Microsoft and Logitech mice.
  1177.  
  1178.         Mouse Communication
  1179.  
  1180.         The only practical method of communicating with the mouse is 
  1181.         through the mouse device driver, which is accessible via software 
  1182.         interrupt 33H.  This interrupt is not used by DOS and is claimed 
  1183.         by the mouse device driver at its invocation.  Information is 
  1184.         exchanged between the mouse device driver and calling software 
  1185.         via the standard 8086/88 registers. As a Window BOSS user you 
  1186.         will be pleased to know that the burden of having to deal with 
  1187.         the mouse at this level has been replaced by a collection of "C" 
  1188.         level routines that handle all of the aforementioned setup, 
  1189.         software interrupts and register loading/unloading!!
  1190.  
  1191.         Mouse Usage
  1192.  
  1193.         Once the mouse has been initialized (reset), you can show it, 
  1194.         hide it, move it, ask it where it is, check to see if its buttons 
  1195.         have been pressed or released, make it emulate a light pen, put a 
  1196.         cage around it (set its region), define its shape and associated 
  1197.         attribute, or ask it how many buttons it has!
  1198.  
  1199.         Mouse Functions
  1200.  
  1201.         The standard Microsoft mouse supports 16 functions. Logitech's 
  1202.         are the same, although some are tweaked a tad to handle the 3rd 
  1203.         button.  The Window BOSS provides an easy to use interface to the 
  1204.         low level mouse functions and several higher level functions to 
  1205.         ease your applications level programming.
  1206.  
  1207.  
  1208.  
  1209.  
  1210.  
  1211.  
  1212.  
  1213.  
  1214.                                                            Page: 19
  1215.                                                      The Window BOSS
  1216.  
  1217.  
  1218.  
  1219.         Mouse Basics - continued.
  1220.  
  1221.  
  1222.  
  1223.         Mouse Functions - continued.
  1224.  
  1225.         The following table summarizes the 16 Microsoft Mouse Functions:
  1226.  
  1227.              Function       Description              Window BOSS Function
  1228.                 0           Initialize mouse         mo_reset()
  1229.                 1           Show mouse               mo_show()
  1230.                 2           Hide mouse cursor        mo_hide()
  1231.                 3           Get position & status    mo_pos()
  1232.                 4           Set mouse position       mo_move()
  1233.                 5           Get button press info    mo_pbinfo()
  1234.                 6           Get button release info  mo_rbinfo()
  1235.                 7           Set min/max columns      mo_clim()
  1236.                 8           Set min/max rows         mo_rlim()
  1237.                 9 *         Define graphics pointer  mo_sgcursor()
  1238.                10           Define text pointer      mo_scursor()
  1239.                11           Read motion counters     mo_motion()
  1240.                12 *         Define event handler     mo_task()
  1241.                13           Light pen emulation on   mo_lpon()
  1242.                14           Light pen emulation off  mo_lpoff()
  1243.                15 *         Set motion pixel ratio   mo_ratio()
  1244.  
  1245.         In addition to the above low level interface routines, the 
  1246.         following application's level functions have been implemented to 
  1247.         ease the mouse's natural display adapter sensitivity.  Without 
  1248.         these routines, mouse applications would have to deal with the 
  1249.         mouse in a 640x200-pixel plane - even in text mode!
  1250.  
  1251.              mo_rcpos()     Return current mouse position (row, col)
  1252.              mo_locate()    Locate mouse (row, col)
  1253.              mo_press()     Get button pressed info (button, location..)
  1254.              mo_release()   Get button released info ( " " " " " " " " )
  1255.              mo_region()    Set mouse hot area (row, col, width, height)
  1256.              mo_setptr()    Set mouse pointer (style, attributes)
  1257.              mo_wait()      Wait for mouse to settle (de bouncing logic)
  1258.              mo_nbut()      Return # of buttons on mouse
  1259.  
  1260.         Most mouse applications will use and generally only need to use: 
  1261.         mo_reset(), mo_show(), mo_hide(), and most or all of the 
  1262.         application level functions.  
  1263.  
  1264.         The low level functions are provided for those who prefer to deal 
  1265.         with the mouse on its 640 x 200 pixel plane.
  1266.  
  1267.         All of the above supported functions are documented in the 
  1268.         FUNCTION CALL SYNOPSIS section of this manual.
  1269.  
  1270.         * Interfaces to these functions are provided, but are not 
  1271.         supported, by Star Guidance. 
  1272.  
  1273.  
  1274.  
  1275.                                                            Page: 20
  1276.                                                      The Window BOSS
  1277.  
  1278.  
  1279.  
  1280.         Mouse Basics - continued.
  1281.  
  1282.  
  1283.  
  1284.         Mouse Programming Example (Basic)
  1285.  
  1286.         #include "windows.h"                    /* ALWAYS */
  1287.  
  1288.         main()
  1289.         {
  1290.         MOUSEPTR m1;                            /* my mouse ptr */
  1291.         int mstat, mclik, mrow, mcol;           /* mouse stuff */
  1292.         int i;                                  /* scratch */
  1293.  
  1294.           v_cls(NORMAL);                        /* clear the screen */
  1295.           v_locate(0,0,0);                      /* locate the cursor */
  1296.  
  1297.           m1 = mo_reset();                      /* init mouse */
  1298.  
  1299.           if(m1) {                              /* mouse exists */
  1300.             printf("Mouse exists with %d buttons.\n", mo_nbutt(m1));
  1301.             mo_setptr(m1, 0x1E, NORMAL);        /* set mouse pointer style */
  1302.             mo_reigon(m1, 0, 0, 80, 25);        /* set mouse "window" */
  1303.             mo_show(m1);                        /* show the critter */
  1304.  
  1305.             v_locate(0,5,0);
  1306.             printf("Roll test... move mouse, click left or right to end.\n");
  1307.             do {                                /* rolling test */
  1308.               mo_rcpos(m1, &mstat, &mrow, &mcol);
  1309.               v_locate(0,6,0);
  1310.               printf("Mouse @ %03d,%03d", mrow, mcol);
  1311.             } while (!mstat);
  1312.  
  1313.             v_cls(NORMAL);                      /* clear screen */
  1314.             v_locate(0,0,0);                    /* home cursor */
  1315.             mo_hide(m1);                        /* hide mouse */
  1316.             m1 = mo_reset();                    /* reset mouse */
  1317.             exit(0);                            /* finito */
  1318.           }
  1319.           else {
  1320.             printf("NO MICE HERE!!\n");         /* tell of woe... */
  1321.             exit(0);                            /* exit */
  1322.           }
  1323.         }
  1324.  
  1325.         /* End */
  1326.  
  1327.  
  1328.  
  1329.  
  1330.  
  1331.  
  1332.  
  1333.  
  1334.  
  1335.  
  1336.                                                            Page: 21
  1337.                                                      The Window BOSS
  1338.  
  1339.  
  1340.  
  1341.         4.7. Important Concepts
  1342.  
  1343.         The preceding programming examples serve as the foundation for 
  1344.         some fundamental, but very important, concepts.  
  1345.  
  1346.         4.7.1. WINDOWS.H
  1347.  
  1348.         The Window BOSS requires the file "windows.h" to be included in 
  1349.         any source code files that are going to reference any of the 
  1350.         windowing, data entry, or form control functions.  Take the time 
  1351.         to peruse this file as it contains all of the constants and 
  1352.         structures used by both The Window BOSS and Data Clerk.  
  1353.         Also, please note that WINDOWS.H includes other standard compiler 
  1354.         header files.
  1355.  
  1356.         4.7.2. Window Handles
  1357.  
  1358.         All windowing functions (any function beginning with "wn_") 
  1359.         either explicitly require an associated window pointer to work, 
  1360.         or assume one already is, or will be, created.  
  1361.  
  1362.         4.7.3. Mouse Handles
  1363.  
  1364.         All mouse functions (any function beginning with "mo_") 
  1365.         either explicitly require an associated mouse pointer to work, 
  1366.         or assume one already is, or will be, created.  
  1367.  
  1368.         4.7.4. Window Origin
  1369.  
  1370.         Windows have an origin relative to the upper left hand corner of 
  1371.         the screen which is always row 0, and column 0.
  1372.  
  1373.         4.7.5. Text and Data Field Origins
  1374.  
  1375.         Text and data fields have an origin relative to the upper left 
  1376.         hand corner of the window, which is always row 0, column 0.
  1377.  
  1378.         4.7.6. Attributes
  1379.  
  1380.         Attributes (foreground/background colors) must be specified for 
  1381.         windows, borders, and data entry fields.  Prompts for data entry 
  1382.         fields always have the same attributes as the window. The fields 
  1383.         themselves can have, but do not require, a different attribute 
  1384.         set.
  1385.  
  1386.  
  1387.  
  1388.  
  1389.  
  1390.  
  1391.  
  1392.  
  1393.  
  1394.  
  1395.  
  1396.  
  1397.                                                            Page: 22
  1398.                                                      The Window BOSS
  1399.  
  1400.  
  1401.  
  1402.         4.7.7. Fields and Forms
  1403.  
  1404.         Fields are defined by calling the field definition functions 
  1405.         (wn_gdate, wn_gtime, wn_gphone, ...) with "SET" as the function 
  1406.         code (1st arg), a valid form handle (2nd arg), a field sequence 
  1407.         number (3rd arg), and the window handle (4th arg) belonging to 
  1408.         the window in which the form is to be displayed.  The same 
  1409.         functions that are used to retrieve discrete information can be 
  1410.         combined to create a form when used in conjunction with 
  1411.         wn_frmopn() and wn_frmget().  Note the use of XEQ vs. SET, NFRM 
  1412.         vs. f1, and NFLD in the preceding two program examples.  XEQ 
  1413.         stands for "execute now", while SET stands for "set up for later 
  1414.         execution under wn_frmget()".
  1415.  
  1416.         Forms are anchored to a particular window and must be created by 
  1417.         wn_frmopn() and defined with field definition functions.
  1418.  
  1419.         Data entry fields can be edited, pre-filled, have validation 
  1420.         ranges, and have both help and error messages associated with 
  1421.         them.  
  1422.  
  1423.         4.7.8. Return Values
  1424.  
  1425.         Some functions return an indication of success or failure which 
  1426.         you can foolishly ignore, or check to determine what action to 
  1427.         take.
  1428.  
  1429.         4.7.9. Closing Forms and Windows
  1430.  
  1431.         Both forms and windows should be closed when they are no longer 
  1432.         needed.  Although you can close them in any order, it makes sense 
  1433.         to close all forms associated with a window before closing the 
  1434.         window itself.  As a side note - attempting to reference either 
  1435.         forms or windows which have been closed can lead to unpredictable 
  1436.         results.
  1437.  
  1438.  
  1439.  
  1440.  
  1441.  
  1442.  
  1443.  
  1444.  
  1445.  
  1446.  
  1447.  
  1448.  
  1449.  
  1450.  
  1451.  
  1452.  
  1453.  
  1454.  
  1455.  
  1456.  
  1457.  
  1458.                                                            Page: 23
  1459.                                                      The Window BOSS
  1460.  
  1461.  
  1462.  
  1463.         Important Concepts - continued.
  1464.  
  1465.  
  1466.  
  1467.         4.7.10. Overlapping Windows
  1468.  
  1469.         The Window BOSS fully supports the concept of overlapping 
  1470.         windows, that is to say that you can have several windows on the 
  1471.         screen at the same time and freely access any one of them without 
  1472.         having to be concerned with the order in which they were opened 
  1473.         or whether or not any other windows overlap the one you wish to 
  1474.         access.  The Window BOSS employs the "most recently used is 
  1475.         active" concept.  This concept is based on the following:
  1476.  
  1477.              . The last window referenced is the current active 
  1478.                window.  
  1479.  
  1480.              . The current active window is always the top window.
  1481.  
  1482.         For example, let us assume that you have opened three overlapping 
  1483.         windows in the following order; w1, w2, w3. w3 is considered to 
  1484.         be the top window because it was the last window referenced. If 
  1485.         you now reference, or explicitly activate w2, The Window BOSS 
  1486.         will automatically adjust the screen image to insure that w2 is 
  1487.         now the top window with w3 and w1 being partially hidden by w2.
  1488.  
  1489.                   Before                   After
  1490.  
  1491.                   +----------+             +----------+
  1492.                   |  W1      |             | W1       |
  1493.                   |  +----------+          |  +----------+
  1494.                   |  | W2       |          |  | W2       |
  1495.                   |  |  +------------+     |  |          |----+
  1496.                   |  |  | W3         |     |  |          | W3 |
  1497.                   |  |  |            |     |  |          |    |
  1498.                   |  |  +------------+     |  |          |----+
  1499.                   |  |          |          |  |          |
  1500.                   |  +----------+          |  +----------+
  1501.                   |          |             |          |
  1502.                   +----------+             +----------+
  1503.  
  1504.         It is extremely important to keep in mind that The Window BOSS 
  1505.         will automatically activate (bring to the top) the window being 
  1506.         referenced.  By keeping your screen layouts attractive and 
  1507.         uncluttered there will be a minimum of window thrashing which is 
  1508.         both annoying and time consuming.
  1509.  
  1510.  
  1511.  
  1512.  
  1513.  
  1514.  
  1515.  
  1516.  
  1517.  
  1518.  
  1519.                                                            Page: 24
  1520.                                                      The Window BOSS
  1521.  
  1522.  
  1523.  
  1524.         Important Concepts - continued.
  1525.  
  1526.  
  1527.  
  1528.         4.7.11. Functions
  1529.  
  1530.         The Window BOSS's functions fall into four major groups: those 
  1531.         that manipulate windows, those that deal with data entry, those 
  1532.         that deal with the mouse, and those that deal with the video or 
  1533.         keyboard interface at a relatively low level.  All window and 
  1534.         data manipulation functions begin with the prefix "wn_" as in 
  1535.         "wn_open".  All mouse functions begin with "mo_" as in 
  1536.         "mo_reset", while all video and keyboard based functions begin 
  1537.         with "v_" or "_" as in "v_getch" and "_putch".  This convention 
  1538.         makes it easy to remember where to look when you want to do 
  1539.         something.  Additionally, there are several global functions 
  1540.         which begin with "wns_".  These functions, although visible to 
  1541.         the outside world, are used internally by The Window BOSS. 
  1542.  
  1543.         So ends the tale of the basics, you are now ready to add sizzle, 
  1544.         bright lights, and artistic touches to all your applications!  
  1545.  
  1546.  
  1547.  
  1548.  
  1549.  
  1550.  
  1551.  
  1552.  
  1553.  
  1554.  
  1555.  
  1556.  
  1557.  
  1558.  
  1559.  
  1560.  
  1561.  
  1562.  
  1563.  
  1564.  
  1565.  
  1566.  
  1567.  
  1568.  
  1569.  
  1570.  
  1571.  
  1572.  
  1573.  
  1574.  
  1575.  
  1576.  
  1577.  
  1578.  
  1579.  
  1580.                                                            Page: 25
  1581.                                                      The Window BOSS
  1582.  
  1583.  
  1584.  
  1585.         5. Distribution Methods & Media Kits 
  1586.  
  1587.         The Window BOSS is distributed on 5 1/4" DSDD diskettes.  There 
  1588.         are two media kits available: The Shareware diskette kit and The 
  1589.         Source diskette kit.  This doucument describes both media kits.  
  1590.         Neither media kit contains ALL of the files listed.
  1591.  
  1592.         The Shareware diskettes can be freely copied and shared.  The 
  1593.         Source diskettes cannot. In either case, you receive a bundled 
  1594.         product -- that is to say, we do not require you to order a 
  1595.         separate media kit for Microsoft, another for Borland, and so on.  
  1596.         All our products include support for all the compilers we 
  1597.         support. This makes moving from one compiler to another child's 
  1598.         play, and it also helps to protect your software development 
  1599.         investment, while at the same time saving you a significant sum 
  1600.         of money!
  1601.  
  1602.         5.1. CompuServe, GENIE, BIX, & Bulletin Board Files
  1603.  
  1604.         We always upload the latest release of shareware files to GENIE, 
  1605.         CompuServe, BIX, and selected BBS(s) around the country.  These 
  1606.         files can be found in the Vendor Support Software Library on the 
  1607.         IBM Round Table (M 616) of GENIE, in the "C" Language Section on 
  1608.         the IBM Programming Sig (GO IBMPRO) of CompuServe, and in the 
  1609.         "C.LANGUAGE" section of the "ibm.listings" on BIX. In all cases 
  1610.         we try to name the required files as BOSS01.LZH (code++), 
  1611.         BOSS2A.LZH & BOSS2B.LZH (libs), BOSS03.LZH (documentation).  
  1612.         Naturally, this naming convention is subject to the approval of 
  1613.         the respective service provider.  However, it is reasonable to 
  1614.         assume that the required files will always conform to a naming 
  1615.         convention that begins with "BOSS" or "BOS" and have the keyword 
  1616.         "windows" associated with them.  
  1617.  
  1618.         If you can not find The Window BOSS files on GENIE, BIX, or 
  1619.         CompuServe it may be due to a restructuring of the SIGs by the 
  1620.         respective service provider.  Try looking in the vendor support, 
  1621.         systems, or language areas of the SIGS.
  1622.  
  1623.         Bulletin Board files follow the same naming conventions as GENIE 
  1624.         and CompuServe files.  
  1625.  
  1626.         5.2. The SHAREWARE Distribution Diskette(s)
  1627.  
  1628.           The SHAREWARE diskette(s) contain the following files:
  1629.  
  1630.            Shareware Disk 1
  1631.  
  1632.              LHARC.EXE           <- Archive utility
  1633.              LHAR.DOC            <- Archive utility documentation    
  1634.              BOSS_DOC.LZH        <- Window BOSS Documentation archive
  1635.              BOSS_SUP.LZH        <- Support archive (code, etc.)
  1636.              READ.ME             <- Important notes
  1637.  
  1638.  
  1639.  
  1640.  
  1641.                                                            Page: 26
  1642.                                                      The Window BOSS
  1643.  
  1644.  
  1645.  
  1646.         The Shareware Distribution Diskette - continued.
  1647.  
  1648.  
  1649.            Shareware Disk 2
  1650.  
  1651.              BOSS_LB1.LZH        <- Library archive (Microsoft)
  1652.              BOSS_LB2.LZH        <- Library archive (Watcom, Zortech)
  1653.              BOSS_LB3.LZH        <- Library archive (Mix, Aztec, C86)
  1654.  
  1655.            Shareware Disk 3
  1656.  
  1657.              BOSS_LB4.LZH        <- Library archive (Datalight, Lattice,
  1658.                                                      Borland Turbo C)
  1659.              BOSS_LB5.LZH        <- Library archive (Microsoft Quick C,
  1660.                                                      TopSpeed C)
  1661.  
  1662.            =============================================================  
  1663.  
  1664.              Contents of BOSS_DOC
  1665.  
  1666.                BOSS.MAN          <- This manual
  1667.                BOSS.TOC          <- Table of Contents
  1668.  
  1669.              Contents of BOSS_SUP
  1670.  
  1671.                AZCS.BAT          <- Compiler Driver - Aztec
  1672.                C86.BAT           <- Compiler Driver - CI86
  1673.                TSS.BAT           <- Compiler Driver - TopSpeed C
  1674.                DLCS.BAT          <- Compiler Driver - Datalight
  1675.                LCS3.BAT          <- Compiler Driver - Lattice 3.4
  1676.                LCS6.BAT          <- Compiler Driver - Lattice 6.0
  1677.                MSC5.BAT          <- Compiler Driver - Microsoft C 5.X
  1678.                MSC6.BAT          <- Compiler Driver - Microsoft C 6.X
  1679.                MSQC20.BAT        <- Compiler Driver - Quick C 2.0
  1680.                MSQC25.BAT        <- Compiler Driver - Quick C 2.5
  1681.                PCCM.BAT          <- Compiler Driver - Mix Power C
  1682.                TCS.BAT       **  <- Compiler Driver - Turbo C   
  1683.                WECS.BAT          <- Compiler Driver - EXPRESS C
  1684.                WOCS.BAT          <- Compiler Driver - Watcom C
  1685.                ZTCS.BAT          <- Compiler Driver - Zortech C
  1686.  
  1687.                ** For use with both Turbo C 2.0 and the Standard C
  1688.                   Compiler distributed with Turbo C++ 1.0
  1689.  
  1690.                Continued on next page....
  1691.  
  1692.  
  1693.  
  1694.  
  1695.  
  1696.  
  1697.  
  1698.  
  1699.  
  1700.  
  1701.  
  1702.                                                            Page: 27
  1703.                                                      The Window BOSS
  1704.  
  1705.  
  1706.  
  1707.         The Shareware Distribution Diskette - continued.
  1708.  
  1709.  
  1710.            Contents of BOSS_SUP.LZH - continued.
  1711.  
  1712.                LOADTS.BAT        <- Link Batch file - TopSpeed C
  1713.                LOADAZ.BAT        <- Link Batch file - Aztec
  1714.                LOADC86.BAT       <- Link Batch file - CI86
  1715.                LOADDLC.BAT       <- Link Batch file - Datalight
  1716.                LOADLC3.BAT       <- Link Batch file - Lattice 3.4
  1717.                LOADLC6.BAT       <- Link Batch file - Lattice 6.0
  1718.                LOADMS5.BAT       <- Link Batch file - Microsoft C 5.X
  1719.                LOADMS6.BAT       <- Link Batch file - Microsoft C 6.X
  1720.                LOADQC20.BAT      <- Link Batch file - Quick C 2.0
  1721.                LOADQC25.BAT      <- Link Batch file - Quick C 2.5
  1722.                LOADPC.BAT        <- Link Batch file - Mix Power C
  1723.                LOADTC.BAT    **  <- Link Batch file - Turbo C   
  1724.                LOADWAT.BAT       <- Link Batch file - Watcom C
  1725.                TSAPP.PRJ         <- MAKE file       - TopSpeed C
  1726.                TSSWIN.PRJ        <- MAKE file       - TopSpeed C
  1727.  
  1728.                ** For use with both Turbo C 2.0 and the Standard C
  1729.                   Compiler distributed with Turbo C++ 1.0
  1730.  
  1731.  
  1732.  
  1733.  
  1734.  
  1735.  
  1736.  
  1737.  
  1738.  
  1739.  
  1740.  
  1741.  
  1742.  
  1743.  
  1744.  
  1745.  
  1746.  
  1747.  
  1748.  
  1749.  
  1750.  
  1751.  
  1752.  
  1753.  
  1754.  
  1755.  
  1756.  
  1757.  
  1758.  
  1759.  
  1760.  
  1761.  
  1762.  
  1763.                                                            Page: 28
  1764.                                                      The Window BOSS
  1765.  
  1766.  
  1767.  
  1768.         The Shareware Distribution Diskette - continued.
  1769.  
  1770.  
  1771.              Contents of BOSS_SUP - continued.
  1772.  
  1773.                LOADWEC.BAT       <- Link Batch file - EXPRESS C
  1774.                LOADZTC.BAT       <- Link Batch file - Zortech C
  1775.                BOSSDEMO.C        <- Source to BOSSDEMO
  1776.                BOSSDEMO.EXE      <- DEMO Program
  1777.                GENINDEX.C        <- Source to GENINDEX
  1778.                HELLO.C           <- The Classic...
  1779.                INTELC.HLP        <- Demo DATA file
  1780.                INTELC.NDX        <- Index for Demo DATA file
  1781.                REV.HST           <- Revision History
  1782.                REV.LEV           <- Revision Level
  1783.                SAMPLE.C          <- Data entry sample program
  1784.                WINDOWS.FN5       <- Type Checking INCLUDE file
  1785.                WINDOWS.FN6       <- Type Checking INCLUDE file 
  1786.                WINDOWS.FNZ       <- Type Checking INCLUDE file
  1787.                WINDOWS.FNT       <- Type Checking INCLUDE file
  1788.                WINDOWS.EXT       <- External Definition INCLUDE file
  1789.                WINDOWS.H         <- BOSS INCLUDE file
  1790.                WN_FRMGE.C        <- Data Entry form reader
  1791.                WN_GDATE.C        <- Data Entry function (dates)
  1792.                WN_GFLOA.C        <- Data Entry function (floats)
  1793.                WN_GPHON.C        <- Data Entry function (phone)
  1794.                WN_GTIME.C        <- Data Entry function (time)
  1795.                WN_GULON.C        <- Data Entry function (unsigned long)
  1796.                WN_GBOOL.C        <- Data Entry function (logical)
  1797.                WN_GDOUB.C        <- Data Entry function (double)
  1798.                WN_GINT.C         <- Data Entry function (integer)
  1799.                WN_GLONG.C        <- Data Entry function (long)
  1800.                WN_GPWOR.C        <- Data Entry function (password)
  1801.                WN_GTEXT.C        <- Data Entry function (various text)
  1802.                WN_GUINT.C        <- Data Entry function (unsigned int)
  1803.                WN_IEMSG.C        <- Data Entry error message handler
  1804.                WN_IHMSG.C        <- Data Entry help message hander
  1805.                WN_HELP.C         <- Help function source
  1806.                WN_POPUP.C        <- Popup function source
  1807.                WN_PUTS.C         <- Source to wn_puts()
  1808.  
  1809.              Contents of BOSS_LB1
  1810.  
  1811.                SMSC5.LIB         <- BOSS library - Microsoft C 5.X
  1812.                SMSC6.LIB         <- BOSS library - Microsoft C 6.X
  1813.  
  1814.              Contents of BOSS_LB2
  1815.  
  1816.                WATEC.LIB         <- BOSS library - EXPRESS C
  1817.                WATOC.LIB         <- BOSS library - Watcom C
  1818.                ZTECH.LIB         <- BOSS library - Zortech C
  1819.  
  1820.  
  1821.  
  1822.  
  1823.  
  1824.                                                            Page: 29
  1825.                                                      The Window BOSS
  1826.  
  1827.  
  1828.  
  1829.         The Shareware Distribution Diskette - continued.
  1830.  
  1831.  
  1832.              Contents of BOSS_LB3
  1833.  
  1834.                MWIN.MIX          <- BOSS library - Mix Power C
  1835.                SAZTEC.LIB        <- BOSS library - Aztec C
  1836.                SC86.LIB          <- BOSS library - CI86
  1837.  
  1838.              Contents of BOSS_LB4
  1839.  
  1840.                SDLC.LIB          <- BOSS library - Datalight
  1841.                SLAT3.LIB         <- BOSS library - Lattice C 3.4
  1842.                SLAT6.LIB         <- BOSS library - Lattice C 6.0
  1843.                STC.LIB           <- BOSS library - Turbo C
  1844.  
  1845.              Contents of BOSS_LB5
  1846.  
  1847.                SMSQC20.LIB       <- BOSS library - QuickC 2.0 
  1848.                SMSQC25.LIB       <- BOSS library - QuickC 2.5 
  1849.                TSC.LIB           <- BOSS library - TopSpeed C
  1850.  
  1851.  
  1852.  
  1853.  
  1854.  
  1855.  
  1856.  
  1857.  
  1858.  
  1859.  
  1860.  
  1861.  
  1862.  
  1863.  
  1864.  
  1865.  
  1866.  
  1867.  
  1868.  
  1869.  
  1870.  
  1871.  
  1872.  
  1873.  
  1874.  
  1875.  
  1876.  
  1877.  
  1878.  
  1879.  
  1880.  
  1881.  
  1882.  
  1883.  
  1884.  
  1885.                                                            Page: 30
  1886.                                                      The Window BOSS
  1887.  
  1888.  
  1889.  
  1890.         5.3. The SOURCE Distribution Diskette(s)
  1891.  
  1892.          The SOURCE diskette(s) contain the following files:
  1893.  
  1894.           DEMO / DOC Disk
  1895.  
  1896.              LHARC.DOC           <- Documentation for ARC.EXE
  1897.              LHARC.EXE           <- Archive utility
  1898.              DOC.LZH             <- Manual 
  1899.              DEMO.LZH            <- DEMO program & data files 
  1900.              READ.ME             <- Important notes
  1901.              REVHST.LZH          <- Revision History 
  1902.              REV.LEV             <- Revision Level 
  1903.              DISKS.LST           <- List of files on source disks
  1904.                   
  1905.           Disk 1
  1906.  
  1907.              CFILES.LZH          <- Source to all "C" modules
  1908.              WATCOM.LZH          <- Watcom Specific files
  1909.              DLC.LZH             <- Datalight Specific files
  1910.              ASMFILES.LZH        <- Source to all "Assembly" modules
  1911.              TSC.LZH             <- TopSpeed C Specific files
  1912.  
  1913.           Disk 2
  1914.  
  1915.              MS5.LZH             <- Microsoft C 5.X Specific files
  1916.              MSQC20.LZH          <- Microsoft Quick C 2.0 Specific files
  1917.              MSQC25.LZH          <- Microsoft Quick C 2.5 Specific files
  1918.              TCPP.LZH            <- Turbo C++ Specfic files
  1919.              MIX.LZH             <- Mix Power C Specific files
  1920.              ZTC.LZH             <- Zortech C Specific files
  1921.              C86.LZH             <- CI86 Specific files
  1922.              LC3.LZH             <- Lattice 3.4 Specific files
  1923.  
  1924.           Disk 3
  1925.  
  1926.              TC2.LZH             <- Turbo C Specific files
  1927.              LC6.LZH             <- Lattice 6.0 Specific files
  1928.              AZTEC.LZH           <- Aztec Specific files
  1929.              MS6.LZH             <- Microsoft C 6.X Specific files
  1930.  
  1931.  
  1932.  
  1933.  
  1934.  
  1935.  
  1936.  
  1937.  
  1938.  
  1939.  
  1940.  
  1941.  
  1942.  
  1943.  
  1944.  
  1945.  
  1946.                                                            Page: 31
  1947.                                                      The Window BOSS
  1948.  
  1949.  
  1950.  
  1951.         The SOURCE Distribution Diskette(s) - continued
  1952.  
  1953.  
  1954.  
  1955.              Contents of ASMFILES.LZH (ASM Source Files)
  1956.  
  1957.                AZVLIB.ASM        <- ASM routines for Aztec
  1958.                DLVLIB.ASM        <- ASM routines for Datalight
  1959.                MSVLIB.ASM        <- ASM routines for MSC, Borland, Watcom
  1960.                VLIB.ASM          <- ASM routines for Lattice & CI86
  1961.                PCVLIB.ASM        <- ASM routines for Mix Power C
  1962.                                     Microsoft MASM format
  1963.                WCVLIB.ASM        <- ASM routines for WATCOM C
  1964.                TCVLIB.ASM        <- ASM routines for Turbo C++
  1965.  
  1966.              Contents of AZTEC.LZH (Aztec Specific Files)
  1967.  
  1968.                CCC.BAT           <- Compact model compiler driver
  1969.                CCL.BAT           <- Large model compiler driver
  1970.                CCM.BAT           <- Medium model compiler driver
  1971.                CCS.BAT           <- Small model compiler driver
  1972.                CCOMPILE.BAT      <- Compact model - compile *.c
  1973.                LCOMPILE.BAT      <- Large model   - compile *.c
  1974.                MCOMPILE.BAT      <- Medium model  - compile *.c
  1975.                SCOMPILE.BAT      <- Small model   - compile *.c
  1976.                LOADAZ.BAT        <- Link driver for BOSSDEMO
  1977.                MAKELIB.BAT       <- Build LIB from O(s)
  1978.                MAKELIB.CMD       <- Data file for MAKELIB.BAT
  1979.                SWIN.LIB          <- Small model library
  1980.                LWIN.LIB          <- Large model library
  1981.                WINDOWS.FNS       <- Type checking header file
  1982.                ?AZVLIB.O         <- Memory model specific object files
  1983.  
  1984.              Contents of C86.LZH (Computer Innovations Specific Files)
  1985.  
  1986.                CC.BAT            <- Small model compiler driver 
  1987.                CCBIG.BAT         <- Large model compiler driver 
  1988.                EPILOGUE.H        <- ASM include file
  1989.                LCOMPILE.BAT      <- Large model - compile *.c
  1990.                LOADC86.BAT       <- Link driver for BOSSDEMO
  1991.                MAKELIB.BAT       <- Builds LIB file from OBJ(s)
  1992.                MODEL.H           <- ASM include file
  1993.                PROLOGUE.H        <- ASM include file
  1994.                SCOMPILE.BAT      <- Small model - compile *.c
  1995.                ?VLIB.OBJ         <- Memory model specific object files
  1996.  
  1997.                Libraries must be created locally for the CI86 compiler.
  1998.  
  1999.  
  2000.  
  2001.  
  2002.  
  2003.  
  2004.  
  2005.  
  2006.  
  2007.                                                            Page: 32
  2008.                                                      The Window BOSS
  2009.  
  2010.  
  2011.  
  2012.         The SOURCE Distribution Diskette - continued.
  2013.              
  2014.  
  2015.  
  2016.              Contents of CFILES.LZH (C Source Files)
  2017.  
  2018.                BOSSDEMO.C        <- BOSSDEMO Source
  2019.                DOSINT.C          <- AZTEC compatibility module.
  2020.                GENINDEX.C        <- GENINDEX Source
  2021.                HELLO.C           <- The classic...
  2022.                SCANCODE.C        <- Quickie to display KB scancodes
  2023.                SAMPLE.C          <- Data entry sample program
  2024.                WINDOWS.C         <- Globals 
  2025.                WINDOWS.H         <- Window BOSS INCLUDE file
  2026.                WINDOWS.EXT       <- Window BOSS INCLUDE file 
  2027.                WN_ACTIV.C        <- Window activation, memory mgmt ++
  2028.                WN_BIOS.C         <- BIOS video functions
  2029.                WN_BOXSE.C        <- Set box drawing character set
  2030.                WN_CLOSE.C        <- Window Close
  2031.                WN_CLR.C          <- Clear window
  2032.                WN_COLOR.C        <- Set window colors
  2033.                WN_DBORD.C        <- Draw window borders
  2034.                WN_DELRO.C        <- Delete row in window
  2035.                WN_DMA.C          <- Set video access mode
  2036.                WN_SCROL.C        <- Set window scrolling method
  2037.                WN_HELP.C         <- Help function source
  2038.                WN_POPUP.C        <- Popup menu source
  2039.                WN_INIT.C         <- Initialize window system
  2040.                WN_DMODE.C        <- Set window display mode
  2041.                WN_FIXCS.C        <- Fix physical cursor location
  2042.                WN_GETS.C         <- Get string with validation   
  2043.                WN_INSRO.C        <- Insert row in window
  2044.                WN_LOCAT.C        <- Locate cursor in window
  2045.                WN_MOVE.C         <- Move window
  2046.                WN_MOUSE.C        <- Mouse interface routines
  2047.                WN_NATRI.C        <- Set new attributes NOW
  2048.                WN_OPEN.C         <- Window open
  2049.                WN_PRINT.C        <- Window printf
  2050.                WN_PUTS.C         <- Put string in window
  2051.                WN_RESTO.C        <- Restore window image
  2052.                WN_SAVE.C         <- Save window image
  2053.                WN_STRING.C       <- String (char) functions
  2054.                WN_SUP.C          <- Internal support functions
  2055.                WN_SYNC.C         <- Set/Clear cursor sync
  2056.                WN_TITLE.C        <- Title window (BASIC)
  2057.                WM_STITLE.C       <- Title window (SUPER)
  2058.                WN_WRAP.C         <- Set/Clear text wrap
  2059.                WPRINTF.C         <- Alternate window printf
  2060.                WINDOWS.FN5       <- Prototype header
  2061.                WINDOWS.FN6       <- Prototype header
  2062.                WINDOWS.FNZ       <- Prototype header
  2063.                WINDOWS.FNT       <- Prototype header
  2064.  
  2065.  
  2066.  
  2067.  
  2068.                                                            Page: 33
  2069.                                                      The Window BOSS
  2070.  
  2071.  
  2072.  
  2073.         The SOURCE Distribution Diskette - continued.
  2074.              
  2075.  
  2076.  
  2077.              Contents of CFILES.LZH (C Source Files - continued.)
  2078.  
  2079.  
  2080.                WN_GDATE.C        <- Data entry - get date
  2081.                WN_GDOUBLE.C      <- Data entry - get double
  2082.                WN_GTIME.C        <- Data entry - get time
  2083.                WN_GTEXT.C        <- Data entry - get text
  2084.                WN_GPHONE.C       <- Data entry - get phone #
  2085.                WN_GPWORD.C       <- Data entry - get password
  2086.                WN_GINT.C         <- Data entry - get integer
  2087.                WN_GUINT.C        <- Data entry - get unsigned integer
  2088.                WN_GULONG.C       <- Data entry - get unsigned long
  2089.                WN_GLONG.C        <- Data entry - get long
  2090.                WN_GFLOAT.C       <- Data entry - get float 
  2091.                WN_GBOOL.C        <- Data entry - get logical  
  2092.                WN_DTEXT.C        <- Data entry - display text
  2093.                WN_FRMOPN.C       <- Data entry - FORM open
  2094.                WN_FRMGET.C       <- Data entry - FORM read
  2095.                WN_FRMCLS.C       <- Data entry - FORM close
  2096.                WN_INPUT.C        <- Data entry - common input 
  2097.                WN_IEMSG.C        <- Data entry - error msg handler
  2098.                WN_IHMSG.C        <- Data entry - help msg handler
  2099.            
  2100.  
  2101.  
  2102.  
  2103.  
  2104.  
  2105.  
  2106.  
  2107.  
  2108.  
  2109.  
  2110.  
  2111.  
  2112.  
  2113.  
  2114.  
  2115.  
  2116.  
  2117.  
  2118.  
  2119.  
  2120.  
  2121.  
  2122.  
  2123.  
  2124.  
  2125.  
  2126.  
  2127.  
  2128.  
  2129.                                                            Page: 34
  2130.                                                      The Window BOSS
  2131.  
  2132.  
  2133.  
  2134.         The SOURCE Distribution Diskette - continued.
  2135.              
  2136.  
  2137.  
  2138.              Contents of MIX.LZH (Mix Power C Specific Files)
  2139.  
  2140.                ASSEMBLE.BAT      <- Assembler driver
  2141.                LOADL.BAT         <- Sample link driver - large model
  2142.                LOADM.BAT         <- Sample link driver - medium model
  2143.                LOADS.BAT         <- Sample link driver - small model
  2144.                MAKELIB.BAT       <- Library driver (all models)
  2145.                PCCL.BAT          <- Large model compiler driver
  2146.                PCCM.BAT          <- Medium model compiler driver
  2147.                PCCS.BAT          <- Small model compiler driver
  2148.                SCOMPILE.BAT      <- Small model - compile *.c
  2149.                MCOMPILE.BAT      <- Medium model - compile *.c
  2150.                LCOMPILE.BAT      <- Large model - compile *.c
  2151.                MAKELIB.CMD       <- Data file for MAKELIB.BAT
  2152.                WINDOWS.FNS       <- Type checking head
  2153.                ?PCVLIB.MIX       <- Memory model specific object file
  2154.                LWIN.MIX          <- Large model library
  2155.                SWIN.MIX          <- Small model library
  2156.                BOSSDEMO.PRJ      <- Project file for BOSSDEMO program
  2157.  
  2158.              Contents of LC3.LZH & LC6.LZH (Lattice C Specific Files)
  2159.  
  2160.                LCOMPILE.BAT      <- Large model - compile *.c
  2161.                SCOMPILE.BAT      <- Small model - compile *.c
  2162.                PCOMPILE.BAT      <- P model - compile *.c
  2163.                DCOMPILE.BAT      <- D model - compile *.c
  2164.                HCOMPILE.BAT      <- Huge model - compile.c
  2165.                LCS.BAT           <- Small model compiler driver
  2166.                LCL.BAT           <- Large model compiler driver
  2167.                LCP.BAT           <- P model compiler driver
  2168.                LCD.BAT           <- D model compiler driver
  2169.                LOADLC.BAT        <- Link driver for BOSSDEMO
  2170.                LWIN.LIB *        <- Large model library
  2171.                SWIN.LIB *        <- Small model library
  2172.                MAKELIB.BAT       <- Build LIB file from OBJ(s)
  2173.                MAKELIB.CMD       <- Data file for MAKELIB.BAT
  2174.                WINDOWS.FNS       <- Type checking header
  2175.                ?VLIB.OBJ         <- Memory model specific object file
  2176.  
  2177.                * Not present in the LC3.LZH archive. The libraries for 
  2178.                the Lattice 3.41 compiler will have to be created locally.  
  2179.                See "Library Rebuilding" for instructions on how to 
  2180.                accomplish this.
  2181.  
  2182.  
  2183.  
  2184.  
  2185.  
  2186.  
  2187.  
  2188.  
  2189.  
  2190.                                                            Page: 35
  2191.                                                      The Window BOSS
  2192.  
  2193.  
  2194.  
  2195.         The SOURCE Distribution Diskette - continued.
  2196.  
  2197.  
  2198.  
  2199.              Contents of DLC.LZH (Datalight Specific)
  2200.  
  2201.                CCS.BAT           <- Small model compiler driver
  2202.                CCL.BAT           <- Large model compiler driver
  2203.                CCD.BAT           <- D model compiler driver
  2204.                CCP.BAT           <- P model compiler driver
  2205.                LCOMPILE.BAT      <- Large model - compile *.c
  2206.                SCOMPILE.BAT      <- Small model - compile *.c
  2207.                DCOMPILE.BAT      <- D model - compile *.c
  2208.                PCOMPILE.BAT      <- P model - compile *.c
  2209.                LOADDLC.BAT       <- Link driver for BOSSDEMO
  2210.                MAKELIB.BAT       <- Build LIB from OBJ(s)
  2211.                MAKELIB.CMD       <- Data file for MAKELIB.BAT
  2212.                WINDOWS.FNS       <- Type checking header
  2213.                ?DLVLIB.OBJ       <- Memory model specific object file
  2214.  
  2215.                The libraries for the Datalight compiler will have to be 
  2216.                created locally.  See "Library Rebuilding" for 
  2217.                instructions on how to accomplish this.
  2218.  
  2219.              Contents of TC2.LZH and TCPP.LZH (Borland Compilers)
  2220.  
  2221.                BOSSDEMO.PRJ      <- TC Project file for BOSSDEMO
  2222.                SAMPLE.PRJ        <- TC Project file for SAMPLE
  2223.                HELLO.PRJ         <- TC Project file for HELLO
  2224.                LCOMPILE.BAT      <- TCC - Large model - compile *.c 
  2225.                SCOMPILE.BAT      <- TCC - Small model - compile *.c
  2226.                CCOMPILE.BAT      <- TCC - Compact model - compile *.c
  2227.                MCOMPILE.BAT      <- TCC - Medium model - compile *.c
  2228.                HCOMPILE.BAT      <- TCC - Huge model - compile *.c
  2229.                LOADTC.BAT        <- Tlink driver for BOSSDEMO
  2230.                LWIN.LIB          <- Large model library
  2231.                MAKELIB.BAT       <- Build LIB from OBJ(s)
  2232.                MAKELIB.CMD       <- Data file for MAKELIB.BAT
  2233.                SWIN.LIB          <- Small model library
  2234.                TCCL.BAT          <- Large model TCC compiler driver
  2235.                TCCS.BAT          <- Small model TCC compiler driver
  2236.                TCCM.BAT          <- Medium model TCC compiler driver
  2237.                TCCC.BAT          <- Compact model TCC compiler driver
  2238.                TCCH.BAT          <- Huge model TCC compiler driver
  2239.                WINDOWS.FNS       <- Type checking header
  2240.                ?MSVLIB.OBJ       <- Memory model specific object file
  2241.                ?TCVLIB.OBJ       <- Memory model specific object file 
  2242.  
  2243.  
  2244.  
  2245.  
  2246.  
  2247.  
  2248.  
  2249.  
  2250.  
  2251.                                                            Page: 36
  2252.                                                      The Window BOSS
  2253.  
  2254.  
  2255.  
  2256.         The SOURCE Distribution Diskette - continued.
  2257.              
  2258.  
  2259.  
  2260.              Contents of MS5.LZH & MS6.LZH (Microsoft C Specific Files)
  2261.  
  2262.                LCOMPILE.BAT      <- Large model - compile *.c
  2263.                SCOMPILE.BAT      <- Small model - compile *.c
  2264.                MCOMPILE.BAT      <- Medium model - compile *.c
  2265.                CCOMPILE.BAT      <- Compact model - compile *.c
  2266.                HCOMPILE.BAT      <- Huge model - compile *.c
  2267.                MCCL.BAT          <- Large model compiler driver
  2268.                MCCS.BAT          <- Small model compiler driver
  2269.                MCCM.BAT          <- Medium model compiler driver
  2270.                MCCC.BAT          <- Compact model compiler driver
  2271.                MCCH.BAT          <- Huge mode compiler driver
  2272.                LOADMS.BAT        <- Link driver for BOSSDEMO
  2273.                LWIN.LIB **       <- Large model library
  2274.                SWIN.LIB **       <- Small model library
  2275.                MAKELIB.BAT       <- Build LIB from OBJ(s)
  2276.                MAKELIB.CMD       <- Data file for MAKELIB.BAT
  2277.                *.MAK (6.0 Only)  <- MAKE files - BOSSDEMO, HELLO, SAMPLE
  2278.                WINDOWS.FNS       <- Type checking header
  2279.                ?MSVLIB.OBJ       <- Memory model specific object file
  2280.  
  2281.                ** Not present in the MS5.LZH archive. The libraries for 
  2282.                the Microsoft 5.X compiler will have to be created 
  2283.                locally. See "Library Rebuilding" for instructions on how 
  2284.                to accomplish this.
  2285.  
  2286.  
  2287.  
  2288.  
  2289.  
  2290.  
  2291.  
  2292.  
  2293.  
  2294.  
  2295.  
  2296.  
  2297.  
  2298.  
  2299.  
  2300.  
  2301.  
  2302.  
  2303.  
  2304.  
  2305.  
  2306.  
  2307.  
  2308.  
  2309.  
  2310.  
  2311.  
  2312.                                                            Page: 37
  2313.                                                      The Window BOSS
  2314.  
  2315.  
  2316.  
  2317.         The SOURCE Distribution Diskette - continued.
  2318.              
  2319.  
  2320.  
  2321.  
  2322.              Contents of MSQC20.LZH & MSQC25.LZH 
  2323.              (Microsoft Quick C Specific Files)
  2324.  
  2325.                SCOMPILE.BAT      <- Small model - compile *.c
  2326.                LCOMPILE.BAT      <- Large model - compile *.c
  2327.                MCOMPILE.BAT      <- Medium model - compile *.c
  2328.                CCOMPILE.BAT      <- Compact model - compile *.c
  2329.                HCOMPILE.BAT      <- Huge model - compile *.c
  2330.                MCCL.BAT          <- Large model compiler driver
  2331.                MCCS.BAT          <- Small model compiler driver
  2332.                MCCM.BAT          <- Medium model compiler driver
  2333.                MCCC.BAT          <- Compact model compiler driver
  2334.                MCCH.BAT          <- Huge model compiler driver
  2335.                LOADMS.BAT        <- Link driver for BOSSDEMO
  2336.                LWIN.LIB **       <- Large model library
  2337.                SWIN.LIB **       <- Small model library
  2338.                MAKELIB.BAT       <- Build LIB from OBJ(s)
  2339.                MAKELIB.CMD       <- Data file for MAKELIB.BAT
  2340.                *.MAK             <- MAKE files - BOSSDEMO, HELLO, SAMPLE
  2341.                WINDOWS.FNS       <- Type checking header
  2342.                ?MSVLIB.OBJ       <- Memory model specific object file
  2343.  
  2344.                ** Not present in the MSQC20.LZH archive.  The libraries 
  2345.                for the Microsoft QuickC 2.0 compiler will have to be 
  2346.                created locally.  See "Library Rebuilding" for 
  2347.                instructions on how to accomplish this.
  2348.  
  2349.  
  2350.  
  2351.  
  2352.  
  2353.  
  2354.  
  2355.  
  2356.  
  2357.  
  2358.  
  2359.  
  2360.  
  2361.  
  2362.  
  2363.  
  2364.  
  2365.  
  2366.  
  2367.  
  2368.  
  2369.  
  2370.  
  2371.  
  2372.  
  2373.                                                            Page: 38
  2374.                                                      The Window BOSS
  2375.  
  2376.  
  2377.  
  2378.         The SOURCE Distribution Diskette - continued.
  2379.              
  2380.  
  2381.  
  2382.  
  2383.              Contents of ZTC.LZH (Zortech C Specific Files)
  2384.  
  2385.                CCOMPILE.BAT      <- Compact model - compile *.c
  2386.                LCOMPILE.BAT      <- Large model   - compile *.c
  2387.                HCOMPILE.BAT      <- Huge model    - compile *.c
  2388.                MCOMPILE.BAT      <- Medium model  - compile *.c
  2389.                SCOMPILE.BAT      <- Small model   - compile *.c
  2390.                LOADZTC.BAT       <- Link driver for BOSSDEMO
  2391.                LWIN.LIB          <- Larger model library
  2392.                MAKELIB.BAT       <- Build LIB file from OBJ(s)
  2393.                MAKELIB.CMD       <- Data file for makelib.bat
  2394.                SWIN.LIB          <- Small model library
  2395.                WINDOWS.FNS       <- Type checking header file
  2396.                ZTCC.BAT          <- Compact model compiler driver
  2397.                ZTCCB.BAT         <- Compact model big compiler driver
  2398.                ZTCL.BAT          <- Large model compiler driver
  2399.                ZTCLB.BAT         <- Large model big compiler driver
  2400.                ZTCM.BAT          <- Medium model compiler driver
  2401.                ZTCMB.BAT         <- Medium model big compiler driver
  2402.                ZTCS.BAT          <- Small model compiler driver
  2403.                ZTCSB.BAT         <- Small model big compiler driver
  2404.                ZTCH.BAT          <- Huge model compiler driver
  2405.                ZTCHB.BAT         <- Huge model big compiler driver
  2406.                ?MSVLIB.OBJ       <- Memory model specific object files
  2407.  
  2408.              Contents of WATCOM.LZH (Watcom Specific Files)
  2409.  
  2410.                WCCS.BAT          <- Small model compiler driver
  2411.                WCCL.BAT          <- Large model compiler driver
  2412.                WCCM.BAT          <- Medium model compiler driver
  2413.                WCCC.BAT          <- Compact model compiler driver
  2414.                WCCH.BAT          <- Huge model compiler driver
  2415.                XCC.BAT           <- EXPRESS C compiler driver
  2416.                CCOMPILE.BAT      <- Compact model - compile *.c
  2417.                LCOMPILE.BAT      <- Large model   - compile *.c
  2418.                MCOMPILE.BAT      <- Medium model  - compile *.c
  2419.                SCOMPILE.BAT      <- Small model   - compile *.c
  2420.                HCOMPILE.BAT      <- Huge model    - compile *.c
  2421.                LOADWAT.BAT       <- Link driver for BOSSDEMO
  2422.                LOADWEC.BAT       <- Link driver for BOSSDEMO (EXPRESS C)
  2423.                MAKELIB.BAT       <- Build LIB from OBJ(s)
  2424.                MAKELIB.CMD       <- Data file for MAKELIB.BAT
  2425.                SWIN.LIB          <- Small model library
  2426.                LWIN.LIB          <- Large model library
  2427.                XMWIN.LIB         <- EXPRESS C library
  2428.                WINDOWS.FNS       <- Type checking header
  2429.                ?WCVLIB.OBJ       <- Memory model specific object files
  2430.  
  2431.  
  2432.  
  2433.  
  2434.                                                            Page: 39
  2435.                                                      The Window BOSS
  2436.  
  2437.  
  2438.  
  2439.         The SOURCE Distribution Diskette - continued.
  2440.              
  2441.  
  2442.  
  2443.  
  2444.              Contents of TSC.LZH (TopSpeed C Specific Files)
  2445.  
  2446.                BOSSDEMO.PRJ      <- MAKE file for BOSSDEMO
  2447.                CMSVLIB.OBJ       <- Medium model specific object file
  2448.                CWIN.PRJ          <- Compact model - make file component
  2449.                GENFNS.BAT        <- Batch file to create "windows.fns"
  2450.                HELLO.PRJ         <- MAKE file for HELLO
  2451.                LMSVLIB.OBJ       <- Large model specific object file
  2452.                LWIN.LIB          <- Large model library 
  2453.                LWIN.PRJ          <- Large model - make file component
  2454.                MAKECWIN.PRJ      <- MAKE file for Compact model library
  2455.                MAKELIB.BAT       <- Library generation control file
  2456.                MAKELWIN.PRJ      <- MAKE file for Large model library
  2457.                MAKEMTWI.PRJ      <- MAKE file for Mthread model library
  2458.                MAKEMWIN.PRJ      <- MAKE file for Medium model library
  2459.                MAKESWIN.PRJ      <- MAKE file for Small model library
  2460.                MAKEXWIN.PRJ      <- MAKE file for Xlarge model library
  2461.                MMSVLIB.OBJ       <- Medium model specific object file
  2462.                MTMSVLIB.OBJ      <- Mthread model specific object file
  2463.                MTWIN.PRJ         <- MAKE file for Mthread model library
  2464.                MWIN.PRJ          <- Medium model - make file component
  2465.                SAMPLE.PRJ        <- MAKE file for SAMPLE
  2466.                SMSVLIB.OBJ       <- Small model specific object file
  2467.                SWIN.LIB          <- Small model library
  2468.                SWIN.PRJ          <- Small model - make file component
  2469.                TSAPP.PRJ         <- Generic Make file
  2470.                WINDOWS.FNS       <- Type checking header
  2471.                XMSVLIB.OBJ       <- Xlarge model specific object file
  2472.                XWIN.PRJ          <- Xlarge model - make file component
  2473.                TSS.BAT           <- Compiler driver batch file
  2474.  
  2475.  
  2476.  
  2477.  
  2478.  
  2479.  
  2480.  
  2481.  
  2482.  
  2483.  
  2484.  
  2485.  
  2486.  
  2487.  
  2488.  
  2489.  
  2490.  
  2491.  
  2492.  
  2493.  
  2494.  
  2495.                                                            Page: 40
  2496.                                                      The Window BOSS
  2497.  
  2498.  
  2499.  
  2500.         6. Installation, Compiling, Linking 
  2501.  
  2502.         6.1. Installation
  2503.  
  2504.              By the numbers:
  2505.  
  2506.                 1) MAKE A BACKUP OF ALL DISKS !!!
  2507.  
  2508.                 2) Shareware diskettes - Use LHARC to unarchive the 
  2509.                    various LZH files.  You will need 2100+k of free disk 
  2510.                    space for all of the files!  Alternatively, you can 
  2511.                    extract only those files you need for use with a 
  2512.                    specific compiler. Simply use LHARC to extract all the 
  2513.                    files from BOSS_SUP.LZH then the library(s) you need
  2514.                    from BOSS_LB?.LZH, for example:
  2515.  
  2516.                           B>A:LHARC E A:BOSS_SUP
  2517.                           B>A:LHARC E A:BOSS_LB1 SMSC5.LIB
  2518.  
  2519.                 2) Source Code diskettes - Use LHARC to unarchive 
  2520.                    CFILES.LZH and ASMFILES.LZH. Then, depending upon the 
  2521.                    compiler you intend to use, unarchive only ONE of the 
  2522.                    following: LC3.LZH, LC6.LZH, MS5.LZH, MS6.LZH, 
  2523.                    MSQC20.LZH, MSQC25.LZH, DLC.LZH, C86.LZH, TC2.LZH, 
  2524.                    TCPP.LZH, MIX.LZH, WATCOM.LZH, ZTC.LZH, TSC.LZH, or 
  2525.                    AZTEC.LZH. If you plan on unarchiving all of the 
  2526.                    compiler specific LZH files you will need 
  2527.                    approximately 2 to 3 megabytes of free disk space!
  2528.  
  2529.                 3) Copy the LIBrary that corresponds to the compiler you 
  2530.                    are using onto the disk(s) and/or sub-directories that 
  2531.                    contain your "C" compiler's run time libraries . Be 
  2532.                    sure that the small model library is named "SWIN.LIB" 
  2533.                    (see notes below). The large model library should be 
  2534.                    named "LWIN.LIB". The Mix Power C library is MWIN.MIX.  
  2535.                    The EXPRESS C library is XMWIN.LIB.  
  2536.  
  2537.                    ** Shareware Users Note ** - The examples used in the 
  2538.                    documentation assume the library's name to be SWIN.LIB 
  2539.                    (small memory model). You should rename the 
  2540.                    library you extracted to conform to this naming 
  2541.                    convention to eliminate any possible confusion.  For 
  2542.                    example:
  2543.  
  2544.                             B:>RENAME SMSC5.LIB SWIN.LIB
  2545.  
  2546.                    ** Shareware Users Note ** - Large model libraries are 
  2547.                    not provided as part of the shareware disk set.
  2548.  
  2549.  
  2550.  
  2551.  
  2552.  
  2553.  
  2554.  
  2555.  
  2556.                                                            Page: 41
  2557.                                                      The Window BOSS
  2558.  
  2559.  
  2560.  
  2561.         Installation - continued.
  2562.  
  2563.  
  2564.  
  2565.                 4) Copy (or rename) the small memory model compiler 
  2566.                    driver batch file that corresponds to the compiler you 
  2567.                    are using to:
  2568.  
  2569.                                      CSM.BAT
  2570.  
  2571.                 5) If WINDOWS.FNS is not contained in the archive for 
  2572.                    your compiler, or is not present after you unarchive 
  2573.                    the required files, copy (or rename) WINDOWS.FN5, 
  2574.                    WINDOWS.FN6, WINDOWS.FNZ, WINDOWS.FNT to 
  2575.                    WINDOWS.FNS according to the following table:
  2576.  
  2577.                        Compiler            File
  2578.                        ---------           -----
  2579.                        LC3 & LC6           WINDOWS.FN5
  2580.                        Power C             WINDOWS.FN5
  2581.                        WATCOM, EXPRESS C   WINDOWS.FN5
  2582.                        MSC5, Quick C 2.0   WINDOWS.FN5
  2583.                        MSC6, Quick C 2.5   WINDOWS.FN6
  2584.                        Turbo C             WINDOWS.FN5
  2585.                        TopSpeed C          WINDOWS.FNT
  2586.  
  2587.                        CI86                -- None --
  2588.  
  2589.                        Aztec               WINDOWS.FNZ
  2590.                        Datalight           WINDOWS.FNZ
  2591.                        Zortech             WINDOWS.FNZ
  2592.  
  2593.                 6) Read the "Compiling", "Linking", and "General Notes" 
  2594.                    sections of this manual.  The "General Notes" section 
  2595.                    has across the board information that everyone should 
  2596.                    review and compiler specific tips that are very 
  2597.                    important.
  2598.  
  2599.                 7) Suggestion - After installing The Window BOSS, build 
  2600.                    the HELLO program using either the command line 
  2601.                    compiler or your integrated environment.  If you have 
  2602.                    any difficulty, review both the "Hints on Resolving 
  2603.                    Common Problems" and "General Notes" section of this 
  2604.                    manual.  Pay special attention to the notes on your 
  2605.                    specific compiler.
  2606.  
  2607.                 8) Remember there is no magic to using The Window BOSS. 
  2608.                    It's simple!!
  2609.  
  2610.  
  2611.  
  2612.  
  2613.  
  2614.  
  2615.  
  2616.  
  2617.                                                            Page: 42
  2618.                                                      The Window BOSS
  2619.  
  2620.  
  2621.  
  2622.         Installation/Compiling/Linking - continued.
  2623.  
  2624.  
  2625.  
  2626.         6.2. Compiling (Command line)
  2627.  
  2628.              Compile your application source code in the following 
  2629.              manner:
  2630.  
  2631.                                   C>csm hello
  2632.  
  2633.              Notes:
  2634.  
  2635.                ** ALL compilers should be invoked with the compiler 
  2636.                driver batch files supplied with The Window BOSS.  Some 
  2637.                compilers require ".c" to be added to the name of the 
  2638.                source file e.g. "csm hello.c".  The examples in this 
  2639.                manual assume you are creating small memory model 
  2640.                programs.
  2641.  
  2642.                The Window BOSS includes "windows.h", "windows.fns", and 
  2643.                "windows.ext".  These files can be placed with your 
  2644.                compiler's other INCLUDE files or they can remain in the 
  2645.                same directory as your "C" programs.  Depending upon your 
  2646.                installation, you may have to edit HELLO.C and/or 
  2647.                WINDOWS.H to follow the "" .vs. <> include file 
  2648.                convention.  All of BOSS's includes are of the form:
  2649.  
  2650.                              #include "include_file_name"
  2651.  
  2652.                If you examine CSM.BAT you will notice some command line 
  2653.                parameters that are passed to your compiler.  These 
  2654.                command line parameters are an absolute requirement and 
  2655.                must always be present.  They are used by "windows.h" to 
  2656.                set various conditions required by your specific compiler.
  2657.  
  2658.  
  2659.  
  2660.  
  2661.  
  2662.  
  2663.  
  2664.  
  2665.  
  2666.  
  2667.  
  2668.  
  2669.  
  2670.  
  2671.  
  2672.  
  2673.  
  2674.  
  2675.  
  2676.  
  2677.  
  2678.                                                            Page: 43
  2679.                                                      The Window BOSS
  2680.  
  2681.  
  2682.  
  2683.         Installation/Compiling/Linking - continued.
  2684.  
  2685.  
  2686.  
  2687.         6.3. Linking (Command line)
  2688.  
  2689.              Simply specify the ?WIN.LIB file that corresponds to the 
  2690.              compiler/memory model you are using.  Don't forget to 
  2691.              include your compiler's runtime library as well. The 
  2692.              following examples demonstrate basic linking using the small 
  2693.              model library (medium for MIX Power C):
  2694.  
  2695.                 Lattice 
  2696.                   link c+hello,hello,,swin+lcm+lc+lapi+lcr  <- 3.41
  2697.                   lmb hello,hello,,swin+lcr;                <- 6.XX
  2698.  
  2699.                 Computer Innovations
  2700.                   link hello,hello,,swin+c86s2s
  2701.  
  2702.                 Datalight
  2703.                   link c+hello,hello,hello,swin+nl
  2704.  
  2705.                 Microsoft C
  2706.                   link hello,hello,,swin                    <- 5.X
  2707.                   link hello,hello,,swin;                   <- 6.X
  2708.  
  2709.                 Microsoft QuickC
  2710.                   link hello,hello,,swin                    <- 2.0
  2711.                   qlink hello,hello,,swin                   <- 2.5
  2712.                 
  2713.                 Borland
  2714.                   tlink /c c0s hello,hello,hello,swin emu maths cs
  2715.  
  2716.                 Mix Power C                          <- Medium
  2717.                   pcl hello;mwin [5k,40k,0]
  2718.  
  2719.                 Aztec
  2720.                   ln hello swin.lib m.lib c.lib
  2721.  
  2722.                 Watcom
  2723.                   wlink file hello library swin,maths,clibs
  2724.  
  2725.                 EXPRESS C
  2726.                   wlink file hello library xmwin,wcexpl
  2727.  
  2728.                 ZORTECH
  2729.                   blink hello,hello,,swin
  2730.  
  2731.                 TOPSPEED
  2732.                       
  2733.                   ts hello /m
  2734.  
  2735.                      ** Read the "TopSpeed" section of "General Notes"
  2736.  
  2737.  
  2738.  
  2739.                                                            Page: 44
  2740.                                                      The Window BOSS
  2741.  
  2742.  
  2743.  
  2744.         Installation/Compiling/Linking - continued.
  2745.  
  2746.  
  2747.  
  2748.         Linking Notes:
  2749.  
  2750.         The linking examples may have to be modified to include the 
  2751.         complete path specifiers for each library.  For example:
  2752.  
  2753.                        link hello,hello,,c:\msc5\lib\swin
  2754.  
  2755.         Fixup offset errors are always the result attempting of to link 
  2756.         code compiled under one memory model with libraries created for 
  2757.         use with another memory model.
  2758.  
  2759.         Unresolved externals can be caused by missing user functions, 
  2760.         missing library functions, linking command errors, missing 
  2761.         project files, missing MAKE files, or attempting to link a non 
  2762.         conforming library. Misplaced commas on the command line and C 
  2763.         code typing errors are the most common problems.  In the case of 
  2764.         integrated environment fans (Quick C, MSC 6.0 PWB, Turbo C) it is 
  2765.         almost always due to forgetting to SET THE PROGRAM LIST to 
  2766.         include The Window BOSS library or, in the case of Turbo C, 
  2767.         forgetting to create a project file that includes an entry for 
  2768.         The Window BOSS library.
  2769.  
  2770.  
  2771.  
  2772.  
  2773.  
  2774.  
  2775.  
  2776.  
  2777.  
  2778.  
  2779.  
  2780.  
  2781.  
  2782.  
  2783.  
  2784.  
  2785.  
  2786.  
  2787.  
  2788.  
  2789.  
  2790.  
  2791.  
  2792.  
  2793.  
  2794.  
  2795.  
  2796.  
  2797.  
  2798.  
  2799.  
  2800.                                                            Page: 45
  2801.                                                      The Window BOSS
  2802.  
  2803.  
  2804.  
  2805.         7. General and Compiler Specific Notes
  2806.  
  2807.         Source code is provided for all of the high level data entry 
  2808.         functions, the help system, and the popup menu functions.  This 
  2809.         is done so that you (1) have a wide variety of templates to base 
  2810.         any local data entry functions on and (2) have the source to the 
  2811.         code to those functions (help & popup) which are commonly changed 
  2812.         to suit individual taste.
  2813.  
  2814.         WN_BIOS.C and the various assembler files (*.ASM) contain all of 
  2815.         the BIOS interface functions.  Only v_kstat(), v_border(), 
  2816.         _vidblt(), and xferdata() are written in assembly language!!  
  2817.  
  2818.         This one is REAL important - Both the C and assembly functions 
  2819.         make very heavy use of pointers.  The code contains numerous 
  2820.         checks to ensure that memory, outside of that in use by the 
  2821.         program, is not corrupted.  If you attempt to do something that 
  2822.         would cause memory to be corrupted an error message will appear 
  2823.         and your program will exit.  This message will usually say that a 
  2824.         bad handle was passed to some function.  This error is normally 
  2825.         caused by a stray pointer in the application code!  Check all 
  2826.         your pointer operations.  Doing strcpy's to arrays with 
  2827.         insufficient space will always cause this type of problem.
  2828.  
  2829.         Generally speaking, the members of the window control block 
  2830.         (refer to windows.h) should not be modified unless you are 
  2831.         familiar with how they are used by the various functions.  We 
  2832.         suggest you obtain a hard copy of "windows.h" and review it even 
  2833.         if you don't have any intentions of modifying the code.  There is 
  2834.         a great deal of information contained in "windows.h" that you may 
  2835.         find helpful when writing your application.
  2836.  
  2837.         Although the routines appear to support the multi page 
  2838.         capabilities of the IBM Color Card, actual support of this 
  2839.         feature has not been implemented.  Invoking the functions with 
  2840.         references to video pages other than than those documented might 
  2841.         produce interesting, but undesired results.  
  2842.  
  2843.         Programs such as Wordstar and Lotus change the video mode when 
  2844.         they run.  If your system is equipped with a color monitor and 
  2845.         your windows are appearing in black and white, issue a call to 
  2846.         v_smode to set the video mode to 3.  Alternatively, you can use 
  2847.         the "MODE CO80" command at DOS level before you run your 
  2848.         application.  
  2849.  
  2850.         The best way to manipulate the method by which windows are 
  2851.         updated is via the wn_dmode() function.  Calling wn_dmode(PAINT) 
  2852.         causes the image to be painted while wn_dmode(FLASH) causes the 
  2853.         image to be flash updated.  Flash updating is the preferred 
  2854.         (default) method.  Please keep in mind that windows are always 
  2855.         flash updated on monochrome systems. 
  2856.  
  2857.  
  2858.  
  2859.  
  2860.  
  2861.                                                            Page: 46
  2862.                                                      The Window BOSS
  2863.  
  2864.  
  2865.  
  2866.         7.1. Upgrading - Existing Applications Impact
  2867.  
  2868.         If you are upgrading from a previous version of The Window BOSS 
  2869.         be sure to re-compile and re-link your application.  This will 
  2870.         eliminate the possibility of any "unusual" problems.
  2871.  
  2872.         7.2. Current Compilers & Libraries
  2873.  
  2874.         The distribution libraries were created on an IBMPC/AT under DOS 
  2875.         3.3 using Lattice 3.41, Lattice 6.02, Microsoft 5.1, Microsoft 
  2876.         6.0, Microsoft QuickC 2.0, Microsoft QuickC 2.5, Borland Turbo C 
  2877.         2.0, Borland Turbo C++ 1.0, Datalight 3.10, Aztec 4.2b-1, Watcom 
  2878.         C 8.0, Mix Power C 2.0, Zortech 2.10, TopSpeed 1.06, and Computer 
  2879.         Innovations CI86 2.30A.  Marion was used to create the LIB files 
  2880.         for CI86.  Microsoft's LIB was used for the Microsoft variants, 
  2881.         Datalight and Zortech. Lattice, Aztec, Watcom  and the Mix Power 
  2882.         C libraries were created with the library managers shipped with 
  2883.         their respective compilers.  Test hardware: IBMPC/XT/AT, PS/2, 
  2884.         with IBM Monochrome, CGA, EGA, and VGA video adapters.  
  2885.         Additionally, a wide variety of clones (8088, 8086, 80186, 80286, 
  2886.         80386) with brand name and noname components were also tested.
  2887.  
  2888.         Several of the compilers support a compile time command line 
  2889.         parameter that results in structures being byte aligned instead 
  2890.         of word aligned.  In all cases, the compiler default option was 
  2891.         used to compile the modules in the various libraries.
  2892.  
  2893.         7.3. EGA & VGA Expanded Line & Column Modes
  2894.  
  2895.         The Window BOSS supports the Expanded Line and Column modes of 
  2896.         both the EGA and VGA video adapters.  However, in order to 
  2897.         preserve The Window BOSS's device independence you will have to 
  2898.         do a little extra work if you intend to write an application that 
  2899.         is going to take advantage of one of these expanded modes.  The 
  2900.         rules are quite simple.  Your application must remain in one 
  2901.         mode.  It can be (25 x 80), (80 x 132), (80 x 43), (80 x 50), or 
  2902.         whatever size your adapter supports.  The adapter must be in the 
  2903.         mode you chose prior to calling ANY of The Window BOSS functions.  
  2904.         WN_PSINIT() must be called first, called only once, and be called 
  2905.         with parameters that reflect the physical screen size that your 
  2906.         application is going to use.  That's all there is to it!  
  2907.  
  2908.         7.4. Terminate and Stay Resident (TSR) Programming
  2909.  
  2910.         The Window BOSS has been successfully incorporated in TSR 
  2911.         programs. Due to the complexities involved in writing and 
  2912.         resolving conflicts associated with TSR(s) and the lack of any 
  2913.         real standards for TSR(s) Star Guidance Consulting, Inc. can not 
  2914.         provide any form of support or assistance for TSR related 
  2915.         problems.  We will, however, work with you in resolving any 
  2916.         problem you can replicate when the program is not resident.
  2917.  
  2918.  
  2919.  
  2920.  
  2921.  
  2922.                                                            Page: 47
  2923.                                                      The Window BOSS
  2924.  
  2925.  
  2926.  
  2927.         General Notes - continued.
  2928.  
  2929.  
  2930.         7.5. Important Globals
  2931.  
  2932.         Several global symbols are used by the various functions. All are 
  2933.         defined in "windows.c" and referenced in "windows.ext".  A few 
  2934.         are worthy of special mention:
  2935.  
  2936.                                  int wn_dmaflg;
  2937.                                  int wn_sbit;
  2938.                                  int wns_escape;
  2939.  
  2940.         7.5.1. wns_dmaflg
  2941.  
  2942.              wn_dmaflg when TRUE enables direct writes into video ram. 
  2943.              This is the default setting and should work in all cases.  
  2944.              Setting wn_dmaflg to FALSE will disable these direct writes. 
  2945.              When wn_dmaflg is FALSE the BIOS video routines are used. 
  2946.              This results in slower screen updates.  However, this method 
  2947.              does have the advantage of being considered "well behaved" 
  2948.              by IBM's Topview, Microsoft's Windows, and DESQ.  
  2949.              
  2950.         7.5.2. wn_sbit
  2951.  
  2952.              wn_sbit controls the window refresh rate on systems with  
  2953.              color cards.  When set to SLOW (defined in windows.h), 
  2954.              window displays will appear to be painted on the screen 
  2955.              rather than flash displayed. This is the default value.  
  2956.              Setting wn_sbit to FAST enables flash displays. Artistic use 
  2957.              of wn_sbit can give your application that extra visual 
  2958.              touch. Experiment!
  2959.  
  2960.              From a performance standpoint, the fastest (flicker & snow 
  2961.              free) screen updates will occur with wn_dmaflg=TRUE 
  2962.              (default) and wn_sbit=FAST (default).  The key words here 
  2963.              are flicker and snow free.  Scrolling speed can be 
  2964.              increased, with a proportional increase in flicker 
  2965.              (perhaps), by using wn_scroll() function to set the 
  2966.              scrolling method for the window to BIOS.  This technique 
  2967.              will provide the fastest screen updates and scrolling on 
  2968.              color systems.
  2969.  
  2970.          7.5.3. wns_escape
  2971.  
  2972.              wns_escape is set to TRUE whenever wn_input detects that the 
  2973.              escape key has been pressed.  Since wn_input is the 
  2974.              underlying logic for the entire data entry package, 
  2975.              knowledge of this global may help you manage your data entry 
  2976.              activities better.  For example, you may want to follow one 
  2977.              logic path if data entry completed normally and another if 
  2978.              data entry was terminated because the escape key was 
  2979.              pressed.
  2980.  
  2981.  
  2982.  
  2983.                                                            Page: 48
  2984.                                                      The Window BOSS
  2985.  
  2986.  
  2987.  
  2988.         General Notes - continued.
  2989.  
  2990.  
  2991.  
  2992.         7.6. Microsoft C
  2993.  
  2994.         Some large model programs may require a stack greater than 4096 
  2995.         bytes.
  2996.  
  2997.         PWB and Integrated Development Environment fans take note - If 
  2998.         program and/or data space is at a premium - disabling debugging 
  2999.         can sometimes restore significant program and/or data space.  
  3000.  
  3001.         Microsoft Version 5.XX libraries were generated using the "/Zl" 
  3002.         command line parameter. This should insure compatibility with 
  3003.         previous versions of the compiler.  
  3004.  
  3005.         Microsoft Version 6.XX Programmer Workbench fans must define 
  3006.         "MSCV6=1" in the defines dialogue box.  Do this by selecting 
  3007.         "OPTIONS" then "C COMPILER OPTIONS".  
  3008.  
  3009.         The same rules that apply to the creation of MAKE files for Quick 
  3010.         C (SETTING THE PROGRAM LIST) also apply.  The program list can be 
  3011.         set by selecting the MAKE dialog box, then SET PROGRAM LIST.  Be 
  3012.         sure to include an explicit entry for The Window BOSS library.
  3013.  
  3014.         7.7. Microsoft QuickC
  3015.  
  3016.         Microsoft QuickC - All Integrated Development Environment users 
  3017.         MUST create MAKe files in order to be able to create EXEcutable 
  3018.         programs from within the Developmental Environment.  The MAKe
  3019.         file must contain the names of all of the programs that comprise 
  3020.         the application along with specific entries for all 3rd party 
  3021.         libraries being used.  In the case of 3rd party libraries, the 
  3022.         complete path specification for the library must be provided 
  3023.         (e.g. c:\msc\lib\swin.lib).  The MAKe file is created when you set 
  3024.         the program list.  Select the MAKE dialog BOX, then SET PROGRAM 
  3025.         LIST. Follow the standard rules for the creation of "MAK" files.
  3026.  
  3027.         QuickC 2.0 Integrated Development Environment
  3028.  
  3029.         MSCV4=1 must be defined in "COMPILER FLAGS" "DEFINES" dialog box 
  3030.         (select OPTIONS, MAKE, COMPILER FLAGS, then fill in DEFINES with 
  3031.         MSCV4=1).
  3032.  
  3033.         QuickC 2.5 Integrated Development Environment
  3034.  
  3035.         MSCV6=1 must be defined in "COMPILER FLAGS" "DEFINES" dialog box 
  3036.         (select OPTIONS, MAKE, COMPILER FLAGS, then fill in DEFINES with 
  3037.         MSCV6=1).
  3038.  
  3039.  
  3040.  
  3041.  
  3042.  
  3043.  
  3044.                                                            Page: 49
  3045.                                                      The Window BOSS
  3046.  
  3047.  
  3048.  
  3049.         General Notes - continued.
  3050.  
  3051.  
  3052.  
  3053.         7.8. Borland Turbo C
  3054.  
  3055.         Borland Turbo C pre version 1.5 users who prefer "The Integrated 
  3056.         Environment" over the "Command-Line Version" MUST define the 
  3057.         symbol "BORLAND=1". (Select Options, Compiler, Defines and enter 
  3058.         "BORLAND=1" in the dialogue box without quotes and in upper 
  3059.         case.)
  3060.  
  3061.         Integrated Environment users MUST create PROJECT files in order 
  3062.         to be able to create EXEcutable programs from within the Integrated 
  3063.         Environment.  The PROJECT file must contain the names of all of 
  3064.         the programs that comprise the application along with specific 
  3065.         entries for all 3rd party libraries being used.  In the case of 
  3066.         3rd party libraries, the complete path specification for the 
  3067.         library must be provided (e.g. c:\turboc\lib\swin.lib).
  3068.  
  3069.         7.9. Borland Turbo C++
  3070.  
  3071.         IDE (Integrated Development Environment) - Window BOSS users who 
  3072.         prefer the IDE over the command line compiler *MAY* have to 
  3073.         disable source level debugging when attempting to run their 
  3074.         applications from within the IDE via ^F9.  There are also 
  3075.         problems with running Window BOSS applications from within the 
  3076.         IDE when Sidekick (1.56A) is loaded.  Borland has been notified 
  3077.         of these problems (7/19/90).  PLEASE KEEP IN MIND THAT THESE 
  3078.         PROBLEMS ONLY APPLY WHEN USING THE IDE - THEY DO NOT IMPACT THE 
  3079.         FINAL APPLICATION.
  3080.  
  3081.           To disable source level debugging from within the IDE, select 
  3082.           Options, then Debugger, then set "Source Debugging" to NONE.  
  3083.           It may also help to disable debugging information from being 
  3084.           placed in the OBJ files.  This is done by selecting Options, 
  3085.           then Compiler, then Code Generation, then More - then disable 
  3086.           "Debug info in OBJs".
  3087.  
  3088.         7.10. MIX Power C
  3089.  
  3090.         Mix Power C - (1) Merge files must be created and edited with 
  3091.         text editors that do not insert ^Z for end of file. (2) PCO.EXE 
  3092.         should be in the default directory (the same directory that your 
  3093.         C files are in). (3) The linker should always be told the amount 
  3094.         of memory to be assigned to the stack, heap, and far heap.  Since 
  3095.         The Window BOSS uses both heap and far memory outside of your 
  3096.         program, it is imperative that PCL be invoked with reasonable 
  3097.         parameters. Typical values are [5k,40k,0] or [5k,40k,100k]. Refer 
  3098.         to the chapter on the Mix Linker in the Power C manual.
  3099.  
  3100.  
  3101.  
  3102.  
  3103.  
  3104.  
  3105.                                                            Page: 50
  3106.                                                      The Window BOSS
  3107.  
  3108.  
  3109.  
  3110.         General Notes - continued.
  3111.  
  3112.  
  3113.  
  3114.         7.11. TopSpeed C
  3115.  
  3116.         TopSpeed C - The TopSpeed compiler requires all applications to 
  3117.         be compiled and linked via PROJECT (MAKE) files.  The Window BOSS 
  3118.         library must be included in all project files that reference 
  3119.         applications that use The Window BOSS.  In addition to including 
  3120.         an entry for The Window BOSS in your project file, the project 
  3121.         file for The Window BOSS library must be located in the same 
  3122.         directory as the source code for the application you are 
  3123.         compiling.  The Window BOSS libraries themselves should be placed 
  3124.         in the directory that TopSpeed C uses for its run time libraries. 
  3125.         The following example (small memory model) should help clarify 
  3126.         this. 
  3127.  
  3128.           Application Directory               TopSpeed C LIB Directory
  3129.           (C:\SOURCE)                         (C:\TS\LIB)
  3130.  
  3131.            HELLO.C   <-Application Code        SWIN.LIB  <- Library 
  3132.            HELLO.PRJ <-Application PRJ File
  3133.            SWIN.PRJ  <-BOSS Lib PRJ File
  3134.  
  3135.            WINDOWS.H   \
  3136.            WINDOWS.FNS  > Standard Window BOSS "#include" files
  3137.            WINDOWS.EXT /
  3138.  
  3139.         Application project files must include a memory model specific 
  3140.         "import" directive.  For example, the HELLO.PRJ file for the 
  3141.         small memory model is as follows:
  3142.  
  3143.                        make DOS EXE
  3144.                        option +case +map +pack +check -vid
  3145.                        model Small
  3146.                        include %N initexe
  3147.                        import %O%M_clib
  3148.                        import swin
  3149.  
  3150.         The Shareware and Source media kit contain a generic application 
  3151.         project file named "TSAPP.PRJ".  "TSAPP.PRJ" can be copied to 
  3152.         "HELLO.PRJ", "BOSSDEMO.PRJ", and "SAMPLE.PRJ".  This will allow 
  3153.         you to test and experiment with these programs using either the 
  3154.         command line compiler or the integrated environment.  Application 
  3155.         project files can also be created and/or edited under TopSpeed's 
  3156.         integrated environment by using the "Project" pulldown menu.
  3157.  
  3158.  
  3159.  
  3160.  
  3161.  
  3162.  
  3163.  
  3164.  
  3165.  
  3166.                                                            Page: 51
  3167.                                                      The Window BOSS
  3168.  
  3169.  
  3170.  
  3171.         General Notes - continued.
  3172.  
  3173.  
  3174.  
  3175.         TopSpeed C - continued.
  3176.  
  3177.         Project files for the various Window BOSS libraries ("SWIN.PRJ", 
  3178.         "MWIN.PRJ", "CWIN.PRJ", "LWIN.PRJ", "XWIN.PRJ", and "MTWIN.PRJ") 
  3179.         are provided as part of the Window BOSS Source media kit. 
  3180.         Depending on the memory model(s) you use, one, or more, of these 
  3181.         files must be present in the same directory as your application 
  3182.         code and application project file.
  3183.  
  3184.         "SWIN.PRJ" is distributed under the name of TSSWIN.PRJ on the 
  3185.         Shareware media kit.  It should be renamed to "SWIN.PRJ" and must 
  3186.         be present in the same directory as your application code and 
  3187.         application project file.
  3188.  
  3189.  
  3190.  
  3191.  
  3192.  
  3193.  
  3194.  
  3195.  
  3196.  
  3197.  
  3198.  
  3199.  
  3200.  
  3201.  
  3202.  
  3203.  
  3204.  
  3205.  
  3206.  
  3207.  
  3208.  
  3209.  
  3210.  
  3211.  
  3212.  
  3213.  
  3214.  
  3215.  
  3216.  
  3217.  
  3218.  
  3219.  
  3220.  
  3221.  
  3222.  
  3223.  
  3224.  
  3225.  
  3226.  
  3227.                                                            Page: 52
  3228.                                                      The Window BOSS
  3229.  
  3230.  
  3231.  
  3232.         General Notes - continued.
  3233.  
  3234.  
  3235.  
  3236.         7.12. Datalight C
  3237.  
  3238.         BOSSDEMO.C and WN_FRMGE.C must be compiled with the BIG compiler.
  3239.  
  3240.         7.13. Zortech C
  3241.  
  3242.         Zortech C - ZORLIB (as distributed with version 2.0 of Zortech C) 
  3243.         can not produce a correctly formatted library of The Window BOSS 
  3244.         functions.  Microsoft's library manager LIB was used to create 
  3245.         the libraries distributed with The Window BOSS.  Please do not 
  3246.         attempt to recreate or update any of The Window BOSS libraries 
  3247.         with ZORLIB.  Zortech has been notified of the problem.
  3248.  
  3249.         BOSSDEMO.C must be compiled with the BIG compiler.
  3250.  
  3251.         7.14. Watcom C
  3252.  
  3253.         Express C- has a difficult time with the BOSSDEMO program unless 
  3254.         you edit BOSSDEMO.C and set MAXWIN to around 50.  You will also 
  3255.         need to play with the OPTION STACK when linking (2k seems to 
  3256.         work).
  3257.  
  3258.         7.15. Lattice C
  3259.  
  3260.         Lattice C - Lattice large model programs sometimes require the 
  3261.         heap to be set to a minimum value.  This can be accomplished by 
  3262.         setting _MNEED or specifying the stack and heap size at run time. 
  3263.         A minimum heap size of 32k will usually satisfy most 
  3264.         applications. REMEMBER: This is for the LARGE model only.  Refer 
  3265.         to the Lattice reference manuals for further information on 
  3266.         setting the stack and heap size.
  3267.  
  3268.  
  3269.  
  3270.  
  3271.  
  3272.  
  3273.  
  3274.  
  3275.  
  3276.  
  3277.  
  3278.  
  3279.  
  3280.  
  3281.  
  3282.  
  3283.  
  3284.  
  3285.  
  3286.  
  3287.  
  3288.                                                            Page: 53
  3289.                                                      The Window BOSS
  3290.  
  3291.  
  3292.  
  3293.         General Notes - continued.
  3294.  
  3295.  
  3296.  
  3297.         7.16. Aztec C
  3298.  
  3299.         Aztec C - Use the following command when recompiling BOSSDEMO.C:
  3300.  
  3301.                                csm -Z6000 bossdemo
  3302.  
  3303.         The Aztec C linker (LN) sometimes requires The Window BOSS 
  3304.         library to be included as part of the command line twice to 
  3305.         eliminate unresolved externals.  For example, to link the HELLO 
  3306.         program the command line would be:
  3307.  
  3308.                 ln hello swin.lib swin.lib m.lib c.lib
  3309.                          ^               ^
  3310.                           BOSS Library
  3311.  
  3312.         7.17. Feedback
  3313.  
  3314.         PLEASE - Pass along your comments.  The Window BOSS is your tool.  
  3315.         If you find any logic errors let us know.  We are committed to 
  3316.         making The Window BOSS the best price performer available.  Call, 
  3317.         write, or if you prefer, you can reach us via CompuServe, GENIE, 
  3318.         or BIX.  Our CompuServe electronic mail ID is [71565,1001], our 
  3319.         GENIE mail address is "MONGELLUZZO", our BIX NAME is 
  3320.         "pmongelluzzo". Remember, there is no reason to sit, steam, or 
  3321.         complain to those who can not provide any real form of support.  
  3322.         Lastly, if you use The Window BOSS, register your copy.  The 
  3323.         Shareware System will only work if you support it!
  3324.  
  3325.  
  3326.  
  3327.  
  3328.  
  3329.  
  3330.  
  3331.  
  3332.  
  3333.  
  3334.  
  3335.  
  3336.  
  3337.  
  3338.  
  3339.  
  3340.  
  3341.  
  3342.  
  3343.  
  3344.  
  3345.  
  3346.  
  3347.  
  3348.  
  3349.                                                            Page: 54
  3350.                                                      The Window BOSS
  3351.  
  3352.  
  3353.  
  3354.         8. Hints on Resolving Common Problems
  3355.  
  3356.         8.1. Unresolved Externals
  3357.  
  3358.         Unresolved externals are most common with the programming 
  3359.         environments of Turbo C and Quick C.  Both of these programming 
  3360.         environments require "program lists" or "make files".  This type 
  3361.         of error can also be caused by not explicitly specifying a Window 
  3362.         BOSS library on the link command line.  All linkers must have 
  3363.         explicit knowledge of what 3rd party libraries are to be linked 
  3364.         with the compiler libraries and your applications object files. 
  3365.         This problem is usually resolved by creating a program list or 
  3366.         make file that includes a explicit reference to one of The Window 
  3367.         BOSS libraries, or explicitly specifying the correct Window BOSS 
  3368.         library as part of the link command line.  Refer to your compiler 
  3369.         documentation for further information.
  3370.  
  3371.         8.2. Fixup Offset Errors
  3372.  
  3373.         These are always the result of attempting to link code compiled 
  3374.         under one memory model with libraries created for use with 
  3375.         another memory model.
  3376.  
  3377.         8.3. Bad Handle Exits
  3378.  
  3379.         Both the C and assembly functions make very heavy use of 
  3380.         pointers.  The code contains numerous checks to ensure that 
  3381.         memory does not get corrupted or randomly written over.  This 
  3382.         error is normally caused by a stray pointer in the application 
  3383.         code!  Check and recheck all of your pointer operations.  Doing 
  3384.         strcpy's to arrays with insufficient space will always cause this 
  3385.         type of problem.
  3386.  
  3387.         Oftentimes switching from the small memory model to large memory 
  3388.         model will initially produce these errors in programs that were 
  3389.         working fine in the small model.  In nearly every case the 
  3390.         problem was traced to a stray pointer or improper pointer usage.
  3391.  
  3392.         8.4. Fatal Compilation Errors
  3393.  
  3394.         All command line compilers should be invoked with the compiler 
  3395.         driver batch files provided as part of The Window BOSS.  This 
  3396.         insures the compiler specific compile time parameters are 
  3397.         specified correctly.  If you elect to use you own method, be sure 
  3398.         to include ALL of the command line parameters that are specified 
  3399.         in the provided batch files.  
  3400.  
  3401.         8.5. Missing Files
  3402.  
  3403.         Remember, the documentation covers two media kits (Shareware and 
  3404.         Source) and neither kit contains ALL files.  If you are missing 
  3405.         files that are listed for your media kit, please contact us.
  3406.  
  3407.  
  3408.  
  3409.  
  3410.                                                            Page: 55
  3411.                                                      The Window BOSS
  3412.  
  3413.  
  3414.  
  3415.         Hints on Resolving Common Problems - continued.
  3416.  
  3417.  
  3418.  
  3419.         8.6. Linking Errors
  3420.  
  3421.         (A) See "Unresolved Externals" above. (B) Most linking errors are 
  3422.         the result of; (1) forgetting to specify the library to link, (2) 
  3423.         specifying the wrong library, or (3) command line syntax errors.  
  3424.         Double check your compiler documentation for the proper way to 
  3425.         link "other libraries" or "3rd party libraries".
  3426.  
  3427.         8.7. Other Problems
  3428.  
  3429.         Double check this manual for proper usage, review your compiler 
  3430.         documentation, then contact us.
  3431.  
  3432.  
  3433.  
  3434.  
  3435.  
  3436.  
  3437.  
  3438.  
  3439.  
  3440.  
  3441.  
  3442.  
  3443.  
  3444.  
  3445.  
  3446.  
  3447.  
  3448.  
  3449.  
  3450.  
  3451.  
  3452.  
  3453.  
  3454.  
  3455.  
  3456.  
  3457.  
  3458.  
  3459.  
  3460.  
  3461.  
  3462.  
  3463.  
  3464.  
  3465.  
  3466.  
  3467.  
  3468.  
  3469.  
  3470.  
  3471.                                                            Page: 56
  3472.                                                      The Window BOSS
  3473.  
  3474.  
  3475.  
  3476.         9. Making Changes
  3477.  
  3478.         Incorporating local modifications or enhancements is, in part, 
  3479.         why you acquired the source code to begin with.  Incorporating 
  3480.         your modifications or enhancements should be be a relatively 
  3481.         straight forward task provided you follow the basic guidelines 
  3482.         outlined in the subsequent sections of this manual.  
  3483.  
  3484.         If you feel you have developed a significant enhancement that is 
  3485.         both well documented and written please let us know.  We have, 
  3486.         from time to time, incorporated customer supplied enhancements to 
  3487.         our products.  Contact us for further details.
  3488.  
  3489.         9.1. General Considerations
  3490.  
  3491.         First, be sure that you are familiar with the existing 
  3492.         conventions and compiler specific feature test switches. Refer to 
  3493.         the various BATch files for specific examples of compiler 
  3494.         specific defines (etc.).  
  3495.  
  3496.         Please note that we assume that you have installed your compiler 
  3497.         exactly as suggested in the compiler's manual.  This includes 
  3498.         suggested sub-directories, PATH specifiers, and environment 
  3499.         setup.  Check and double check the "include" file requirements - 
  3500.         make sure you have the required files and that they have been 
  3501.         edited to correspond to the memory model you are writing code 
  3502.         for. Creating code that compiles under numerous compilers is not 
  3503.         an easy task.  If you run into problems review your compilers 
  3504.         documentation and browse through the batch files provided.  If 
  3505.         you still have problems - call!  
  3506.  
  3507.         Carefully review the area of code you wish to modify or enhance - 
  3508.         be sure to get a complete understanding of what's currently going 
  3509.         on before you add your own code.  With the exception of the ASM 
  3510.         files, compiler and memory model specific feature test switches 
  3511.         are specified on the command line. 
  3512.  
  3513.         Depending upon the compiler being used, several warning errors 
  3514.         will be generated.  Warnings created by the unmodified 
  3515.         distribution code can be safely ignored - all others should be 
  3516.         investigated.
  3517.  
  3518.         A note of caution... PC/MS-DOS Version 2.XX's LINK can complain 
  3519.         if you build a new library that takes advantage of later LINK 
  3520.         enhancements.  If this occurs, you can (1) upgrade to DOS 3.1++ 
  3521.         or, (2) get a librarian that isn't so smart!!  We suggest going 
  3522.         to the later revision of DOS.
  3523.  
  3524.  
  3525.  
  3526.  
  3527.  
  3528.  
  3529.  
  3530.  
  3531.  
  3532.                                                            Page: 57
  3533.                                                      The Window BOSS
  3534.  
  3535.  
  3536.  
  3537.         Making Changes - continued.
  3538.  
  3539.  
  3540.         9.2. Specific Changes to Consider
  3541.  
  3542.         Both the Shareware and Source versions of The Window BOSS and 
  3543.         Data Clerk are supplied with the numerous common source code 
  3544.         files.
  3545.  
  3546.         The source code was provided to serve as the basis upon which you 
  3547.         could develop your own enhancements to the product and to provide 
  3548.         you with those modules which may need to be modified for your 
  3549.         particular application.  The latter is true of wn_frmget, 
  3550.         wn_iemsg, and wn_ihmsg.  You should consider modifying these 
  3551.         routines if you want to change the way in which data entry forms 
  3552.         are handled when completed (wn_frmget), the way in which data 
  3553.         entry field help messages are displayed  (wn_ihmsg), or the way 
  3554.         in which data entry field error messages are displayed 
  3555.         (wn_iemsg).
  3556.  
  3557.         In the case of wn_frmget, the code to modify is at the tail end 
  3558.         of the file and is clearly labeled.  Data entry Help messages are 
  3559.         displayed by wn_ihmsg whenever the HELP key is depressed.  Data 
  3560.         entry error messages are displayed by wn_iemsg whenever 
  3561.         validation for a particular field fails.  Refer to the source 
  3562.         code files and the descriptions of these functions in the 
  3563.         function synopsis section of this document.
  3564.  
  3565.  
  3566.  
  3567.  
  3568.  
  3569.  
  3570.  
  3571.  
  3572.  
  3573.  
  3574.  
  3575.  
  3576.  
  3577.  
  3578.  
  3579.  
  3580.  
  3581.  
  3582.  
  3583.  
  3584.  
  3585.  
  3586.  
  3587.  
  3588.  
  3589.  
  3590.  
  3591.  
  3592.  
  3593.                                                            Page: 58
  3594.                                                      The Window BOSS
  3595.  
  3596.  
  3597.  
  3598.         Making Changes - continued.
  3599.  
  3600.  
  3601.         9.3. TopSpeed C 
  3602.  
  3603.         If you do not have the Source media kit or are making a limited 
  3604.         number of changes or are testing a small number of changes, the 
  3605.         best approach to take is to modify your application's project 
  3606.         file to "include" an entry for the modified source code.  The 
  3607.         example below contains an entry for a locally modified version of 
  3608.         wn_frmget.  It is important to note that this project file will 
  3609.         cause the compiler to generate a warning message stating that 
  3610.         wn_frmget is duplicated.  This is a case in which the error 
  3611.         message can be safely ignored.
  3612.  
  3613.                        make DOS EXE
  3614.                        option +case +map +pack +check -vid
  3615.                        model Small
  3616.                        include %N initexe
  3617.                        include wn_frmget
  3618.                        import %O%M_clib
  3619.                        import swin
  3620.  
  3621.         Once the project file has been modified, you can use the command 
  3622.         line compiler or the integrated environment to test your changes.
  3623.  
  3624.  
  3625.  
  3626.  
  3627.  
  3628.  
  3629.  
  3630.  
  3631.  
  3632.  
  3633.  
  3634.  
  3635.  
  3636.  
  3637.  
  3638.  
  3639.  
  3640.  
  3641.  
  3642.  
  3643.  
  3644.  
  3645.  
  3646.  
  3647.  
  3648.  
  3649.  
  3650.  
  3651.  
  3652.  
  3653.  
  3654.                                                            Page: 59
  3655.                                                      The Window BOSS
  3656.  
  3657.  
  3658.  
  3659.         Making Changes - continued.
  3660.  
  3661.  
  3662.  
  3663.         TopSpeed C Continued.
  3664.  
  3665.         If you have the Source media kit and would prefer to create new 
  3666.         libraries the following general procedure can be used.
  3667.              
  3668.           1) Make sure that ALL of The Window BOSS "C" and "ASSEMBLER" 
  3669.              source files have been extracted from their respective 
  3670.              archives.
  3671.  
  3672.              Make sure the following files are in the same directory as 
  3673.              The Window BOSS source files:
  3674.  
  3675.                   MAKESWIN.PRJ                  MAKEMWIN.PRJ
  3676.                   MAKECWIN.PRJ                  MAKELWIN.PRJ
  3677.                   MAKEXWIN.PRJ                  MAKEMTWI.PRJ
  3678.  
  3679.                   MAKELIB.BAT
  3680.  
  3681.                   ?MSVLIB.OBJ                   MTMSVLIB.OBJ
  3682.  
  3683.           2) If applicable, edit "MSVLIB.ASM" as needed.  Be sure to set 
  3684.              LPROG and LDATA correctly.  ASSEMBLE by using the command:
  3685.  
  3686.                        C>MASM /MX MSVLIB;
  3687.  
  3688.              Model   SMALL   MEDIUM   COMPACT   LARGE   XLARGE   MTHREAD
  3689.  
  3690.              LPROG   FALSE   TRUE     FALSE     TRUE    TRUE     TRUE
  3691.              LDATA   FALSE   FALSE    TRUE      TRUE    TRUE     TRUE
  3692.  
  3693.              Name   SMSVLIB  MMSVLIB  CMSVLIB   LMSVLIB XMSVLIB  MTVLIB
  3694.  
  3695.              Then rename "MSVLIB.OBJ" according to the above table.
  3696.  
  3697.          3) If Applicable, edit the "C" level modules.  
  3698.  
  3699.          4) Use the "MAKELIB" BATch file to create the new library. 
  3700.             The command line Parameter to MAKELIB is a function of the 
  3701.             memory model of the library you are creating.
  3702.  
  3703.              Model   SMALL   MEDIUM   COMPACT   LARGE   XLARGE   MTHREAD
  3704.  
  3705.              Parm.   SWIN    MWIN     CWIN      LWIN    XWIN     MTWIN 
  3706.  
  3707.              For example, to create the large library:
  3708.  
  3709.                   C>MAKELIB LWIN
  3710.  
  3711.  
  3712.  
  3713.  
  3714.  
  3715.                                                            Page: 60
  3716.                                                      The Window BOSS
  3717.  
  3718.  
  3719.  
  3720.         Making Changes - continued.
  3721.  
  3722.  
  3723.         9.4. Microsoft, Borland, Watcom  
  3724.         9.5. Datalight, Zortech, CI86 
  3725.         9.6. Lattice, Mix Power C, Aztec 
  3726.  
  3727.              1) If applicable, edit the assembler level modules as 
  3728.                 needed.  Be sure to set LPROG and LDATA (if they apply).  
  3729.                 ASSEMBLE.
  3730.  
  3731.              2) If applicable, edit the "C" level modules.  COMPILE.
  3732.  
  3733.              3) Test your changes by linking the new/modified code 
  3734.                 with the existing libraries. For example to link your 
  3735.                 modified wn_move.c and v_getch:  (Microsoft example)
  3736.  
  3737.                   C> link myapp+wn_move+msvlib,,,swin
  3738.                 
  3739.                 If required, refer to your compiler documentation for 
  3740.                 explicit instructions on linking.
  3741.                                
  3742.              4) Update the existing Window BOSS libraries with the new 
  3743.                 "obj" files.  This is done with the librarian provided 
  3744.                 with your compiler.  Alternatively, you can use the batch 
  3745.                 files provided with the source code to recompile the 
  3746.                 entire library and rebuild, rather than update The 
  3747.                 Window BOSS libraries.
  3748.  
  3749.                 If required, refer to your compiler documentation for 
  3750.                 explicit instructions on how to use their librarians to 
  3751.                 update libraries.
  3752.  
  3753.         Remember, the memory model of the assembly "obj" file must 
  3754.         correspond to the memory model of the C "obj" files and the 
  3755.         memory model of any existing libraries. 
  3756.  
  3757.         9.6.1. Assembly Language Object Files
  3758.  
  3759.         The Source Media Kit now includes the object files of the 
  3760.         assembly language functions used by The Window BOSS. This will 
  3761.         free you from having to acquire, or use, an assembler unless you 
  3762.         intend to make changes to those functions written in assembly 
  3763.         language!  Now, all you have to do is copy and or rename the 
  3764.         appropriate object file before running the "MAKELIB" batch file!  
  3765.         A object file matrix is provided to assist you in determining 
  3766.         which object file should be used with which compiler and memory 
  3767.         model.
  3768.  
  3769.  
  3770.  
  3771.  
  3772.  
  3773.  
  3774.  
  3775.  
  3776.                                                            Page: 61
  3777.                                                      The Window BOSS
  3778.  
  3779.  
  3780.  
  3781.         Making Changes - continued.
  3782.  
  3783.  
  3784.         9.6.2. Assembly Language Object File Matrix
  3785.  
  3786.         The matrix that follows identifies the relationship between the 
  3787.         object filename, compiler memory model, and the filename used as 
  3788.         part of the "MAKELIB" batch utility provided as part of The 
  3789.         Window BOSS.  Use this matrix to determine what file to rename 
  3790.         (or copy) when recreating Window BOSS libraries that DO NOT 
  3791.         include any changes or additions to existing assembly language 
  3792.         functions.
  3793.                        
  3794.                                Object File Matrix
  3795.  
  3796.         Compiler     SMALL     MEDIUM   COMPACT  LARGE      MAKELIB NAME
  3797.  
  3798.         QuickC 2.0   SMSVLIB   MMSVLIB  CMSVLIB  LMSVLIB    MSVLIB.OBJ
  3799.         QuickC 2.5   SMSVLIB   MMSVLIB  CMSVLIB  LMSVLIB    MSVLIB.OBJ
  3800.         MSC 5.X      SMSVLIB   MMSVLIB  CMSVLIB  LMSVLIB    MSVLIB.OBJ
  3801.         MSC 6.X      SMSVLIB   MMSVLIB  CMSVLIB  LMSVLIB    MSVLIB.OBJ
  3802.         Turbo C      SMSVLIB   MMSVLIB  CMSVLIB  LMSVLIB    MSVLIB.OBJ
  3803.         Turbo C++    STCVLIB   MTCVLIB  CTCVLIB  LTCVLIB    TCVLIB.OBJ
  3804.         Watcom       SWCVLIB   MWCVLIB  CWCVLIB  LWCVLIB    WCVLIB.OBJ
  3805.         Express C    -------   MWCVLIB  -------  -------    WCVLIB.OBJ
  3806.         Datalight    SDLVLIB   PDLVLIB  DDLVLIB  LDLVLIB    DLVLIB.OBJ
  3807.         Lattice 3    SVLIB     PVLIB    DVLIB    LVLIB      VLIB.OBJ
  3808.         Lattice 6    SVLIB     PVLIB    DVLIB    LVLIB      VLIB.OBJ
  3809.         Zortech      SMSVLIB   MMSVLIB  CMSVLIB  LMSVLIB    MSVLIB.OBJ
  3810.         CI86         SVLIB     -------  -------  LVLIB      VLIB.OBJ
  3811.         MIX          -------   PCVLIB   -------  -------    PCVLIB.MIX
  3812.         AZTEC        SAZVLIB   MAZVLIB  CAZVLIB  LAZVLIB    AZVLIB.O
  3813.  
  3814.         Example: Rebuild the Large model library for Microsoft C 5.X, 
  3815.         6.X, or Quick C.  
  3816.  
  3817.         You would:
  3818.  
  3819.              (1) Use LCOMPILE to compile all C functions
  3820.  
  3821.                        C>LCOMPILE
  3822.  
  3823.              (2) Copy LMSVLIB.OBJ to MSVLIB.OBJ
  3824.  
  3825.                        C>COPY LMSVLIB.OBJ MSVLIB.OBJ
  3826.              
  3827.              (3) Rebuild the LARGE model library 
  3828.  
  3829.                        C>MAKELIB LWIN
  3830.  
  3831.  
  3832.  
  3833.  
  3834.  
  3835.  
  3836.  
  3837.                                                            Page: 62
  3838.                                                      The Window BOSS
  3839.  
  3840.  
  3841.  
  3842.         Making Changes - continued.
  3843.  
  3844.  
  3845.         Turbo C++
  3846.  
  3847.         The HUGE memory model generally requires the same object file as 
  3848.         the LARGE. Turbo C++ is the exception (use HTCVLIB.OBJ).  The 
  3849.         following table outlines the values that LPROG, LDATA, and HUGE 
  3850.         need to have assigned for the various memory models.  This 
  3851.         information is provided for those who need to modify the assembly 
  3852.         language files to incorporate their local changes.
  3853.               
  3854.              Memory Model                    LPROG   LDATA   HUGE  *
  3855.              SMALL   (64k Code, 64k Data)    FALSE   FALSE   FALSE
  3856.              MEDIUM  (1MB Code, 64k Data)    TRUE    FALSE   FALSE
  3857.              COMPACT (64k Code, 1MB Data)    FALSE   TRUE    FALSE
  3858.              LARGE   (1MB Code, 1MB Data)    TRUE    TRUE    FALSE
  3859.              HUGE    (1MB Code, 1MB Data) *  TRUE    TRUE    TRUE
  3860.  
  3861.              * HUGE is only defined in TCVLIB.ASM.  The HUGE memory 
  3862.                model allows arrays to exceed 64k.
  3863.  
  3864.  
  3865.  
  3866.  
  3867.  
  3868.  
  3869.  
  3870.  
  3871.  
  3872.  
  3873.  
  3874.  
  3875.  
  3876.  
  3877.  
  3878.  
  3879.  
  3880.  
  3881.  
  3882.  
  3883.  
  3884.  
  3885.  
  3886.  
  3887.  
  3888.  
  3889.  
  3890.  
  3891.  
  3892.  
  3893.  
  3894.  
  3895.  
  3896.  
  3897.  
  3898.                                                            Page: 63
  3899.                                                      The Window BOSS
  3900.  
  3901.  
  3902.  
  3903.         Making Changes - continued.
  3904.  
  3905.  
  3906.         9.6.3. Assembler Code
  3907.  
  3908.           Selecting the Memory Model:
  3909.  
  3910.              Computer Innovations and Lattice
  3911.  
  3912.                 1) vlib.asm     Edit - Set LATTICE to 1 for Lattice.
  3913.                                 DOS.MAC determines the memory model.
  3914.  
  3915.                                 Set LATTICE to 0 for Computer Innovations.
  3916.                                 MODEL.H determines the memory model.
  3917.  
  3918.                 2) model.h      CI86 only - Set "SMALL" & "LARGE".
  3919.                                 See MODEL.H for discussion.
  3920.  
  3921.              Microsoft C, QuickC, Borland Turbo C, Watcom C, Zortech
  3922.  
  3923.                 1) msvlib.asm   Set LDATA & LPROG to TRUE or FALSE 
  3924.                    wcvlib.asm   LDATA is TRUE for LARGE DATA
  3925.                                 LPROG is TRUE for LARGE CODE
  3926.                                 Assemble using:
  3927.                                   MASM /MX MSVLIB;   <- All but WATCOM
  3928.                                   MASM /MX WCVLIB;   <- WATCOM ONLY
  3929.  
  3930.              Datalight
  3931.  
  3932.                 1) dos.mac      Edit to reflect memory model. 
  3933.                                 Additionally, MACROS.ASM must be present.
  3934.                                 Assemble using:
  3935.                                       MASM /MX dlvlib; 
  3936.  
  3937.              MIX Power C
  3938.  
  3939.                 1) pcvlib.asm   Set LDATA to FALSE, LPROG to TRUE
  3940.                                 Assemble using:
  3941.                                       MASM /ML PCVLIB;
  3942.  
  3943.                                 Run the MIX utility on PCVLIB.OBJ
  3944.  
  3945.              Aztec C
  3946.                   
  3947.                 1) azvlib.asm   Set LDATA & LPROG to TRUE or FALSE 
  3948.                                 LDATA is TRUE for LARGE DATA
  3949.                                 LPROG is TRUE for LARGE CODE
  3950.                                 Assemble using:
  3951.                                       AS AZVLIB;
  3952.  
  3953.  
  3954.  
  3955.  
  3956.  
  3957.  
  3958.  
  3959.                                                            Page: 64
  3960.                                                      The Window BOSS
  3961.  
  3962.  
  3963.  
  3964.         Making Changes - continued.
  3965.  
  3966.  
  3967.  
  3968.         9.7. C Code
  3969.  
  3970.         Pattern your enhancements after existing code.  The most common 
  3971.         mistakes are: (1) failing to call wn_activate, (2) failing to 
  3972.         check for error returns, and (3) failing to rebuild the libraries 
  3973.         correctly.
  3974.  
  3975.         Incorporating custom data entry functions is a straight forward 
  3976.         task if you follow the guidelines below.
  3977.  
  3978.              . Pattern your data entry routine after wn_gfloat.
  3979.  
  3980.              . Study the relationship between wn_gfloat and wn_frmget. 
  3981.  
  3982.              . Study the way in which arguments are loaded using the 
  3983.                unions v1 through v8.
  3984.  
  3985.              . Edit windows.h and expand the table of data entry function 
  3986.                codes to include a new code above 100, for example:
  3987.  
  3988.                        #define GCUSTOM  101
  3989.  
  3990.                The table of data entry function codes is located towards 
  3991.                the tail end of "windows.h" and begins with:
  3992.  
  3993.                        #define GDONE    0
  3994.  
  3995.              . Edit wn_frmget.c and expand the large case statement to 
  3996.                include a case for your custom data entry function.  
  3997.                Pattern the code you are adding after the existing code.
  3998.  
  3999.              . Rebuild the libraries adding your custom function and 
  4000.                replacing wn_frmget with the new version.
  4001.  
  4002.         Refer to wn_gfloat and wn_frmget....
  4003.  
  4004.              The general logic is to call the data entry function with 
  4005.              the argument list corresponding to this occurrence of this 
  4006.              type of field. The data entry function tests the value of 
  4007.              "fun". If it is "XEQ" then control immediately passes to the 
  4008.              logic that handles data entry.  If fun is "SET" then the 
  4009.              data entry function loads the form control block (indexed by 
  4010.              "fld") with the arguments being passed. This sets the stage 
  4011.              for subsequent calls (in a predetermined order) from 
  4012.              wn_frmget! When called, wn_frmget first displays all the 
  4013.              prompt fields, and then calls the data entry functions in 
  4014.              the order determined by the form control block.
  4015.  
  4016.  
  4017.  
  4018.  
  4019.  
  4020.                                                            Page: 65
  4021.                                                      The Window BOSS
  4022.  
  4023.  
  4024.  
  4025.         10. Library Rebuilding (MSC5.1, QC2.0, LC 3.41, DLC, C86)
  4026.  
  4027.         Support for Microsoft C 5.1, QuickC 2.0, Lattice 3.41, Datalight, 
  4028.         and Computer Innovations C86 will eventually cease.  At this time 
  4029.         Star Guidance Consulting is not distributing preconfigured 
  4030.         libraries for these compilers with registered versions of The 
  4031.         Window BOSS.  We are, however, providing all the tools required 
  4032.         to rebuild the libraries on the end user's machine.  We have also 
  4033.         certified these compilers to work with *this* version (see front 
  4034.         cover of the manual) of The Window BOSS. The steps to follow are 
  4035.         outlined below.  The entire process should not take more than 20 
  4036.         minutes.
  4037.  
  4038.              1. Unarchive CFILES.LZH  
  4039.  
  4040.                   C> lharc e cfiles
  4041.  
  4042.              2. Unarchive MS5.LZH, MSQC20.LZH, LC3.LZH, DLC, or C86
  4043.  
  4044.                   C> lharc e MS5 
  4045.                        ...
  4046.                   C> lharc e C86
  4047.  
  4048.              3. Based on the memory of the library you wish to create use 
  4049.                 one of the ?COMPILE.BAT batch files to compile all of the 
  4050.                 "C" files.  The first character of the batch file 
  4051.                 corresponds to the memory module you wish to create.  For 
  4052.                 example, to compile for the Large memory model you 
  4053.                 would:
  4054.  
  4055.                   C> LCOMPILE
  4056.  
  4057.             4.  Using the previously discussed "Assembly Language Object 
  4058.                 File Matrix" copy the memory model specific "obj" file to 
  4059.                 either MSVLIB.OBJ or VLIB.OBJ.  For the large memory 
  4060.                 model you would:
  4061.  
  4062.                   C> copy lmsvlib.obj msvlib.obj
  4063.                        or
  4064.                   C> copy lvlib.obj vlib.obj
  4065.                        or
  4066.                   C> copy ldlvlib.obj dlvlib.obj
  4067.  
  4068.             5.  Create the library using the MAKELIB batch file. Name the 
  4069.                 library ?WIN where ? corresponds to the memory model you 
  4070.                 are creating.  For example, to build the Large library 
  4071.                 you would:
  4072.  
  4073.                   C> MAKELIB LWIN
  4074.  
  4075.         Thats all there is to it!  
  4076.  
  4077.  
  4078.  
  4079.  
  4080.  
  4081.                                                            Page: 66
  4082.                                                      The Window BOSS
  4083.  
  4084.  
  4085.  
  4086.         11. Function Call Synopsis
  4087.  
  4088.  
  4089.  
  4090.  
  4091.  
  4092.  
  4093.  
  4094.  
  4095.  
  4096.  
  4097.  
  4098.  
  4099.  
  4100.  
  4101.  
  4102.  
  4103.  
  4104.  
  4105.  
  4106.  
  4107.  
  4108.  
  4109.  
  4110.                  The Window BOSS and Data Clerk Function Library
  4111.  
  4112.  
  4113.  
  4114.  
  4115.  
  4116.  
  4117.  
  4118.  
  4119.  
  4120.  
  4121.  
  4122.  
  4123.  
  4124.  
  4125.  
  4126.  
  4127.  
  4128.  
  4129.  
  4130.  
  4131.  
  4132.  
  4133.  
  4134.  
  4135.  
  4136.  
  4137.  
  4138.  
  4139.  
  4140.  
  4141.  
  4142.                                                            Page: 67
  4143.                                                      The Window BOSS
  4144.  
  4145.  
  4146.  
  4147.         11.1. wn_init -- init window system
  4148.         11.2. wn_exit -- exit window system
  4149.         11.3. wn_psinit() -- init window system - physical size
  4150.  
  4151.         USAGE
  4152.  
  4153.           wn_init()
  4154.  
  4155.           wn_psinit(rows, columns)
  4156.           int rows, columns
  4157.  
  4158.              rows = # of rows on physical screen
  4159.              cols = # of columns on physical screen
  4160.  
  4161.           wn_exit()
  4162.  
  4163.           wn_init() or wn_psinit() and wn_exit(), if used, should be the 
  4164.           first and last functions called. Both wn_init() and wn_psinit() 
  4165.           save the video state and application entry screen.  wn_init() 
  4166.           or wn_psinit() is typically the very first function called in 
  4167.           the main program. wn_exit() restores the saved video state and 
  4168.           screen image.  wn_exit() is typically called just prior to 
  4169.           calling exit().
  4170.  
  4171.           wn_init() is the general case of wn_psinit().  It assumes a 
  4172.           physical screen size of 25x80 and therefore is the most 
  4173.           portable across video adapters.
  4174.  
  4175.           wn_psinit() allows those who need to use either the EGA 43x80
  4176.           or VGA 50x80 line modes a handy way to save the existing 43 or 
  4177.           50 line screen image.  Examples:
  4178.  
  4179.              wn_psinit(43,80);             /* saves 43 line EGA screen */
  4180.              wn_psinit(50,80);             /* saves 50 line VGA screen */
  4181.           
  4182.         RETURNS
  4183.  
  4184.           TRUE if successful, FALSE if error.
  4185.  
  4186.         CAUTIONS and ADDITIONAL NOTES
  4187.  
  4188.           wn_psinit() does not check to see if the parameters passed are 
  4189.           valid for the adapter in use.
  4190.  
  4191.           wn_psinit() does not change video modes based on the parameters 
  4192.           passed.  It is the programmers responsibility to insure that 
  4193.           the video adapter is in the correct mode for the application.
  4194.  
  4195.           Calling wn_psinit() with parameters greater than can be handled 
  4196.           by the machines video adapter can have interesting but 
  4197.           undesirable results.
  4198.  
  4199.           Use of wn_psinit() should be restricted to machines equipped 
  4200.           with EGA or VGA adapters only.
  4201.  
  4202.  
  4203.                                                            Page: 68
  4204.                                                      The Window BOSS
  4205.  
  4206.  
  4207.  
  4208.         11.4. wn_dmode -- set window display mode
  4209.  
  4210.         USAGE
  4211.  
  4212.           wn_dmode(mode)
  4213.           int mode
  4214.  
  4215.                   mode = PAINT for painted windows
  4216.                   mode = FLASH for instant windows
  4217.  
  4218.           wn_dmode sets the windows display mode as per mode, PAINT style 
  4219.           windows appear to be painted (top to bottom) where FLASH style 
  4220.           windows instantly appear.
  4221.  
  4222.         RETURNS
  4223.  
  4224.           Nothing.
  4225.  
  4226.         CAUTIONS and ADDITIONAL NOTES
  4227.  
  4228.           CGA, EGA, and VGA only. Updates are made directly to video 
  4229.           memory.
  4230.  
  4231.  
  4232.  
  4233.  
  4234.  
  4235.  
  4236.  
  4237.  
  4238.  
  4239.  
  4240.  
  4241.  
  4242.  
  4243.  
  4244.  
  4245.  
  4246.  
  4247.  
  4248.  
  4249.  
  4250.  
  4251.  
  4252.  
  4253.  
  4254.  
  4255.  
  4256.  
  4257.  
  4258.  
  4259.  
  4260.  
  4261.  
  4262.  
  4263.  
  4264.                                                            Page: 69
  4265.                                                      The Window BOSS
  4266.  
  4267.  
  4268.  
  4269.         11.5. wn_open -- open window 
  4270.  
  4271.         USAGE
  4272.  
  4273.           wn = (WINDOWPTR)wn_open(page, row, col, width, height, atrib,
  4274.                 batrib)
  4275.           int page, row, col, width, height, atrib, batrib;
  4276.  
  4277.                 page -  0 500, 800, or 1000
  4278.                         1000 opens a borderless page
  4279.                          800 opens an exploding window
  4280.                          500 opens a window with black shadows
  4281.                            0 opens a bordered window (NORMAL)
  4282.                 row  -  row of upper left hand corner of the window
  4283.                 col  -  column of upper left hand corner of the window
  4284.                 width - INSIDE dimension (max value is 78 for a 80 column 
  4285.                         wide display, 80 if borderless)
  4286.                 height- INSIDE dimension (max value is 23 for a 25 row 
  4287.                         high display, 25 if borderless)
  4288.                 atrib - attribute to be used IN the window
  4289.                 batrib- attribute to be used for the border
  4290.  
  4291.           wn_open is usually the first function called to create and use 
  4292.           a window.  wn_open dynamically allocates memory to save the 
  4293.           area defined (by row, col, width, and height), saves the image, 
  4294.           opens the window and homes the logical cursor to row 0, col 0 
  4295.           of the window.  The window is now ready to be used by the 
  4296.           various window management routines.  
  4297.  
  4298.           Attributes (COLORS) are defined in windows.h.
  4299.  
  4300.         RETURNS
  4301.  
  4302.           wn = window handle or NULL if error (no memory and/or bad 
  4303.           parameters can cause NULL returns)
  4304.  
  4305.         CAUTIONS and ADDITIONAL NOTES
  4306.  
  4307.           Width and height are inside dimensions. If you want a NORMAL 
  4308.           window with a work area of 10 rows and 5 columns, the width is 
  4309.           7 and the height is 12.  Maximum values are linked to the 
  4310.           actual physical screen size and are dependent upon whether or 
  4311.           not a borderless window is being opened.  The window, its 
  4312.           borders (if they exist), and its shadow (if it exists) must all 
  4313.           fit and be visible on the physical screen.
  4314.           
  4315.  
  4316.  
  4317.  
  4318.  
  4319.  
  4320.  
  4321.  
  4322.  
  4323.  
  4324.  
  4325.                                                            Page: 70
  4326.                                                      The Window BOSS
  4327.  
  4328.  
  4329.  
  4330.         wn_open - continued.
  4331.  
  4332.  
  4333.  
  4334.           The flashing cursor will not be displayed unless wn_sync() has 
  4335.           been called with a value of TRUE.  
  4336.  
  4337.           The window "wn" automatically becomes the top window tile upon 
  4338.           return.
  4339.  
  4340.           Exploding windows are linked to the time of day clock.  This is 
  4341.           done by reading the time of day (in ticks) directly from low 
  4342.           memory.  If you would like to vary the explosion time it can be 
  4343.           done by calling the internal routine "wns_stdiv" with a long 
  4344.           integer constant in the range of 1 to 10.  The default value is 
  4345.           5L.  Increasing the value will cause the explosion to be 
  4346.           faster.  For example:
  4347.  
  4348.                                  wns_stdiv(10L);
  4349.  
  4350.           Window types can not be combined.  That is to say that you can 
  4351.           not have shadowed borderless windows, borderless exploding 
  4352.           windows, or exploding windows with shadows.
  4353.  
  4354.         See Also - wn_psinit and wn_init
  4355.  
  4356.  
  4357.  
  4358.  
  4359.  
  4360.  
  4361.  
  4362.  
  4363.  
  4364.  
  4365.  
  4366.  
  4367.  
  4368.  
  4369.  
  4370.  
  4371.  
  4372.  
  4373.  
  4374.  
  4375.  
  4376.  
  4377.  
  4378.  
  4379.  
  4380.  
  4381.  
  4382.  
  4383.  
  4384.  
  4385.  
  4386.                                                            Page: 71
  4387.                                                      The Window BOSS
  4388.  
  4389.  
  4390.  
  4391.         11.6. wn_title -- title window
  4392.  
  4393.         USAGE
  4394.  
  4395.           wn_title(wn,title)
  4396.           WINDOWPTR wn;
  4397.           char *title;
  4398.  
  4399.                 wn    - window handle
  4400.                 title - string pointer to title
  4401.  
  4402.           The title is displayed on the top border of the window using 
  4403.           the currently defined border attribute.  The cursor is 
  4404.           positioned off the screen after the title is written.  
  4405.  
  4406.         RETURNS
  4407.  
  4408.           TRUE if all is well, NULL if the title is to large to fit on 
  4409.           the top border or error.
  4410.  
  4411.         CAUTIONS and ADDITIONAL NOTES
  4412.  
  4413.           The window "wn" automatically becomes the top window tile upon 
  4414.           return.
  4415.  
  4416.  
  4417.  
  4418.         11.7. wn_titla -- title window with attribute
  4419.  
  4420.         USAGE
  4421.  
  4422.           wn_titla(wn,title,atrib)
  4423.           WINDOWPTR wn;
  4424.           char *title;
  4425.           int atrib;
  4426.  
  4427.                 wn    - window handle
  4428.                 title - string pointer to title
  4429.                 atrib - attribute to use for text
  4430.  
  4431.           The title is displayed on the top border of the window using 
  4432.           the attribute specified by atrib.  The cursor is positioned off 
  4433.           the screen after the title is written.  
  4434.  
  4435.         RETURNS
  4436.  
  4437.           TRUE if all is well, NULL if the title is to large to fit on 
  4438.           the top border or error.
  4439.  
  4440.         CAUTIONS and ADDITIONAL NOTES
  4441.  
  4442.           The window "wn" automatically becomes the top window tile upon 
  4443.           return.
  4444.  
  4445.  
  4446.  
  4447.                                                            Page: 72
  4448.                                                      The Window BOSS
  4449.  
  4450.  
  4451.  
  4452.         11.8. wn_stitle -- super title window
  4453.  
  4454.         USAGE
  4455.  
  4456.           wn_title(wn,title,location)
  4457.           WINDOWPTR wn;
  4458.           char *title;
  4459.           int location;
  4460.  
  4461.                 wn    -    window handle
  4462.                 title -    string pointer to title
  4463.                 location - border location
  4464.  
  4465.             Location can be any of the following (defined in windows.h):
  4466.  
  4467.                 WNTOPR  - top right 
  4468.                 WNTOPL  - top left 
  4469.                 WNTOPC  - top center 
  4470.                 WNBOTR  - bottom right 
  4471.                 WNBOTL  - bottom left 
  4472.                 WNBOTC  - bottom center 
  4473.  
  4474.           The title is displayed on the border at the location specified 
  4475.           using the currently defined border attribute.  The cursor is 
  4476.           positioned off the screen after the title is written.  
  4477.  
  4478.         RETURNS
  4479.  
  4480.           TRUE if all is well, NULL if the title is to large to fit on 
  4481.           the border.
  4482.  
  4483.         CAUTIONS and ADDITIONAL NOTES
  4484.  
  4485.           The window "wn" automatically becomes the top window tile upon 
  4486.           return.
  4487.  
  4488.  
  4489.  
  4490.  
  4491.  
  4492.  
  4493.  
  4494.  
  4495.  
  4496.  
  4497.  
  4498.  
  4499.  
  4500.  
  4501.  
  4502.  
  4503.  
  4504.  
  4505.  
  4506.  
  4507.  
  4508.                                                            Page: 73
  4509.                                                      The Window BOSS
  4510.  
  4511.  
  4512.  
  4513.         11.9. wn_stitla -- super title window with attribute
  4514.  
  4515.         USAGE
  4516.  
  4517.           wn_stitla(wn,title,atrib,location)
  4518.           WINDOWPTR wn;
  4519.           char *title;
  4520.           int atrib;
  4521.           int location;
  4522.  
  4523.                 wn    - window handle
  4524.                 title - string pointer to title
  4525.                 atrib - attribute to use for text
  4526.                 location - border location
  4527.  
  4528.             Location can be any of the following (defined in windows.h):
  4529.  
  4530.                 WNTOPR  - top right 
  4531.                 WNTOPL  - top left 
  4532.                 WNTOPC  - top center 
  4533.                 WNBOTR  - bottom right 
  4534.                 WNBOTL  - bottom left 
  4535.                 WNBOTC  - bottom center 
  4536.  
  4537.  
  4538.           The title is displayed on the border at the location specified 
  4539.           using the using the attribute specified by atrib.  The cursor 
  4540.           is positioned off the screen after the title is written.  
  4541.  
  4542.         RETURNS
  4543.  
  4544.           TRUE if all is well, NULL if the title is to large to fit on 
  4545.           the border.
  4546.  
  4547.         CAUTIONS and ADDITIONAL NOTES
  4548.  
  4549.           The window "wn" automatically becomes the top window tile upon 
  4550.           return.
  4551.  
  4552.  
  4553.  
  4554.  
  4555.  
  4556.  
  4557.  
  4558.  
  4559.  
  4560.  
  4561.  
  4562.  
  4563.  
  4564.  
  4565.  
  4566.  
  4567.  
  4568.  
  4569.                                                            Page: 74
  4570.                                                      The Window BOSS
  4571.  
  4572.  
  4573.  
  4574.         11.10. wn_close -- close window
  4575.  
  4576.         USAGE
  4577.  
  4578.           wn_close(wn) 
  4579.           WINDOWPTR wn; 
  4580.  
  4581.                 wn - handle of a previously opened window.
  4582.  
  4583.           wn_close removes the window specified by wn and restores the 
  4584.           screen area under the window to its previous contents.  The 
  4585.           memory allocated by wn_open is returned to the free list.  The 
  4586.           cursor is positioned to where it was located prior to the 
  4587.           wn_open call.  
  4588.  
  4589.         RETURNS 
  4590.  
  4591.           TRUE or NULL if error
  4592.  
  4593.         CAUTIONS and ADDITIONAL NOTES 
  4594.  
  4595.           None.
  4596.  
  4597.  
  4598.  
  4599.         11.11. wn_save -- save screen image 
  4600.  
  4601.         USAGE
  4602.  
  4603.           wn = (WINDOWPTR)wn_save(page, row, col, width, height)
  4604.           int page, row, col, width, height;
  4605.  
  4606.                 page -  always 0.
  4607.                 row  -  row of upper left hand corner of the window
  4608.                 col  -  column of upper left hand corner of the window
  4609.                 width - INSIDE dimension (max value is 78)
  4610.                 height- INSIDE dimension (max value is 23)
  4611.  
  4612.           wn_save can be used to save areas of the screen for purposes 
  4613.           other than windows.  
  4614.  
  4615.           Memory for the screen image is dynamically allocated.
  4616.  
  4617.         RETURNS
  4618.  
  4619.           wn = window handle or NULL if error
  4620.  
  4621.         CAUTIONS and ADDITIONAL NOTES
  4622.  
  4623.           The window handle returned by wn_save should only be used with 
  4624.           wn_restore. Use with other routines could produce unpredictable 
  4625.           results.
  4626.  
  4627.  
  4628.  
  4629.  
  4630.                                                            Page: 75
  4631.                                                      The Window BOSS
  4632.  
  4633.  
  4634.  
  4635.         11.12. wn_restore -- restore saved screen image
  4636.  
  4637.         USAGE
  4638.  
  4639.           wn_restore(wn)
  4640.           WINDOWPTR wn;
  4641.  
  4642.                 wn - handle of previously wn_save(ed) window.
  4643.  
  4644.           Restores the screen image corresponding to the window handle 
  4645.           wn, and allocated memory is returned to the free list.
  4646.  
  4647.         RETURNS
  4648.  
  4649.           TRUE or NULL if error
  4650.  
  4651.         CAUTIONS and ADDITIONAL NOTES
  4652.  
  4653.           This function should only be used with window handles obtained 
  4654.           from wn_save.
  4655.  
  4656.  
  4657.  
  4658.         11.13. wn_move -- move window
  4659.  
  4660.         USAGE
  4661.  
  4662.           wn = (WINDOWPTR)wn_move(wn,row,col)
  4663.  
  4664.                 wn -  handle of window to be moved
  4665.                 row - destination row
  4666.                 col - destination column
  4667.  
  4668.           Moves the window corresponding to wn to a new location.  The 
  4669.           cursor is positioned off the screen after the call.  
  4670.  
  4671.         RETURNS
  4672.  
  4673.           Window handle of the window moved or NULL if error.
  4674.  
  4675.         CAUTIONS and ADDITIONAL NOTES
  4676.  
  4677.           The window "wn" automatically becomes the top window tile upon 
  4678.           return.
  4679.  
  4680.  
  4681.  
  4682.  
  4683.  
  4684.  
  4685.  
  4686.  
  4687.  
  4688.  
  4689.  
  4690.  
  4691.                                                            Page: 76
  4692.                                                      The Window BOSS
  4693.  
  4694.  
  4695.  
  4696.         11.14. wn_locate -- locate cursor in window
  4697.  
  4698.         USAGE
  4699.  
  4700.           wn_locate(wn, row, col)
  4701.           WINDOWPTR wn;
  4702.           int row, col;
  4703.  
  4704.                 wn  - window handle
  4705.                 row - row to position to (relative to window origin)
  4706.                 col - column to position to (relative to window origin)
  4707.  
  4708.           Position the cursor to the row and column specified.  Row and  
  4709.           Column values are relative to the origin of the window (0,0 
  4710.           locates the cursor in the upper left hand corner of the window 
  4711.           referenced by wn).
  4712.  
  4713.         RETURNS
  4714.  
  4715.           TRUE or NULL if error
  4716.  
  4717.         CAUTIONS and ADDITIONAL NOTES
  4718.  
  4719.           Values of row & col are not checked.
  4720.  
  4721.           The window "wn" automatically becomes the top window tile upon 
  4722.           return.
  4723.  
  4724.  
  4725.  
  4726.  
  4727.  
  4728.  
  4729.  
  4730.  
  4731.  
  4732.  
  4733.  
  4734.  
  4735.  
  4736.  
  4737.  
  4738.  
  4739.  
  4740.  
  4741.  
  4742.  
  4743.  
  4744.  
  4745.  
  4746.  
  4747.  
  4748.  
  4749.  
  4750.  
  4751.  
  4752.                                                            Page: 77
  4753.                                                      The Window BOSS
  4754.  
  4755.  
  4756.  
  4757.         11.15. wn_printf -- window printf
  4758.  
  4759.         USAGE
  4760.  
  4761.           wn_printf(wn, cs, args)
  4762.           WINDOWPTR wn;
  4763.           char *cs;
  4764.           ?? arg1 ... argn;
  4765.  
  4766.                 wn   - window handle
  4767.                 cs   - format control string
  4768.                 args - argument list
  4769.  
  4770.           printf function for windows!
  4771.  
  4772.         RETURNS
  4773.  
  4774.           TRUE or NULL if error
  4775.  
  4776.         CAUTIONS and ADDITIONAL NOTES
  4777.  
  4778.           Output string length is limited to 254 bytes.
  4779.  
  4780.           Registered users can edit the wn_printf function and set the 
  4781.           limit to whatever they wish.
  4782.  
  4783.           Integer only for Microsoft 3.0 and Aztec.  This limitation 
  4784.           be overcome by using sprintf in conjunction with wn_printf.  
  4785.           For example:
  4786.  
  4787.                   char buf[256];
  4788.                        ..
  4789.                        ..
  4790.                   sprintf(buf,"%d %l %x\n", intval, longval, hexval);
  4791.                   wn_printf(wn, buf);
  4792.  
  4793.           Full support for all others.  
  4794.  
  4795.           The window "wn" automatically becomes the top window tile upon 
  4796.           return.
  4797.  
  4798.  
  4799.  
  4800.  
  4801.  
  4802.  
  4803.  
  4804.  
  4805.  
  4806.  
  4807.  
  4808.  
  4809.  
  4810.  
  4811.  
  4812.  
  4813.                                                            Page: 78
  4814.                                                      The Window BOSS
  4815.  
  4816.  
  4817.  
  4818.         11.16. wn_puts -- put string (high speed)
  4819.         11.17. wn_putc -- put character 
  4820.  
  4821.         USAGE
  4822.  
  4823.           wn_puts(wn, row, col, string)
  4824.           WINDOWPTR wn;
  4825.           int row, col;
  4826.           char *string;
  4827.  
  4828.           wn_putc(wn, row, col, c)
  4829.           WINDOWPTR wn;
  4830.           int row, col;
  4831.           char c;
  4832.              
  4833.                 wn -    window handle
  4834.                 row -   row to print the string at
  4835.                 col -   column to print the string at
  4836.                 string- the string to print
  4837.                 c -     the character to print
  4838.  
  4839.           Row and Col are relative to the origin of the window.
  4840.  
  4841.           The cursor is displayed only if wn_synflg has been called with 
  4842.           a value of TRUE.
  4843.  
  4844.         RETURNS
  4845.  
  4846.           TRUE or NULL if error
  4847.  
  4848.         CAUTIONS and ADDITIONAL NOTES
  4849.  
  4850.           wn_puts writes the string directly to the video ram. Tabs, line 
  4851.           feeds, carriage returns and other control characters are not 
  4852.           filtered or processed in any way.
  4853.  
  4854.           Range checks are not performed to insure the specified string 
  4855.           can be contained in the window.  
  4856.  
  4857.           The window "wn" automatically becomes the top window tile upon 
  4858.           return.
  4859.  
  4860.  
  4861.  
  4862.  
  4863.  
  4864.  
  4865.  
  4866.  
  4867.  
  4868.  
  4869.  
  4870.  
  4871.  
  4872.  
  4873.  
  4874.                                                            Page: 79
  4875.                                                      The Window BOSS
  4876.  
  4877.  
  4878.  
  4879.         11.18. wn_gets -- get string with validation
  4880.  
  4881.         USAGE
  4882.  
  4883.           (char *) wn_gets(wn, buf, va, uva)
  4884.           WINDOWPTR wn;
  4885.           char *buf;
  4886.           int va;
  4887.           char *uva;
  4888.  
  4889.                 wn -    window handle
  4890.                 buf -   user buffer for string
  4891.                 va -    input validation to be used
  4892.                 uva -   user validation list [optional]
  4893.  
  4894.           va specifies the type of input validation to be performed as 
  4895.           data is being entered. Options are:
  4896.  
  4897.                 (1) none                no restrictions - accept everything
  4898.                 (2) integer             accept: 0 thru 9 + -
  4899.                 (3) floating point      accept: 0 thru 9 + - .
  4900.                 (4) alpha only          accept: a thru z 
  4901.                                         (upper & lower case)
  4902.                 (5) upper case only     accept: A thru Z 
  4903.                 (6) validation list     accept: only those characters
  4904.                     (optional)                  specified via uva string.
  4905.  
  4906.                 ORing va with 0x8000 disables data entry character echo.
  4907.  
  4908.           The following editing functions are supported:
  4909.  
  4910.                 . backspace & rubout do the logical things
  4911.                 . ^U, ^X, and ^C wipe the field clean
  4912.                 . Return and Esc end the input function 
  4913.  
  4914.           Data entry takes place at the current logical cursor location. 
  4915.           You  can, of course, position the cursor to where you wish 
  4916.           prior to calling wn_gets.
  4917.  
  4918.           Example:
  4919.  
  4920.                 wn_printf(wn,"Enter your name > ");
  4921.                 wn_gets(wn,buf,4,0);
  4922.  
  4923.         RETURNS
  4924.  
  4925.           Pointer to buf or NULL if error
  4926.  
  4927.         CAUTIONS and ADDITIONAL NOTES
  4928.  
  4929.           The window "wn" automatically becomes the top window tile upon   
  4930.           return.  This function is provided for historical purposes, 
  4931.           more complete and flexible functions are included as part of 
  4932.           the Data Clerk.
  4933.  
  4934.  
  4935.                                                            Page: 80
  4936.                                                      The Window BOSS
  4937.  
  4938.  
  4939.  
  4940.         11.19. wn_putsa -- put string and attribute (high speed)
  4941.         11.20. wn_putca -- put character and attribute
  4942.  
  4943.         USAGE
  4944.  
  4945.           wn_putsa(wn, row, col, string, atrib)
  4946.           WINDOWPTR wn;
  4947.           int row, col;
  4948.           char *string;
  4949.           int atrib;
  4950.  
  4951.           wn_putca(wn, row, col, c, atrib)
  4952.           WINDOWPTR wn;
  4953.           int row, col;
  4954.           char c;
  4955.           int atrib;
  4956.  
  4957.                 wn -    window handle
  4958.                 row -   row to print the string at
  4959.                 col -   column to print the string at
  4960.                 string- the string to print
  4961.                 c -     the character to print
  4962.                 atrib - attribute to be used with string
  4963.  
  4964.           Row and Col are relative to the origin of the window.
  4965.  
  4966.           The cursor is displayed only if wn_synflg has been called with 
  4967.           a value of TRUE.
  4968.  
  4969.         RETURNS
  4970.  
  4971.           TRUE or NULL if error
  4972.  
  4973.         CAUTIONS and ADDITIONAL NOTES
  4974.  
  4975.           wn_puts writes the string directly to the video ram. Tabs, line 
  4976.           feeds, carriage returns and other control characters are not 
  4977.           filtered or processed in any way.
  4978.  
  4979.           Range checks are not performed to insure the specified string 
  4980.           can be contained in the window.  
  4981.  
  4982.           The window "wn" automatically becomes the top window tile upon 
  4983.           return.
  4984.  
  4985.  
  4986.  
  4987.  
  4988.  
  4989.  
  4990.  
  4991.  
  4992.  
  4993.  
  4994.  
  4995.  
  4996.                                                            Page: 81
  4997.                                                      The Window BOSS
  4998.  
  4999.  
  5000.  
  5001.         11.21. wn_insrow -- insert row in window
  5002.  
  5003.         USAGE
  5004.  
  5005.           wn_insrow(wn, row)
  5006.           WINDOWPTR wn;
  5007.           int row;
  5008.  
  5009.                 wn -  window handle
  5010.                 row - row at which a line is to be inserted
  5011.  
  5012.           Row is relative to the origin of the window.  All lines below 
  5013.           the row specified are scrolled down.  The currently defined 
  5014.           window attribute is used to clear the lines inserted.  
  5015.  
  5016.         RETURNS
  5017.  
  5018.           TRUE or NULL if error
  5019.  
  5020.         CAUTIONS and ADDITIONAL NOTES
  5021.  
  5022.           The window "wn" automatically becomes the top window tile upon 
  5023.           return.
  5024.  
  5025.  
  5026.  
  5027.         11.22. wn_delrow -- delete row from window
  5028.  
  5029.         USAGE
  5030.  
  5031.           wn_delrow(wn, row)
  5032.           WINDOWPTR wn;
  5033.           int row;
  5034.  
  5035.                 wn -  window handle
  5036.                 row - row at which a line is to be deleted
  5037.  
  5038.           Row is relative to the origin of the window.  All lines below 
  5039.           the row specified are scrolled up. The currently defined window 
  5040.           attribute is used to clear the lines inserted.  
  5041.  
  5042.         RETURNS
  5043.  
  5044.           TRUE or NULL if error
  5045.  
  5046.         CAUTIONS and ADDITIONAL NOTES
  5047.  
  5048.           The window "wn" automatically becomes the top window tile upon 
  5049.           return.
  5050.  
  5051.  
  5052.  
  5053.  
  5054.  
  5055.  
  5056.  
  5057.                                                            Page: 82
  5058.                                                      The Window BOSS
  5059.  
  5060.  
  5061.  
  5062.         11.23. wn_clr -- clear window
  5063.  
  5064.         USAGE
  5065.  
  5066.           wn_clr(wn)
  5067.           WINDOWPTR wn;
  5068.  
  5069.                 wn - window handle
  5070.  
  5071.           The window corresponding to wn is cleared (mini clear screen).  
  5072.           The currently defined window attribute is used to clear the 
  5073.           interior of the window.  
  5074.  
  5075.           The windows virtual cursor is homed.
  5076.  
  5077.         RETURNS
  5078.  
  5079.           TRUE or NULL if error
  5080.  
  5081.         CAUTIONS and ADDITIONAL NOTES
  5082.  
  5083.           The window "wn" automatically becomes the top window tile upon 
  5084.           return.
  5085.  
  5086.  
  5087.  
  5088.         11.24. wn_activate -- activate window
  5089.  
  5090.         USAGE
  5091.  
  5092.           wn_activate(wn)
  5093.           WINDOWPTR wn;
  5094.  
  5095.              wn - window handle
  5096.  
  5097.           Activate a previously opened window.  The window specified by 
  5098.           "wn" becomes the top window tile.
  5099.  
  5100.         RETURNS
  5101.  
  5102.           TRUE or NULL if error
  5103.  
  5104.         CAUTIONS and ADDITIONAL NOTES
  5105.  
  5106.           None.
  5107.  
  5108.  
  5109.  
  5110.  
  5111.  
  5112.  
  5113.  
  5114.  
  5115.  
  5116.  
  5117.  
  5118.                                                            Page: 83
  5119.                                                      The Window BOSS
  5120.  
  5121.  
  5122.  
  5123.         11.25. wn_color -- set window & border attribute
  5124.  
  5125.         USAGE
  5126.  
  5127.           wn_color(wn, atrib, batrib)
  5128.           WINDOWPTR wn;
  5129.           unsigned int atrib, batrib;
  5130.  
  5131.                 wn -    window handle
  5132.                 atrib - attribute to be used for the window
  5133.                 batrib- attribute to be used for the border
  5134.  
  5135.           wn_color sets the attribute to be used for all subsequent 
  5136.           operations in the window.  The attribute byte contains the 
  5137.           background specific data in the upper 4 bits and the foreground 
  5138.           specific data in the lower 4 bits.  Color and bit definitions 
  5139.           can be found in windows.h. You can use a statement of the form:
  5140.  
  5141.                          atrib = (bground << 4 | fground);
  5142.  
  5143.           to set the attribute to the correct format.  
  5144.  
  5145.           Attributes are defined in windows.h.
  5146.  
  5147.         RETURNS
  5148.  
  5149.           Nothing.
  5150.  
  5151.         CAUTIONS and ADDITIONAL NOTES
  5152.  
  5153.           None.
  5154.  
  5155.  
  5156.  
  5157.  
  5158.  
  5159.  
  5160.  
  5161.  
  5162.  
  5163.  
  5164.  
  5165.  
  5166.  
  5167.  
  5168.  
  5169.  
  5170.  
  5171.  
  5172.  
  5173.  
  5174.  
  5175.  
  5176.  
  5177.  
  5178.  
  5179.                                                            Page: 84
  5180.                                                      The Window BOSS
  5181.  
  5182.  
  5183.  
  5184.         11.26. wn_wrap -- set/clear line wrap flag
  5185.  
  5186.         USAGE
  5187.  
  5188.           wn_wrap(wn, flag) 
  5189.           WINDOWPTR wn;     
  5190.           int flag;
  5191.  
  5192.                 wn -   window handle
  5193.                 flag - wrap flag (TRUE or FALSE)
  5194.  
  5195.           Sets the line wrap flag for window functions.  If line wrap is 
  5196.           true, output that exceeds the width of a window is 
  5197.           automatically placed on the next line.  When the line wrap flag 
  5198.           is false, output that exceeds the width of the window is lost.  
  5199.  
  5200.         RETURNS
  5201.  
  5202.           Nothing.
  5203.  
  5204.         CAUTIONS and ADDITIONAL NOTES
  5205.  
  5206.           None.
  5207.  
  5208.  
  5209.  
  5210.         11.27. wn_sync -- set/clear cursor synchronization flag
  5211.  
  5212.         USAGE
  5213.  
  5214.           wn_sync(wn, flag) 
  5215.           WINDOWPTR wn;     
  5216.           int flag;
  5217.  
  5218.                 wn -   window handle
  5219.                 flag - synchronization flag (TRUE or FALSE)
  5220.  
  5221.           When wn_sync is called with a value of TRUE all subsequent text 
  5222.           output to the window will have a flashing (normal) cursor 
  5223.           displayed following the last character output. Calling wn_sync 
  5224.           with a value of false inhibits the cursor from physically 
  5225.           advancing (it is always logically advanced).  
  5226.  
  5227.         RETURNS
  5228.  
  5229.           Nothing.
  5230.  
  5231.         CAUTIONS and ADDITIONAL NOTES
  5232.  
  5233.           None.
  5234.  
  5235.  
  5236.  
  5237.  
  5238.  
  5239.  
  5240.                                                            Page: 85
  5241.                                                      The Window BOSS
  5242.  
  5243.  
  5244.  
  5245.         11.28. wn_scroll -- set scrolling method for window
  5246.  
  5247.         USAGE
  5248.  
  5249.           wn_scroll(wn,method)
  5250.           WINDOWPTR wn;
  5251.           int method;
  5252.  
  5253.                   wn -      window handle.
  5254.                   method -  BIOS or DMAS
  5255.  
  5256.            Set the method to be used to scroll the contents of the window 
  5257.            to use either the ROM BIOS (BIOS), or the flicker free DMA 
  5258.            logic.  BIOS and DMAS are defined in "windows.h".  
  5259.  
  5260.            The default scrolling mode is DMAS.
  5261.  
  5262.            The Window BOSS incorporates machine independent logic that 
  5263.            ensures that scrolling on color systems is performed in such a 
  5264.            way as to totally eliminate snow and flicker.  This logic, 
  5265.            although bulletproof, can slow scrolling down.  Setting the 
  5266.            scrolling method to BIOS provides a machine independent way to 
  5267.            improve the scrolling speed with a (perhaps) proportional 
  5268.            increase in flicker.  Keep in mind that recent developments in 
  5269.            CGA and EGA technology have, for the most part, eliminated 
  5270.            scrolling flicker at the hardware level.  If your system is 
  5271.            equipped with one of these boards, you may achieve a 
  5272.            noticeable improvement in scrolling speed by using wn_scroll() 
  5273.            to set the scrolling method to BIOS.  Additionally, there are 
  5274.            several console device drivers (FANSI and NANSI to mention 
  5275.            two) that "patch" the BIOS routines to achieve the same 
  5276.            result.  
  5277.  
  5278.            Setting the scrolling method to BIOS when wn_dmaflg=FALSE has 
  5279.            no effect.
  5280.  
  5281.         RETURNS
  5282.  
  5283.            Nothing.
  5284.  
  5285.         CAUTIONS and ADDITIONAL NOTES
  5286.  
  5287.            Color systems only.
  5288.  
  5289.  
  5290.  
  5291.  
  5292.  
  5293.  
  5294.  
  5295.  
  5296.  
  5297.  
  5298.  
  5299.  
  5300.  
  5301.                                                            Page: 86
  5302.                                                      The Window BOSS
  5303.  
  5304.  
  5305.  
  5306.         11.29. wn_dma -- set/clear write RAM directly flag
  5307.  
  5308.         USAGE
  5309.  
  5310.           wn_dma(flag)      
  5311.           int flag;         
  5312.  
  5313.                 flag - write to video RAM flag (TRUE or FALSE).
  5314.  
  5315.           The windowing routines assume that your video card supports 
  5316.           direct access to the video RAM (normal for monochrome 
  5317.           monitors).  
  5318.  
  5319.         RETURNS
  5320.  
  5321.           Nothing.
  5322.  
  5323.         CAUTIONS and ADDITIONAL NOTES
  5324.  
  5325.           None.
  5326.  
  5327.  
  5328.  
  5329.         11.30. wn_fixcsr -- update window cursor position
  5330.  
  5331.         USAGE
  5332.  
  5333.           wn_fixcsr(wn)     
  5334.           WINDOWPTR wn;     
  5335.  
  5336.                 wn - window handle
  5337.  
  5338.           wn_fixcsr is a companion routine to wn_sync.  Causes the 
  5339.           physical cursor to be placed at the logical cursor location.  
  5340.           It is typically called after wn_sync has been called to disable 
  5341.           cursor synchronization.  wn_fixcsr does not alter the state of 
  5342.           the windows cursor synchronization flag.  
  5343.  
  5344.         RETURNS
  5345.  
  5346.           TRUE or NULL if error
  5347.  
  5348.         CAUTIONS and ADDITIONAL NOTES
  5349.  
  5350.           The window "wn" automatically becomes the top window tile upon 
  5351.           return.
  5352.  
  5353.  
  5354.  
  5355.  
  5356.  
  5357.  
  5358.  
  5359.  
  5360.  
  5361.  
  5362.                                                            Page: 87
  5363.                                                      The Window BOSS
  5364.  
  5365.  
  5366.  
  5367.         11.31. wn_boxset -- set box drawing character set
  5368.  
  5369.         USAGE
  5370.  
  5371.           wn_boxset(ul, ur, tb, sd, ll, lr);
  5372.           int ul, ur, tb, sd, ll, lr;
  5373.  
  5374.             ul - upper left corner character
  5375.             ur - upper right corner character
  5376.             tb - top/bottom line character
  5377.             sd - left/right side character
  5378.             ll - lower left corner character
  5379.             lr - lower right corner character
  5380.  
  5381.           wn_boxset set the characters to be used to frame all future 
  5382.           windows.
  5383.  
  5384.         RETURNS
  5385.  
  5386.           Nothing.
  5387.  
  5388.         CAUTIONS and ADDITIONAL NOTES
  5389.  
  5390.           None.
  5391.  
  5392.  
  5393.  
  5394.         11.32. wn_natrib -- set new attribute in window NOW!
  5395.  
  5396.         USAGE
  5397.  
  5398.           wn_natrib(wn,atrib)
  5399.           WINDOWPTR wn;
  5400.           int atrib;
  5401.  
  5402.             wn    - window handle
  5403.             atrib - attribute to set the window specified by wn to.  
  5404.  
  5405.           The attributes of the window are changed immediately.
  5406.  
  5407.           Attributes are defined in window.h
  5408.  
  5409.           The border is not altered.
  5410.  
  5411.         RETURNS
  5412.  
  5413.           TRUE or NULL if error
  5414.  
  5415.         CAUTIONS and ADDITIONAL NOTES
  5416.  
  5417.           The window "wn" automatically becomes the top window tile upon 
  5418.           return.
  5419.  
  5420.  
  5421.  
  5422.  
  5423.                                                            Page: 88
  5424.                                                      The Window BOSS
  5425.  
  5426.  
  5427.  
  5428.         11.33. wn_dborder -- draw (replace) border on window
  5429.  
  5430.         USAGE
  5431.  
  5432.           wn_dborder(wn, ul, ur, tb, sd, ll, lr);
  5433.           WINDOWPTR wn;
  5434.           int ul, ur, tb, sd, ll, lr;
  5435.  
  5436.             wn - window handle
  5437.             ul - upper left corner character
  5438.             ur - upper right corner character
  5439.             tb - top/bottom line character
  5440.             sd - left/right side character
  5441.             ll - lower left corner character
  5442.             lr - lower right corner character
  5443.  
  5444.           The currently defined border attribute is used when drawing the 
  5445.           border.
  5446.  
  5447.         RETURNS
  5448.  
  5449.           TRUE or NULL if error
  5450.  
  5451.         CAUTIONS and ADDITIONAL NOTES
  5452.  
  5453.           The window "wn" automatically becomes the top window tile upon 
  5454.           return.
  5455.  
  5456.  
  5457.  
  5458.  
  5459.  
  5460.  
  5461.  
  5462.  
  5463.  
  5464.  
  5465.  
  5466.  
  5467.  
  5468.  
  5469.  
  5470.  
  5471.  
  5472.  
  5473.  
  5474.  
  5475.  
  5476.  
  5477.  
  5478.  
  5479.  
  5480.  
  5481.  
  5482.  
  5483.  
  5484.                                                            Page: 89
  5485.                                                      The Window BOSS
  5486.  
  5487.  
  5488.  
  5489.         11.34. wn_input -- general purpose window input
  5490.  
  5491.         USAGE
  5492.  
  5493.           wn_input(wn, row, col, prmpt, mask, fill, atrib, ubuff,hlpmsg)
  5494.           
  5495.              (WINDOWPTR) wn  - window pointer
  5496.              int        row  - row in window where prompt is displayed
  5497.              int        col  - col in window where prompt is displayed
  5498.              char *    prmpt - field prompt 
  5499.              char *    mask  - data entry mask
  5500.              char      fill  - fill character
  5501.              unsigned  atrib - attributes to be used 
  5502.                                (fground<<4 | background)
  5503.              char *    ubuff - user text buffer of MAXSTR size
  5504.              char *    hlpmsg- user help message - displayed
  5505.                                when HELP is pressed.  F1 is the default 
  5506.                                HELP key.  This can be changed by calling 
  5507.                                the wn_shkey() function.
  5508.             
  5509.              wn_input is the Data Clerk's kernel. It is called by  
  5510.              virtually all the higher level data entry functions.
  5511.           
  5512.         RETURNS:
  5513.           
  5514.              NULL if error, else non zero value (ASCII value of last 
  5515.              valid exit key).
  5516.  
  5517.              Sets the global "wns_escape" to TRUE if the ESCape key was 
  5518.              pressed causing wn_input to terminate. Set to FALSE 
  5519.              otherwise.
  5520.           
  5521.         CAUTIONS and ADDITIONAL NOTES:
  5522.           
  5523.              prmpt - If a prompt message is not to be provided, wn_input 
  5524.                      should be called with NSTR (null string) in  the 
  5525.                      place of the prompt message text pointer, for 
  5526.                      example:
  5527.           
  5528.                       wn_input(wn,row,col,NSTR,mask,fill,atrib,ubuff,hlpmsg)
  5529.                                           +--+
  5530.                      #defined in windows.h --^
  5531.           
  5532.                      The prompt is displayed with the current window 
  5533.                      attributes at the row and column specified in the 
  5534.                      call. Data entry begins immediately after the 
  5535.                      prompt.
  5536.  
  5537.  
  5538.  
  5539.  
  5540.  
  5541.  
  5542.  
  5543.  
  5544.  
  5545.                                                            Page: 90
  5546.                                                      The Window BOSS
  5547.  
  5548.  
  5549.  
  5550.         wn_input -- continued.
  5551.  
  5552.  
  5553.  
  5554.              mask -  The mask determines what type of data may be entered 
  5555.                      on a character by character basis.  The control 
  5556.                      characters are as follows:
  5557.           
  5558.                       # - Number (0 thru 9, -, +)
  5559.                       a - Any ASCII character 
  5560.                           (0x01 thru 0xff excluding 0x08)
  5561.                       x - Same as 'a', but without echo (password)
  5562.                       t - Any printable ASCII char (' ' thru '~')
  5563.                       l - lower case character (a thru z)
  5564.                       u - upper case character (A thru Z)
  5565.                       Mask Examples:
  5566.           
  5567.                        Date Mask           "##/##/##"
  5568.                        Time Mask           "##:##:##"
  5569.                        Integer Mask        "#######"
  5570.                        Float Mask          "FFFF.FF"
  5571.                        Phone Number        "(###) ###-####"
  5572.                        Upper Case Mask     "uuuuu" or "UUUUU"
  5573.                        Lower Case Mask     "lllll" or "LLLLL"
  5574.                        ASCII Mask          "aaaaa" or "AAAAA"
  5575.                        No Echo ASCII       "xxxxx" or "XXXXX"
  5576.                        Text Mask           "ttttt" or "TTTTT"
  5577.           
  5578.              fill -  The character to be used to fill the field where 
  5579.                      mask characters appear.  The typical choice for fill 
  5580.                      char is '_'.
  5581.           
  5582.              help  - If a HELP message is not to be provided, wn_input 
  5583.                      should be called with NSTR (null string) in the 
  5584.                      place of the help message text pointer, for example:
  5585.           
  5586.                       wn_input(wn,row,col,NSTR,mask,fill,atrib,ubuff,NSTR)
  5587.                                                                      +--+
  5588.                                                #defined in windows.h --^
  5589.                     
  5590.                      wn_ihmsg is called to display this message whenever 
  5591.                      the HELP key is depressed while the cursor is in the 
  5592.                      field.  F1 is the default HELP key.  This can be 
  5593.                      changed by calling the wn_shkey() function.
  5594.           
  5595.  
  5596.  
  5597.  
  5598.  
  5599.  
  5600.  
  5601.  
  5602.  
  5603.  
  5604.  
  5605.  
  5606.                                                            Page: 91
  5607.                                                      The Window BOSS
  5608.  
  5609.  
  5610.  
  5611.         wn_input -- continued.
  5612.  
  5613.  
  5614.  
  5615.              ubuff - Editing buffer.  Must be of sufficient size to hold 
  5616.                      the data as it is entered.  Typical size is the 
  5617.                      length of the mask + 2 bytes (strlen(mask)+2). 
  5618.                      Maximum length is MAXSTR.
  5619.           
  5620.                      On entry the first byte of ubuff should be a null, 
  5621.                      otherwise wn_input assumes there is valid data there 
  5622.                      and will enter edit mode.  This can be handy if 
  5623.                      there is a need for prefilled, but editable fields.  
  5624.                      In actual practice, wn_input uses this buffer for 
  5625.                      both initial character data entry and subsequent 
  5626.                      editing.
  5627.           
  5628.                      On return, ubuff contains the actual data entered in 
  5629.                      character format with fill and mask characters as 
  5630.                      spaces (e.g. "Now is the time          "). 
  5631.  
  5632.                      ubuff is returned left justified for non numeric 
  5633.                      masks.  If a completely numeric mask (#) was 
  5634.                      specified and the mask does not contain any other 
  5635.                      characters, ubuff is returned right justified.  
  5636.  
  5637.  
  5638.  
  5639.  
  5640.  
  5641.  
  5642.  
  5643.  
  5644.  
  5645.  
  5646.  
  5647.  
  5648.  
  5649.  
  5650.  
  5651.  
  5652.  
  5653.  
  5654.  
  5655.  
  5656.  
  5657.  
  5658.  
  5659.  
  5660.  
  5661.  
  5662.  
  5663.  
  5664.  
  5665.  
  5666.  
  5667.                                                            Page: 92
  5668.                                                      The Window BOSS
  5669.  
  5670.  
  5671.  
  5672.         wn_input -- continued.
  5673.  
  5674.  
  5675.  
  5676.              Editing Keys
  5677.  
  5678.                      Pressing the ESCape, RETURN/ENTER, UARROW, or DARROW 
  5679.                      key terminates input.  Since wn_input can be called 
  5680.                      alone, or from any of the custom data entry routines 
  5681.                      wn_gint, (wn_gfloat via wn_frmget), etc., wn_input 
  5682.                      must be able to exit in a variety of ways. If 
  5683.                      wn_input has been called as the result of a call to 
  5684.                      wn_frmget, the UARROW and DARROW keys move to the 
  5685.                      previous and next fields respectively.  The global 
  5686.                      wns_escape is set to TRUE if the ESCape key caused 
  5687.                      wn_input to terminate (set to FALSE otherwise).
  5688.  
  5689.                      Backspace and the cursor RIGHT ARROW and LEFT ARROW 
  5690.                      can be used to position the cursor during entry. The 
  5691.                      space bar can also be pressed when entering numeric 
  5692.                      fields provided that no "digits", "+", or "-" has 
  5693.                      been struck. Naturally, the HOME and END key work in 
  5694.                      a predictable fashion as do the INSert and DELete 
  5695.                      keys. The HOME key positions the cursor at the start 
  5696.                      of the field, END to end of the field.  The INSert 
  5697.                      key inserts a space at the current cursor position 
  5698.                      (pushing the contents of the field to the right.  
  5699.                      DELete deletes the character at the cursor location 
  5700.                      (dragging the contents of the field to the left).
  5701.           
  5702.                      When the field fills and RETURN/ENTER has not been 
  5703.                      struck, the cursor waits at the end of the field for 
  5704.                      RETURN/ENTER to be pressed.  You may also press 
  5705.                      Backspace, HOME, or LEFT ARROW - these allow the 
  5706.                      field to be edited again.
  5707.  
  5708.                      The cursor shape indicates whether or not data can 
  5709.                      be entered, or if you are beyond the fields edge.  
  5710.                      The cursor is half size (bottom half) when data can 
  5711.                      be entered, and half size (top half) when you are 
  5712.                      beyond the edge of the field.
  5713.           
  5714.                      BELLs automatically ring when you strike an invalid 
  5715.                      key or attempt to enter data beyond the edge of the 
  5716.                      field.  
  5717.  
  5718.  
  5719.  
  5720.  
  5721.  
  5722.  
  5723.  
  5724.  
  5725.  
  5726.  
  5727.  
  5728.                                                            Page: 93
  5729.                                                      The Window BOSS
  5730.  
  5731.  
  5732.  
  5733.         wn_input -- continued.
  5734.  
  5735.  
  5736.  
  5737.              Miscellaneous
  5738.           
  5739.                      Choose your fill character wisely, as you can not 
  5740.                      enter that character as data in a field.  
  5741.           
  5742.                      The data entry routines are pointer intensive. 
  5743.                      Failure to insure that they are called with 
  5744.                      arguments of the right type, size, and dimension 
  5745.                      will certainly cause undesired results.
  5746.  
  5747.  
  5748.  
  5749.  
  5750.  
  5751.  
  5752.  
  5753.  
  5754.  
  5755.  
  5756.  
  5757.  
  5758.  
  5759.  
  5760.  
  5761.  
  5762.  
  5763.  
  5764.  
  5765.  
  5766.  
  5767.  
  5768.  
  5769.  
  5770.  
  5771.  
  5772.  
  5773.  
  5774.  
  5775.  
  5776.  
  5777.  
  5778.  
  5779.  
  5780.  
  5781.  
  5782.  
  5783.  
  5784.  
  5785.  
  5786.  
  5787.  
  5788.  
  5789.                                                            Page: 94
  5790.                                                      The Window BOSS
  5791.  
  5792.  
  5793.  
  5794.         11.35. wn_frmopn -- open data entry form
  5795.  
  5796.         USAGE
  5797.  
  5798.           wn_frmopn(nfields)
  5799.           
  5800.              int     nfields - number of fields in form plus 1.
  5801.  
  5802.         RETURNS:
  5803.           
  5804.              Pointer to an array of field control blocks. (WIFORM)
  5805.           
  5806.                 or
  5807.           
  5808.              NULL if error (memory could not be allocated)
  5809.           
  5810.         CAUTIONS and ADDITIONAL NOTES:
  5811.           
  5812.              If wn_frmopn returns NULL, no attempt should be made to use 
  5813.              the data entry form in question.  NULL indicates that memory 
  5814.              could not be allocated for the form!
  5815.               
  5816.              This routine must be called before  wn_frmget and wn_frmcls.
  5817.  
  5818.              If your form contains 4 fields the call wn_frmopn as 
  5819.              follows:
  5820.  
  5821.                 WIFORM frm;
  5822.                   
  5823.                   frm = wn_frmopn(5);
  5824.  
  5825.              Fields are sequentially numbered starting from 0 ending at 
  5826.              nfields-2.  The extra field is used for internal purposes.
  5827.  
  5828.              Refer to "SAMPLE.C" for example(s) of usage.
  5829.  
  5830.  
  5831.  
  5832.  
  5833.  
  5834.  
  5835.  
  5836.  
  5837.  
  5838.  
  5839.  
  5840.  
  5841.  
  5842.  
  5843.  
  5844.  
  5845.  
  5846.  
  5847.  
  5848.  
  5849.  
  5850.                                                            Page: 95
  5851.                                                      The Window BOSS
  5852.  
  5853.  
  5854.  
  5855.         11.36. wn_frmget -- get (read) data entry form
  5856.  
  5857.         USAGE
  5858.  
  5859.           wn_frmget(frm)
  5860.           
  5861.              WIFORM   frm - valid field pointer.
  5862.           
  5863.         RETURNS:
  5864.           
  5865.              TRUE  - indicating all fields of the form in question have 
  5866.                      been fetched and verified (where required).
  5867.  
  5868.              ESC_CODE - indicating ESCape was pressed and form processing
  5869.                      was terminated.
  5870.           
  5871.                 or
  5872.           
  5873.              Never Returns!!
  5874.           
  5875.         CAUTIONS and ADDITIONAL NOTES:
  5876.           
  5877.              As provided, wn_frmget is very usable, however, you may wish 
  5878.              to modify it (source has been provided for this purpose) to 
  5879.              include some of your own custom forms or the way in which 
  5880.              forms are processed when completed. 
  5881.  
  5882.              As distributed, wn_frmget first displays all field prompts 
  5883.              and then positions to the first field, performs data entry 
  5884.              on a field by field basis from the first to the last 
  5885.              (allowing editing along the way), asks for a confirmation to 
  5886.              accept the fields on the form after the last field is 
  5887.              entered, either accepts the form, or drops into edit mode 
  5888.              for all the fields on the form starting at the first field.
  5889.  
  5890.              Refer to wn_input for a discussion of editing keys during 
  5891.              data entry.
  5892.           
  5893.              wn_frmget will not return unless ESCape is pressed or  all 
  5894.              data has been entered and verified (where required).
  5895.               
  5896.              This routine must be called after wn_frmopn, and before 
  5897.              wn_frmcls.
  5898.  
  5899.              Refer to "SAMPLE.C" for example(s) of usage.
  5900.  
  5901.  
  5902.  
  5903.  
  5904.  
  5905.  
  5906.  
  5907.  
  5908.  
  5909.  
  5910.  
  5911.                                                            Page: 96
  5912.                                                      The Window BOSS
  5913.  
  5914.  
  5915.  
  5916.         11.37. wn_frmcls -- close data entry form
  5917.  
  5918.         USAGE
  5919.  
  5920.              wn_frmcls(frm)
  5921.           
  5922.              (WIFORM) frm - pointer to an array of field control blocks
  5923.           
  5924.         RETURNS:
  5925.           
  5926.              TRUE 
  5927.           
  5928.         CAUTIONS and ADDITIONAL NOTES:
  5929.           
  5930.              This routine should only be called if memory is scarce or 
  5931.              there is no further need for the form you wish to close.  
  5932.              Once a form is closed, all traces of it vanish, the only way 
  5933.              to get it back is to start from scratch with wn_frmopn, 
  5934.              wn_frmget and so on.
  5935.  
  5936.              Closing a form has no impact on its visual image, just its 
  5937.              logical existence. If you wish to make a form vanish both 
  5938.              logically and visually - close the window it is anchored to 
  5939.              after, and only after, closing the form.
  5940.  
  5941.              In this release, a form is not automatically closed when the 
  5942.              window to which it is anchored is closed.  
  5943.  
  5944.              Refer to "SAMPLE.C" for example(s) of usage.
  5945.  
  5946.  
  5947.  
  5948.  
  5949.  
  5950.  
  5951.  
  5952.  
  5953.  
  5954.  
  5955.  
  5956.  
  5957.  
  5958.  
  5959.  
  5960.  
  5961.  
  5962.  
  5963.  
  5964.  
  5965.  
  5966.  
  5967.  
  5968.  
  5969.  
  5970.  
  5971.  
  5972.                                                            Page: 97
  5973.                                                      The Window BOSS
  5974.  
  5975.  
  5976.  
  5977.         11.38. wn_gdate - input date in window
  5978.  
  5979.         USAGE
  5980.  
  5981.           wn_gdate(fun,frm,fld,wn,row,col,prmpt,atrib,fill,month,day,year,
  5982.                    ubuff,hlpmsg,errmsg)
  5983.           
  5984.              int        fun - function code (SET || XEQ)
  5985.              (WIFORM)   frm - form pointer  (actual || NFRM)
  5986.              int        fld - field # in form (actual || NULL)
  5987.              (WINDOWPTR) wn - window pointer
  5988.              int        row - row in window where data input begins
  5989.              int        col - col in window where data input begins
  5990.              (char *) prmpt - field prompt (call with NSTR for none)
  5991.              unsigned atrib - field (not prompt) attributes 
  5992.              char      fill - field fill character
  5993.              (int *)  month - pointer to int for month (1-12)
  5994.              (int *)    day - pointer to int for day (1-31)
  5995.              (int *)   year - pointer to int for year (0-99)
  5996.              (char *) ubuff - pointer to char array of 10 bytes 
  5997.              (char *)hlpmsg - pointer to help message 
  5998.                               (call with NSTR for none)
  5999.              (char *)errmsg - pointer to err message
  6000.                               (call with NSTR for none)
  6001.           
  6002.         RETURNS:
  6003.           
  6004.              month, day, and year via pointers.
  6005.           
  6006.              NULL if error, else the non zero value returned from 
  6007.              wn_input.
  6008.  
  6009.              "wns_escape" is set to TRUE if the ESCape key caused 
  6010.              wn_input to terminate.  Set to FALSE otherwise.
  6011.           
  6012.         CAUTIONS and ADDITIONAL NOTES:
  6013.           
  6014.              fun - fun can only be SET for form setup, or XEQ for 
  6015.                    immediate execution.  When called with SET, valid 
  6016.                    arguments for both "frm" and "fld" must be specified.  
  6017.                    frm is the field pointer returned from wn_frmopn(), and 
  6018.                    fld is the field sequence number in the form for this 
  6019.                    field.  When called with XEQ frm must be NFRM and fld 
  6020.                    must be NFLD.
  6021.           
  6022.             ubuff - Editing buffer.  Must be of sufficient size to hold 
  6023.                    the data as it is entered.  Minimum size is 10.
  6024.           
  6025.  
  6026.  
  6027.  
  6028.  
  6029.  
  6030.  
  6031.  
  6032.  
  6033.                                                            Page: 98
  6034.                                                      The Window BOSS
  6035.  
  6036.  
  6037.  
  6038.         wn_gdate continued.
  6039.  
  6040.  
  6041.  
  6042.                    On entry, the first byte of ubuff should be a null, 
  6043.                    otherwise wn_input assumes there is valid data there 
  6044.                    and will enter edit mode.  This can be handy if there 
  6045.                    is a need for prefilled, but editable fields.  In 
  6046.                    actual practice, wn_input uses this buffer for both 
  6047.                    initial character data entry and subsequent editing.
  6048.  
  6049.                    On return, ubuff contains the actual data entered in 
  6050.                    character format with fill and mask characters as 
  6051.                    spaces (e.g. "12 12 88").
  6052.  
  6053.              Only basic reasonability checks are made.  Therefore, dates 
  6054.              like 02/31/88 can be returned.
  6055.           
  6056.              Calls wn_input to perform data entry.
  6057.           
  6058.              Data must satisfy validation checks for function to return.
  6059.  
  6060.              Refer to "SAMPLE.C" for example(s) of usage.
  6061.  
  6062.  
  6063.  
  6064.  
  6065.  
  6066.  
  6067.  
  6068.  
  6069.  
  6070.  
  6071.  
  6072.  
  6073.  
  6074.  
  6075.  
  6076.  
  6077.  
  6078.  
  6079.  
  6080.  
  6081.  
  6082.  
  6083.  
  6084.  
  6085.  
  6086.  
  6087.  
  6088.  
  6089.  
  6090.  
  6091.  
  6092.  
  6093.  
  6094.                                                            Page: 99
  6095.                                                      The Window BOSS
  6096.  
  6097.  
  6098.  
  6099.         11.39. wn_gtime -- input time in window
  6100.  
  6101.         USAGE
  6102.  
  6103.           wn_gtime(fun,frm,fld,wn,row,col,prmpt,atrib,fill,hrs,mins,
  6104.                    secs,ubuff,hlpmsg,errmsg)
  6105.           
  6106.              int        fun - function code (SET || XEQ)
  6107.              (WIFORM)   frm - form pointer  (actual || NFRM)
  6108.              int        fld - field # in form (actual || NFLD)
  6109.              (WINDOWPTR) wn - window pointer
  6110.              int        row - row in window where data input begins
  6111.              int        col - col in window where data input begins
  6112.              (char *) prmpt - field prompt (call with NSTR for none)
  6113.              unsigned atrib - field (not prompt) attributes 
  6114.              char      fill - field fill character
  6115.              (int *)    hrs - pointer to int for hours (0-24)
  6116.              (int *)   mins - pointer to int for minutes (0-59)
  6117.              (int *)   secs - pointer to int for seconds (0-59)
  6118.              (char *) ubuff - pointer to char array of 10 bytes 
  6119.              (char *)hlpmsg - pointer to help message 
  6120.                               (call with NSTR for none)
  6121.              (char *)errmsg - pointer to err message 
  6122.                               (call with NSTR for none)
  6123.           
  6124.         RETURNS:
  6125.           
  6126.              hrs, mins, and secs via pointers.
  6127.           
  6128.              NULL if error, else the non zero value returned from  
  6129.              wn_input.
  6130.           
  6131.              "wns_escape" is set to TRUE if the ESCape key caused 
  6132.              wn_input to terminate.  Set to FALSE otherwise.
  6133.  
  6134.         CAUTIONS and ADDITIONAL NOTES:
  6135.           
  6136.              fun - fun can only be SET for form setup, or XEQ for 
  6137.                    immediate execution.  When called with SET, valid 
  6138.                    arguments for both "frm" and "fld" must be specified.  
  6139.                    frm is the field pointer returned from wn_frmopn(), and 
  6140.                    fld is the field sequence number in the form for this 
  6141.                    field.  When called with XEQ frm must be NFRM and fld 
  6142.                    must be NFLD.
  6143.           
  6144.  
  6145.  
  6146.  
  6147.  
  6148.  
  6149.  
  6150.  
  6151.  
  6152.  
  6153.  
  6154.  
  6155.                                                            Page: 100
  6156.                                                      The Window BOSS
  6157.  
  6158.  
  6159.  
  6160.         wn_gtime - continued.
  6161.  
  6162.  
  6163.              
  6164.              ubuff - Editing buffer.  Must be of sufficient size to hold 
  6165.                    the data as it is entered.  Minimum size is 10.
  6166.           
  6167.                    On entry, the first byte of ubuff should be a null, 
  6168.                    otherwise wn_input assumes there is valid data there 
  6169.                    and will enter edit mode.  This can be handy if there 
  6170.                    is a need for prefilled, but editable fields.  In 
  6171.                    actual practice, wn_input uses this buffer for both 
  6172.                    initial character data entry and subsequent editing.
  6173.  
  6174.                     On return, ubuff contains the actual data entered in 
  6175.                     character format with fill and mask characters as 
  6176.                     spaces (e.g. "23 59 22").
  6177.           
  6178.              Only basic reasonability checks are made.  Therefore, times 
  6179.              like 24:59:59 can be returned.
  6180.           
  6181.              Calls wn_input to perform data entry.
  6182.           
  6183.              Data must satisfy validation checks for function to return.
  6184.  
  6185.              Refer to "SAMPLE.C" for example(s) of usage.
  6186.  
  6187.  
  6188.  
  6189.  
  6190.  
  6191.  
  6192.  
  6193.  
  6194.  
  6195.  
  6196.  
  6197.  
  6198.  
  6199.  
  6200.  
  6201.  
  6202.  
  6203.  
  6204.  
  6205.  
  6206.  
  6207.  
  6208.  
  6209.  
  6210.  
  6211.  
  6212.  
  6213.  
  6214.  
  6215.  
  6216.                                                            Page: 101
  6217.                                                      The Window BOSS
  6218.  
  6219.  
  6220.  
  6221.         11.40. wn_gphone -- input phone number in window
  6222.  
  6223.         USAGE
  6224.  
  6225.           wn_gphone(fun,frm,fld,wn,row,col,prmpt,atrib,fill,acode,
  6226.                     nnx,num,ubuff,hlpmsg,errmsg)
  6227.           
  6228.              int        fun - function code (SET || XEQ)
  6229.              (WIFORM)   frm - form pointer  (actual || NFRM)
  6230.              int        fld - field # in form (actual || NFLD)
  6231.              (WINDOWPTR) wn - window pointer
  6232.              int        row - row in window where data input begins
  6233.              int        col - col in window where data input begins
  6234.              (char *) prmpt - field prompt (call with NSTR for none)
  6235.              unsigned atrib - field (not prompt) attributes 
  6236.              char      fill - field fill character
  6237.              (int *)  acode - pointer to int for area code (3 digits)
  6238.              (int *)    nnx - pointer to int for nnx (3 digits)
  6239.              (int *)    num - pointer to int for number (4 digits)
  6240.              (char *) ubuff - pointer to char array of 18 bytes 
  6241.              (char *)hlpmsg - pointer to help message 
  6242.                               (call with NSTR for none)
  6243.              (char *)errmsg - pointer to err message 
  6244.                               (call with NSTR for none)
  6245.           
  6246.         RETURNS:
  6247.           
  6248.              acode, nnx, and num via pointers.
  6249.           
  6250.              NULL if error, else the non zero value returned from 
  6251.              wn_input.
  6252.                
  6253.              "wns_escape" is set to TRUE if the ESCape key caused 
  6254.              wn_input to terminate.  Set to FALSE otherwise.
  6255.  
  6256.         CAUTIONS and ADDITIONAL NOTES:
  6257.           
  6258.              fun - fun can only be SET for form setup, or XEQ for 
  6259.                    immediate execution.  When called with SET, valid 
  6260.                    arguments for both "frm" and "fld" must be specified.  
  6261.                    frm is the field pointer returned from wn_frmopn(), and 
  6262.                    fld is the field sequence number in the form for this 
  6263.                    field.  When called with XEQ frm must be NFRM and fld 
  6264.                    must be NFLD.
  6265.           
  6266.  
  6267.  
  6268.  
  6269.  
  6270.  
  6271.  
  6272.  
  6273.  
  6274.  
  6275.  
  6276.  
  6277.                                                            Page: 102
  6278.                                                      The Window BOSS
  6279.  
  6280.  
  6281.  
  6282.         wn_gphone - continued.  
  6283.  
  6284.  
  6285.  
  6286.              ubuff - Editing buffer.  Must be of sufficient size to hold 
  6287.                    the data as it is entered.  Minimum size is 18 bytes.
  6288.           
  6289.                    On entry, the first byte of ubuff should be a null, 
  6290.                    otherwise wn_input assumes there is valid data there 
  6291.                    and will enter edit mode.  This can be handy if there 
  6292.                    is a need for prefilled, but editable fields.  In 
  6293.                    actual practice, wn_input uses this buffer for both 
  6294.                    initial character data entry and subsequent editing.
  6295.  
  6296.                    On return, ubuff contains the actual data entered in 
  6297.                    character format with fill and mask characters as 
  6298.                    spaces (e.g. 800 555 1212).
  6299.           
  6300.             No validation is performed.
  6301.           
  6302.             Leaving the field blank returns 0 for ACODE, NNX, and NUM.
  6303.           
  6304.             Calls wn_input to perform data entry.
  6305.  
  6306.             Refer to "SAMPLE.C" for example(s) of usage.
  6307.  
  6308.  
  6309.  
  6310.  
  6311.  
  6312.  
  6313.  
  6314.  
  6315.  
  6316.  
  6317.  
  6318.  
  6319.  
  6320.  
  6321.  
  6322.  
  6323.  
  6324.  
  6325.  
  6326.  
  6327.  
  6328.  
  6329.  
  6330.  
  6331.  
  6332.  
  6333.  
  6334.  
  6335.  
  6336.  
  6337.  
  6338.                                                            Page: 103
  6339.                                                      The Window BOSS
  6340.  
  6341.  
  6342.  
  6343.         11.41. wn_gtext -- input text in window
  6344.         11.42. wn_gutext -- input upper case text in window
  6345.         11.43. wn_gltext -- input lower case text in window
  6346.         11.44. wn_gatext -- input text & graphics characters  
  6347.  
  6348.         USAGE
  6349.  
  6350.           wn_gtext(fun,frm,fld,wn,row,col,prmpt,atrib,fill,fwidth,
  6351.                    ubuff,hlpmsg,errmsg)
  6352.           wn_gutext(..same as wn_gtext)
  6353.           wn_gltext(..same as wn_gtext)
  6354.           wn_gatext(..same as wn_gtext)
  6355.  
  6356.              int        fun - function code (SET || XEQ)
  6357.              (WIFORM)   frm - form pointer  (actual || NFRM)
  6358.              int        fld - field # in form (actual || NFLD)
  6359.              (WINDOWPTR) wn - window pointer
  6360.              int        row - row in window where data input begins
  6361.              int        col - col in window where data input begins
  6362.              (char *) prmpt - field prompt (call with NSTR for none)
  6363.              unsigned atrib - field (not prompt) attributes 
  6364.              char      fill - field fill character
  6365.              int     fwidth - width of mask (maximum # of digits is MAXSTR)
  6366.              (char *) ubuff - pointer to char array of fwidth+2 bytes 
  6367.              (char *)hlpmsg - pointer to help message 
  6368.                               (call with NSTR for none)
  6369.              (char *)errmsg - pointer to err message 
  6370.                               (call with NSTR for none)
  6371.           
  6372.         RETURNS:
  6373.           
  6374.              ubuff with text data via pointer.
  6375.           
  6376.              NULL if error, else the non zero value returned from 
  6377.              wn_input.
  6378.           
  6379.              "wns_escape" is set to TRUE if the ESCape key caused 
  6380.              wn_input to terminate.  Set to FALSE otherwise.
  6381.  
  6382.         CAUTIONS and ADDITIONAL NOTES:
  6383.  
  6384.              wn_gatext - wn_gatext allows graphics characters to be input.  It 
  6385.                    is otherwise identical to wn_gtext.
  6386.              
  6387.              fun - fun can only be SET for form setup, or XEQ for 
  6388.                    immediate execution.  When called with SET, valid 
  6389.                    arguments for both "frm" and "fld" must be specified.  
  6390.                    frm is the field pointer returned from wn_frmopn(), and 
  6391.                    fld is the field sequence number in the form for this 
  6392.                    field.  When called with XEQ frm must be NFRM and fld 
  6393.                    must be NFLD.
  6394.           
  6395.  
  6396.  
  6397.  
  6398.  
  6399.                                                            Page: 104
  6400.                                                      The Window BOSS
  6401.  
  6402.  
  6403.  
  6404.         wn_gtext - continued.
  6405.  
  6406.  
  6407.  
  6408.              ubuff - Editing buffer.  Must be of sufficient size to hold 
  6409.                     the data as it is entered.  Minimum size is fwidth+2.
  6410.           
  6411.                     On entry, the first byte of ubuff should be a null, 
  6412.                     otherwise wn_input assumes there is valid data there 
  6413.                     and will enter edit mode.  This can be handy if there 
  6414.                     is a need for prefilled, but editable fields.  In 
  6415.                     actual practice, wn_input uses this buffer for both 
  6416.                     initial character data entry and subsequent editing.
  6417.  
  6418.                     On return, ubuff contains the actual data entered in 
  6419.                     character format with fill and mask characters as 
  6420.                     spaces (e.g. "This is a line of text ").
  6421.  
  6422.                     Case conversion is automatically performed when 
  6423.                     wn_gutext() or wn_gltext() are called.
  6424.           
  6425.             Calls wn_input to perform data entry.
  6426.           
  6427.             No validation is performed.
  6428.  
  6429.             Refer to "SAMPLE.C" for example(s) of usage.
  6430.  
  6431.  
  6432.  
  6433.  
  6434.  
  6435.  
  6436.  
  6437.  
  6438.  
  6439.  
  6440.  
  6441.  
  6442.  
  6443.  
  6444.  
  6445.  
  6446.  
  6447.  
  6448.  
  6449.  
  6450.  
  6451.  
  6452.  
  6453.  
  6454.  
  6455.  
  6456.  
  6457.  
  6458.  
  6459.  
  6460.                                                            Page: 105
  6461.                                                      The Window BOSS
  6462.  
  6463.  
  6464.  
  6465.         11.45. wn_gpword -- input password in window
  6466.  
  6467.         USAGE
  6468.  
  6469.           wn_gpword(fun,frm,fld,wn,row,col,prmpt,atrib,fill,fwidth,
  6470.                    ubuff,hlpmsg,errmsg)
  6471.           
  6472.              int        fun - function code (SET || XEQ)
  6473.              (WIFORM)   frm - form pointer  (actual || NFRM)
  6474.              int        fld - field # in form (actual || NFLD)
  6475.              (WINDOWPTR) wn - window pointer
  6476.              int        row - row in window where data input begins
  6477.              int        col - col in window where data input begins
  6478.              (char *) prmpt - field prompt (call with NSTR for none)
  6479.              unsigned atrib - field (not prompt) attributes 
  6480.              char      fill - field fill character
  6481.              int     fwidth - width of mask (maximum # of digits is MAXSTR)
  6482.              (char *) ubuff - pointer to char array of fwidth+2 bytes 
  6483.              (char *)hlpmsg - pointer to help message 
  6484.                               (call with NSTR for none)
  6485.              (char *)errmsg - pointer to err message 
  6486.                               (call with NSTR for none)
  6487.           
  6488.         RETURNS:
  6489.           
  6490.              ubuff with text data via pointer.
  6491.           
  6492.              NULL if error, else the non zero value returned from 
  6493.              wn_input.
  6494.           
  6495.              "wns_escape" is set to TRUE if the ESCape key caused 
  6496.              wn_input to terminate.  Set to FALSE otherwise.
  6497.  
  6498.         CAUTIONS and ADDITIONAL NOTES:
  6499.           
  6500.              fun - fun can only be SET for form setup, or XEQ for 
  6501.                    immediate execution.  When called with SET, valid 
  6502.                    arguments for both "frm" and "fld" must be specified.  
  6503.                    frm is the field pointer returned from wn_frmopn(), and 
  6504.                    fld is the field sequence number in the form for this 
  6505.                    field.  When called with XEQ frm must be NFRM and fld 
  6506.                    must be NFLD.
  6507.           
  6508.              ubuff - Editing buffer.  Must be of sufficient size to hold 
  6509.                    the data as it is entered.  Minimum size is fwidth+2.
  6510.           
  6511.                    On entry, the first byte of ubuff should be a null. 
  6512.                    Since this function is for PASSWORD entry, editing is 
  6513.                    not available. The contents of the edit buffer on 
  6514.                    entry is ignored.
  6515.  
  6516.  
  6517.  
  6518.  
  6519.  
  6520.  
  6521.                                                            Page: 106
  6522.                                                      The Window BOSS
  6523.  
  6524.  
  6525.  
  6526.         wn_gpword - continued.
  6527.  
  6528.  
  6529.  
  6530.                     On return, ubuff contains the actual data entered in 
  6531.                     character format with fill and mask characters as 
  6532.                     spaces (e.g. "This is a line of text ").
  6533.           
  6534.             Calls wn_input to perform data entry.
  6535.           
  6536.             No validation is performed. 
  6537.  
  6538.  
  6539.  
  6540.  
  6541.  
  6542.  
  6543.  
  6544.  
  6545.  
  6546.  
  6547.  
  6548.  
  6549.  
  6550.  
  6551.  
  6552.  
  6553.  
  6554.  
  6555.  
  6556.  
  6557.  
  6558.  
  6559.  
  6560.  
  6561.  
  6562.  
  6563.  
  6564.  
  6565.  
  6566.  
  6567.  
  6568.  
  6569.  
  6570.  
  6571.  
  6572.  
  6573.  
  6574.  
  6575.  
  6576.  
  6577.  
  6578.  
  6579.  
  6580.  
  6581.  
  6582.                                                            Page: 107
  6583.                                                      The Window BOSS
  6584.  
  6585.  
  6586.  
  6587.         11.46. wn_gint -- input integer in window
  6588.  
  6589.         USAGE
  6590.  
  6591.            wn_gint(fun,frm,fld,wn,row,col,prmpt,atrib,fill,value,
  6592.                    fwidth,low,high,ubuff,hlpmsg,errmsg)
  6593.           
  6594.               int        fun - function code (SET || XEQ)
  6595.               (WIFORM)   frm - form pointer  (actual || NFRM)
  6596.               int        fld - field # in form (actual || NFLD)
  6597.               (WINDOWPTR) wn - window pointer
  6598.               int        row - row in window where data input begins
  6599.               int        col - col in window where data input begins
  6600.               (char *) prmpt - field prompt (call with NSTR for none)
  6601.               unsigned atrib - field (not prompt) attributes 
  6602.               char      fill - field fill character
  6603.               (int *)  value - pointer to int for return value (low-high)
  6604.               int     fwidth - width of mask 
  6605.                                (maximum # of digits is 6 with sign)
  6606.               int        low - minimum value (lower limit of value)
  6607.               int       high - maximum value (upper limit of value)
  6608.               (char *) ubuff - pointer to char array of 10 bytes 
  6609.               (char *)hlpmsg - pointer to help message 
  6610.                                (call with NSTR for none)
  6611.               (char *)errmsg - pointer to err message 
  6612.                                (call with NSTR for none)
  6613.           
  6614.         RETURNS:
  6615.           
  6616.               value via pointer.
  6617.           
  6618.               NULL if error, else the non zero value returned from 
  6619.               wn_input.
  6620.           
  6621.               "wns_escape" is set to TRUE if the ESCape key caused 
  6622.               wn_input to terminate.  Set to FALSE otherwise.
  6623.  
  6624.         CAUTIONS and ADDITIONAL NOTES:
  6625.           
  6626.             fun -  fun can only be SET for form setup, or XEQ for 
  6627.                    immediate execution.  When called with SET, valid 
  6628.                    arguments for both "frm" and "fld" must be specified.  
  6629.                    frm is the field pointer returned from wn_frmopn(), and 
  6630.                    fld is the field sequence number in the form for this 
  6631.                    field.  When called with XEQ frm must be NFRM and fld 
  6632.                    must be NFLD.
  6633.           
  6634.  
  6635.  
  6636.  
  6637.  
  6638.  
  6639.  
  6640.  
  6641.  
  6642.  
  6643.                                                            Page: 108
  6644.                                                      The Window BOSS
  6645.  
  6646.  
  6647.  
  6648.         wn_gint - continued.  
  6649.  
  6650.  
  6651.  
  6652.             ubuff - Editing buffer.  Must be of sufficient size to hold 
  6653.                     the data as it is entered.  Minimum size is 10 bytes.
  6654.           
  6655.                     On entry, the first byte of ubuff should be a null, 
  6656.                     otherwise wn_input assumes there is valid data there 
  6657.                     and will enter edit mode.  This can be handy if there 
  6658.                     is a need for prefilled, but editable fields.  In 
  6659.                     actual practice, wn_input uses this buffer for both 
  6660.                     initial character data entry and subsequent editing.
  6661.  
  6662.                     On return, ubuff contains the actual data entered in 
  6663.                     character format with fill and mask characters as 
  6664.                     spaces.
  6665.           
  6666.             Calls wn_input to perform data entry.
  6667.           
  6668.             Data must satisfy validation checks for function to return.
  6669.           
  6670.             Calls wn_iemsg(errmsg) when validation fails.
  6671.  
  6672.             Refer to "SAMPLE.C" for example(s) of usage.
  6673.  
  6674.  
  6675.  
  6676.  
  6677.  
  6678.  
  6679.  
  6680.  
  6681.  
  6682.  
  6683.  
  6684.  
  6685.  
  6686.  
  6687.  
  6688.  
  6689.  
  6690.  
  6691.  
  6692.  
  6693.  
  6694.  
  6695.  
  6696.  
  6697.  
  6698.  
  6699.  
  6700.  
  6701.  
  6702.  
  6703.  
  6704.                                                            Page: 109
  6705.                                                      The Window BOSS
  6706.  
  6707.  
  6708.  
  6709.         11.47. wn_guint - input unsigned integer in window
  6710.  
  6711.         USAGE
  6712.  
  6713.            wn_guint(fun,frm,fld,wn,row,col,prmpt,atrib,fill,v,
  6714.                     fwidth,low,high,ubuff,hlpmsg,errmsg)
  6715.           
  6716.               int        fun - function code (SET || XEQ)
  6717.               (WIFORM)   frm - form pointer  (actual || NFRM)
  6718.               int        fld - field # in form (actual || NFLD)
  6719.               (WINDOWPTR)wn  - window pointer
  6720.               int        row - row in window where data input begins
  6721.               int        col - col in window where data input begins
  6722.               (char *) prmpt - field prompt (call with NSTR for none)
  6723.               unsigned atrib - field (not prompt) attributes 
  6724.               char      fill - field fill character
  6725.               (unsigned *) v - pointer to int for return value (low-high)
  6726.               int     fwidth - width of mask 
  6727.                                (maximum # of digits is 6 with sign)
  6728.               unsigned   low - minimum value (lower limit of value)
  6729.               unsigned  high - maximum value (upper limit of value)
  6730.               (char *) ubuff - pointer to char array of 10 bytes 
  6731.               (char *)hlpmsg - pointer to help message 
  6732.                                (call with NSTR for none)
  6733.               (char *)errmsg - pointer to err message 
  6734.                                (call with NSTR for none)
  6735.           
  6736.         RETURNS:
  6737.           
  6738.               v via pointer.
  6739.           
  6740.               NULL if error, else the non zero value returned from 
  6741.               wn_input.
  6742.           
  6743.               "wns_escape" is set to TRUE if the ESCape key caused 
  6744.               wn_input to terminate.  Set to FALSE otherwise.
  6745.  
  6746.         CAUTIONS and ADDITIONAL NOTES:
  6747.           
  6748.             fun -  fun can only be SET for form setup, or XEQ for 
  6749.                    immediate execution.  When called with SET, valid 
  6750.                    arguments for both "frm" and "fld" must be specified.  
  6751.                    frm is the field pointer returned from wn_frmopn(), and 
  6752.                    fld is the field sequence number in the form for this 
  6753.                    field.  When called with XEQ frm must be NFRM and fld 
  6754.                    must be NFLD.
  6755.           
  6756.  
  6757.  
  6758.  
  6759.  
  6760.  
  6761.  
  6762.  
  6763.  
  6764.  
  6765.                                                            Page: 110
  6766.                                                      The Window BOSS
  6767.  
  6768.  
  6769.  
  6770.         wn_guint - continued.
  6771.  
  6772.  
  6773.  
  6774.             ubuff - Editing buffer.  Must be of sufficient size to hold 
  6775.                    the data as it is entered.  Minimum size is 10 bytes.
  6776.  
  6777.                    On entry, the first byte of ubuff should be a null, 
  6778.                    otherwise wn_input assumes there is valid data there 
  6779.                    and will enter edit mode.  This can be handy if there 
  6780.                    is a need for prefilled, but editable fields.  In 
  6781.                    actual practice, wn_input uses this buffer for both 
  6782.                    initial character data entry and subsequent editing.
  6783.  
  6784.                    On return, ubuff contains the actual data entered in 
  6785.                    character format with fill and mask characters as 
  6786.                    spaces (e.g. "-24000").
  6787.           
  6788.             Calls wn_input to perform data entry.
  6789.           
  6790.             Data must satisfy validation checks for function to return.
  6791.           
  6792.             Calls wn_iemsg(errmsg) when validation fails.
  6793.  
  6794.             Refer to "SAMPLE.C" for example(s) of usage.
  6795.  
  6796.  
  6797.  
  6798.  
  6799.  
  6800.  
  6801.  
  6802.  
  6803.  
  6804.  
  6805.  
  6806.  
  6807.  
  6808.  
  6809.  
  6810.  
  6811.  
  6812.  
  6813.  
  6814.  
  6815.  
  6816.  
  6817.  
  6818.  
  6819.  
  6820.  
  6821.  
  6822.  
  6823.  
  6824.  
  6825.  
  6826.                                                            Page: 111
  6827.                                                      The Window BOSS
  6828.  
  6829.  
  6830.  
  6831.         11.48. wn_glong -- input long integer in window
  6832.  
  6833.         USAGE
  6834.  
  6835.            wn_glong(fun,frm,fld,wn,row,col,prmpt,atrib,fill,value,
  6836.                     fwidth,low,high,ubuff,hlpmsg,errmsg)
  6837.           
  6838.               int        fun - function code (SET || XEQ)
  6839.               (WIFORM)   frm - form pointer  (actual || NFRM)
  6840.               int        fld - field # in form (actual || NFLD)
  6841.               (WINDOWPTR) wn - window pointer
  6842.               int        row - row in window where data input begins
  6843.               int        col - col in window where data input begins
  6844.               (char *) prmpt - field prompt (call with NSTR for none)
  6845.               unsigned atrib - field (not prompt) attributes 
  6846.               char      fill - field fill character
  6847.               (long*)  value - pointer to long for return value (low-high)
  6848.               int     fwidth - width of mask 
  6849.                                (maximum # of digits is 10 with sign)
  6850.               long       low - minimum value (lower limit of value)
  6851.               long      high - maximum value (upper limit of value)
  6852.               (char *) ubuff - pointer to char array of fwidth+2 bytes 
  6853.               (char *)hlpmsg - pointer to help message 
  6854.                                (call with NSTR for none)
  6855.               (char *)errmsg - pointer to err message 
  6856.                                (call with NSTR for none)
  6857.           
  6858.         RETURNS:
  6859.           
  6860.               v via pointer.
  6861.           
  6862.               NULL if error, else the non zero value returned from 
  6863.               wn_input.
  6864.           
  6865.               "wns_escape" is set to TRUE if the ESCape key caused 
  6866.               wn_input to terminate.  Set to FALSE otherwise.
  6867.  
  6868.         CAUTIONS and ADDITIONAL NOTES:
  6869.           
  6870.             fun -  fun can only be SET for form setup, or XEQ for 
  6871.                    immediate execution.  When called with SET, valid 
  6872.                    arguments for both "frm" and "fld" must be specified.  
  6873.                    frm is the field pointer returned from wn_frmopn(), and 
  6874.                    fld is the field sequence number in the form for this 
  6875.                    field.  When called with XEQ frm must be NFRM and fld 
  6876.                    must be NFLD.
  6877.           
  6878.  
  6879.  
  6880.  
  6881.  
  6882.  
  6883.  
  6884.  
  6885.  
  6886.  
  6887.                                                            Page: 112
  6888.                                                      The Window BOSS
  6889.  
  6890.  
  6891.  
  6892.         wn_glong - continued.  
  6893.  
  6894.  
  6895.  
  6896.             ubuff - Editing buffer.  Must be of sufficient size to hold 
  6897.                    the data as it is entered.  Minimum size is fwidth+2.
  6898.           
  6899.                    On entry, the first byte of ubuff should be a null, 
  6900.                    otherwise wn_input assumes there is valid data there 
  6901.                    and will enter edit mode.  This can be handy if there 
  6902.                    is a need for prefilled, but editable fields.  In 
  6903.                    actual practice, wn_input uses this buffer for both 
  6904.                    initial character data entry and subsequent editing.
  6905.  
  6906.                    On return, ubuff contains the actual data entered in 
  6907.                    character format with fill and mask characters as 
  6908.                    spaces (e.g. "-24000").
  6909.           
  6910.             Calls wn_input to perform data entry.
  6911.           
  6912.             Data must satisfy validation checks for function to return.
  6913.           
  6914.             Calls wn_iemsg(errmsg) when validation fails.
  6915.  
  6916.             Refer to "SAMPLE.C" for example(s) of usage.
  6917.  
  6918.  
  6919.  
  6920.  
  6921.  
  6922.  
  6923.  
  6924.  
  6925.  
  6926.  
  6927.  
  6928.  
  6929.  
  6930.  
  6931.  
  6932.  
  6933.  
  6934.  
  6935.  
  6936.  
  6937.  
  6938.  
  6939.  
  6940.  
  6941.  
  6942.  
  6943.  
  6944.  
  6945.  
  6946.  
  6947.  
  6948.                                                            Page: 113
  6949.                                                      The Window BOSS
  6950.  
  6951.  
  6952.  
  6953.         11.49. wn_gulong -- input unsigned long integer in window
  6954.  
  6955.         USAGE
  6956.  
  6957.            wn_gulong(fun,frm,fld,wn,row,col,prmpt,atrib,fill,value,
  6958.                     fwidth,low,high,ubuff,hlpmsg,errmsg)
  6959.           
  6960.               int        fun - function code (SET || XEQ)
  6961.               (WIFORM)   frm - form pointer  (actual || NFRM)
  6962.               int        fld - field # in form (actual || NFLD)
  6963.               (WINDOWPTR) wn - window pointer
  6964.               int        row - row in window where data input begins
  6965.               int        col - col in window where data input begins
  6966.               (char *) prmpt - field prompt (call with NSTR for none)
  6967.               unsigned atrib - field (not prompt) attributes 
  6968.               char      fill - field fill character
  6969.               (unsigned long*) value - 
  6970.                                pointer to long for return value (low-high)
  6971.               int     fwidth - width of mask 
  6972.                                (maximum # of digits is 10 with sign)
  6973.               unsigned long low -
  6974.                                minimum value (lower limit of value)
  6975.               unsigned long high -
  6976.                                maximum value (upper limit of value)
  6977.               (char *) ubuff - pointer to char array of fwidth+2 bytes 
  6978.               (char *)hlpmsg - pointer to help message 
  6979.                                (call with NSTR for none)
  6980.               (char *)errmsg - pointer to err message 
  6981.                                (call with NSTR for none)
  6982.           
  6983.         RETURNS:
  6984.           
  6985.               v via pointer.
  6986.           
  6987.               NULL if error, else the non zero value returned from 
  6988.               wn_input.
  6989.           
  6990.               "wns_escape" is set to TRUE if the ESCape key caused 
  6991.               wn_input to terminate.  Set to FALSE otherwise.
  6992.  
  6993.         CAUTIONS and ADDITIONAL NOTES:
  6994.           
  6995.             fun -  fun can only be SET for form setup, or XEQ for 
  6996.                    immediate execution.  When called with SET, valid 
  6997.                    arguments for both "frm" and "fld" must be specified.  
  6998.                    frm is the field pointer returned from wn_frmopn(), and 
  6999.                    fld is the field sequence number in the form for this 
  7000.                    field.  When called with XEQ frm must be NFRM and fld 
  7001.                    must be NFLD.
  7002.  
  7003.  
  7004.  
  7005.  
  7006.  
  7007.  
  7008.  
  7009.                                                            Page: 114
  7010.                                                      The Window BOSS
  7011.  
  7012.  
  7013.  
  7014.         wn_gulong - continued.  
  7015.  
  7016.  
  7017.  
  7018.             ubuff - Editing buffer.  Must be of sufficient size to hold 
  7019.                    the data as it is entered.  Minimun size is fwidth+2.
  7020.           
  7021.                    On entry, the first byte of ubuff should be a null, 
  7022.                    otherwise wn_input assumes there is valid data there 
  7023.                    and will enter edit mode.  This can be handy if there 
  7024.                    is a need for prefilled, but editable fields.  In 
  7025.                    actual practice, wn_input uses this buffer for both 
  7026.                    initial character data entry and subsequent editing.
  7027.                    On return, ubuff contains the actual data entered in 
  7028.                    character format with fill and mask characters as 
  7029.                    spaces (e.g. "-24000").
  7030.           
  7031.             Calls wn_input to perform data entry.
  7032.           
  7033.             Data must satisfy validation checks for function to return.
  7034.           
  7035.             Calls wn_iemsg(errmsg) when validation fails.
  7036.  
  7037.  
  7038.  
  7039.  
  7040.  
  7041.  
  7042.  
  7043.  
  7044.  
  7045.  
  7046.  
  7047.  
  7048.  
  7049.  
  7050.  
  7051.  
  7052.  
  7053.  
  7054.  
  7055.  
  7056.  
  7057.  
  7058.  
  7059.  
  7060.  
  7061.  
  7062.  
  7063.  
  7064.  
  7065.  
  7066.  
  7067.  
  7068.  
  7069.  
  7070.                                                            Page: 115
  7071.                                                      The Window BOSS
  7072.  
  7073.  
  7074.  
  7075.         11.50. wn_gfloat -- input float in window
  7076.  
  7077.         USAGE
  7078.  
  7079.            wn_gfloat(fun,frm,fld,wn,row,col,prmpt,atrib,fill,v,
  7080.                      fwidth,ndec,low,high,ubuff,hlpmsg,errmsg)
  7081.           
  7082.               int        fun - function code (SET || XEQ)
  7083.               (WIFORM)   frm - form pointer  (actual || NFRM)
  7084.               int        fld - field # in form (actual || NFLD)
  7085.               (WINDOWPTR) wn - window pointer
  7086.               int        row - row in window where data input begins
  7087.               int        col - col in window where data input begins
  7088.               (char *) prmpt - field prompt (call with NSTR for none)
  7089.               unsigned atrib - field (not prompt) attributes 
  7090.               char      fill - field fill character
  7091.               (float  *)   v - pointer to float for return value
  7092.               int     fwidth - width of mask 
  7093.                                (maximum # of digits is 20 with sign)
  7094.               int       ndec - # of decimal places 
  7095.               float      low - minimum value (lower limit of value)
  7096.               float     high - maximum value (upper limit of value)
  7097.               (char *) ubuff - pointer to char array of fwidth+2 bytes 
  7098.               (char *)hlpmsg - pointer to help message 
  7099.                                (call with NSTR for none)
  7100.               (char *)errmsg - pointer to err message 
  7101.                                (call with NSTR for none)
  7102.           
  7103.         RETURNS:
  7104.           
  7105.               v via pointer.
  7106.           
  7107.               NULL if error, else the non zero value returned from 
  7108.               wn_input.
  7109.           
  7110.               "wns_escape" is set to TRUE if the ESCape key caused 
  7111.               wn_input to terminate.  Set to FALSE otherwise.
  7112.  
  7113.         CAUTIONS and ADDITIONAL NOTES:
  7114.           
  7115.             fun -  fun can only be SET for form setup, or XEQ for 
  7116.                    immediate execution.  When called with SET, valid 
  7117.                    arguments for both "frm" and "fld" must be specified.  
  7118.                    frm is the field pointer returned from wn_frmopn(), and 
  7119.                    fld is the field sequence number in the form for this 
  7120.                    field.  When called with XEQ frm must be NFRM and fld 
  7121.                    must be NFLD.
  7122.           
  7123.             ubuff - Editing buffer.  Must be of sufficient size to hold 
  7124.                    the data as it is entered.  Minimum size is fwidth+2. 
  7125.           
  7126.  
  7127.  
  7128.  
  7129.  
  7130.  
  7131.                                                            Page: 116
  7132.                                                      The Window BOSS
  7133.  
  7134.  
  7135.  
  7136.         wn_gfloat - continued.
  7137.  
  7138.  
  7139.                     
  7140.                    On entry, the first byte of ubuff should be a null, 
  7141.                    otherwise wn_input assumes there is valid data there 
  7142.                    and will enter edit mode.  This can be handy if there 
  7143.                    is a need for prefilled, but editable fields.  In 
  7144.                    actual practice, wn_input uses this buffer for both 
  7145.                    initial character data entry and subsequent editing.
  7146.  
  7147.                    On return, ubuff contains the actual data entered in 
  7148.                    character format with fill and mask characters as 
  7149.                    spaces (e.g. "   -1240.20").
  7150.           
  7151.             Calls wn_input to perform data entry.
  7152.           
  7153.             Data must satisfy validation checks for function to return.
  7154.           
  7155.             Calls wn_iemsg(errmsg) when validation fails.
  7156.  
  7157.             Refer to "SAMPLE.C" for example(s) of usage.
  7158.  
  7159.             WN_GFLOAT.C is provided in source form.
  7160.  
  7161.  
  7162.  
  7163.  
  7164.  
  7165.  
  7166.  
  7167.  
  7168.  
  7169.  
  7170.  
  7171.  
  7172.  
  7173.  
  7174.  
  7175.  
  7176.  
  7177.  
  7178.  
  7179.  
  7180.  
  7181.  
  7182.  
  7183.  
  7184.  
  7185.  
  7186.  
  7187.  
  7188.  
  7189.  
  7190.  
  7191.  
  7192.                                                            Page: 117
  7193.                                                      The Window BOSS
  7194.  
  7195.  
  7196.  
  7197.         11.51. wn_gdouble -- input double in window
  7198.  
  7199.         USAGE
  7200.  
  7201.            wn_gdouble(fun,frm,fld,wn,row,col,prmpt,atrib,fill,v,
  7202.                      fwidth,ndec,low,high,ubuff,hlpmsg,errmsg)
  7203.           
  7204.               int        fun - function code (SET || XEQ)
  7205.               (WIFORM)   frm - form pointer  (actual || NFRM)
  7206.               int        fld - field # in form (actual || NFLD)
  7207.               (WINDOWPTR) wn - window pointer
  7208.               int        row - row in window where data input begins
  7209.               int        col - col in window where data input begins
  7210.               (char *) prmpt - field prompt (call with NSTR for none)
  7211.               unsigned atrib - field (not prompt) attributes 
  7212.               char      fill - field fill character
  7213.               (double *)   v - pointer to float for return value
  7214.               int     fwidth - width of mask 
  7215.                                (maximum # of digits is 20 with sign)
  7216.               int       ndec - # of decimal places 
  7217.               double     low - minimum value (lower limit of value)
  7218.               double    high - maximum value (upper limit of value)
  7219.               (char *) ubuff - pointer to char array of fwidth+2 bytes 
  7220.               (char *)hlpmsg - pointer to help message 
  7221.                                (call with NSTR for none)
  7222.               (char *)errmsg - pointer to err message 
  7223.                                (call with NSTR for none)
  7224.           
  7225.         RETURNS:
  7226.           
  7227.               v via pointer.
  7228.           
  7229.               NULL if error, else the non zero value returned from 
  7230.               wn_input.
  7231.           
  7232.               "wns_escape" is set to TRUE if the ESCape key caused  
  7233.               wn_input to terminate.  Set to FALSE otherwise.
  7234.  
  7235.         CAUTIONS AND ADDITIONAL NOTES:
  7236.                       
  7237.               fun - fun can only be SET for form setup, or XEQ for 
  7238.                    immediate execution.  When called with SET, valid 
  7239.                    arguments for both "frm" and "fld" must be specified.  
  7240.                    frm is the field pointer returned from wn_frmopn(), 
  7241.                    and fld is the field sequence number in the form for 
  7242.                    this field.  When called with XEQ frm must be NFRM and 
  7243.                    fld must be NFLD.
  7244.                       
  7245.               ubuff - Editing buffer.  Must be of sufficient size to hold 
  7246.                    the data as it is entered.  Minimum size is fwidth+2. 
  7247.                       
  7248.  
  7249.  
  7250.  
  7251.  
  7252.  
  7253.                                                            Page: 118
  7254.                                                      The Window BOSS
  7255.  
  7256.  
  7257.  
  7258.                     wn_gdouble - continued.
  7259.  
  7260.  
  7261.                       
  7262.                    On entry, the first byte of ubuff should be a null, 
  7263.                    otherwise wn_input assumes there is valid data there 
  7264.                    and will enter edit mode.  This can be handy if there 
  7265.                    is a need for prefilled, but editable fields.  In 
  7266.                    actual practice, wn_input uses this buffer for both 
  7267.                    initial character data entry and subsequent editing.
  7268.  
  7269.                    On return, ubuff contains the actual data entered in 
  7270.                    character format with fill and mask characters as 
  7271.                    spaces (e.g. "   -1240.20").
  7272.                       
  7273.                         Calls wn_input to perform data entry.
  7274.                       
  7275.                    Data must satisfy validation checks for function to 
  7276.                    return.
  7277.                       
  7278.                    Calls wn_iemsg(errmsg) when validation fails.
  7279.  
  7280.  
  7281.  
  7282.  
  7283.  
  7284.  
  7285.  
  7286.  
  7287.  
  7288.  
  7289.  
  7290.  
  7291.  
  7292.  
  7293.  
  7294.  
  7295.  
  7296.  
  7297.  
  7298.  
  7299.  
  7300.  
  7301.  
  7302.  
  7303.  
  7304.  
  7305.  
  7306.  
  7307.  
  7308.  
  7309.  
  7310.  
  7311.  
  7312.  
  7313.  
  7314.                                                            Page: 119
  7315.                                                      The Window BOSS
  7316.  
  7317.  
  7318.  
  7319.         11.52. wn_gbool -- input logical in window
  7320.  
  7321.         USAGE
  7322.  
  7323.           wn_gbool(fun,frm,fld,wn,row,col,prmpt,atrib,fill,value,
  7324.                    ubuff,hlpmsg,errmsg)
  7325.                       
  7326.               int        fun - function code (SET || XEQ)
  7327.               (WIFORM)   frm - form pointer  (actual || NFRM)
  7328.               int        fld - field # in form (actual || NFLD)
  7329.               (WINDOWPTR) wn - window pointer
  7330.               int        row - row in window where data input begins
  7331.               int        col - col in window where data input begins
  7332.               (char *) prmpt - field prompt (call with NSTR for none)
  7333.               unsigned atrib - field (not prompt) attributes 
  7334.               char      fill - field fill character
  7335.               (int *)  value - pointer to int for value (0=FALSE, 1=TRUE)
  7336.               (char *) ubuff - pointer to char array of 3 bytes 
  7337.               (char *)hlpmsg - pointer to help message 
  7338.                                (call with NSTR for none)
  7339.               (char *)errmsg - pointer to err message 
  7340.                                (call with NSTR for none)
  7341.           
  7342.         RETURNS:
  7343.           
  7344.               value via pointer (0=FALSE, 1=TRUE)
  7345.           
  7346.               NULL if error, else the non zero value returned from 
  7347.               wn_input.
  7348.           
  7349.               "wns_escape" is set to TRUE if the ESCape key caused 
  7350.               wn_input to terminate.  Set to FALSE otherwise.
  7351.  
  7352.         CAUTIONS and ADDITIONAL NOTES:
  7353.           
  7354.             fun -  fun can only be SET for form setup, or XEQ for 
  7355.                    immediate execution.  When called with SET, valid 
  7356.                    arguments for both "frm" and "fld" must be specified.  
  7357.                    frm is the field pointer returned from wn_frmopn(), and 
  7358.                    fld is the field sequence number in the form for this 
  7359.                    field.  When called with XEQ frm must be NFRM and fld 
  7360.                    must be NFLD.
  7361.           
  7362.             ubuff - Editing buffer.  Must be of sufficient size to hold 
  7363.                    the data as it is entered.  Minimum size is 3 bytes.f
  7364.           
  7365.                    On entry, the first byte of ubuff should be a null, 
  7366.                    otherwise wn_input assumes there is valid data there 
  7367.                    and will enter edit mode.  This can be handy if there 
  7368.                    is a need for prefilled, but editable fields.  In 
  7369.                    actual practice, wn_input uses this buffer for both 
  7370.                    initial character data entry and subsequent editing.
  7371.  
  7372.  
  7373.  
  7374.  
  7375.                                                            Page: 120
  7376.                                                      The Window BOSS
  7377.  
  7378.  
  7379.  
  7380.         wn_gbool - continued.
  7381.  
  7382.  
  7383.  
  7384.                    On return, ubuff contains the actual data entered in 
  7385.                    character format with fill and mask characters as 
  7386.                    spaces (e.g. "T").
  7387.           
  7388.             Calls wn_input to perform data entry.
  7389.           
  7390.             User MUST enter T,F,Y, or N.
  7391.           
  7392.             Data must satisfy validation checks for function to return.
  7393.           
  7394.             Calls wn_iemsg(errmsg) when validation fails.
  7395.           
  7396.             Refer to "SAMPLE.C" for example(s) of usage.
  7397.  
  7398.  
  7399.  
  7400.  
  7401.  
  7402.  
  7403.  
  7404.  
  7405.  
  7406.  
  7407.  
  7408.  
  7409.  
  7410.  
  7411.  
  7412.  
  7413.  
  7414.  
  7415.  
  7416.  
  7417.  
  7418.  
  7419.  
  7420.  
  7421.  
  7422.  
  7423.  
  7424.  
  7425.  
  7426.  
  7427.  
  7428.  
  7429.  
  7430.  
  7431.  
  7432.  
  7433.  
  7434.  
  7435.  
  7436.                                                            Page: 121
  7437.                                                      The Window BOSS
  7438.  
  7439.  
  7440.  
  7441.         11.53. wn_dtext -- display text on input form
  7442.  
  7443.         USAGE
  7444.  
  7445.            wn_dtext(fun,frm,fld,wn,row,col,prmpt)
  7446.           
  7447.               int        fun - function code (SET || XEQ)
  7448.               (WIFORM)   frm - form pointer  (actual || NFRM)
  7449.               int        fld - field # in form (actual || NFLD)
  7450.               (WINDOWPTR) wn - window pointer
  7451.               int        row - row in window where data input begins
  7452.               int        col - col in window where data input begins
  7453.               (char *) prmpt - field prompt (call with NSTR for none)
  7454.           
  7455.         RETURNS:
  7456.           
  7457.               TRUE if fun==SET 
  7458.           
  7459.                or
  7460.           
  7461.               Normal return value of wn_puts if fun==XEQ
  7462.           
  7463.         CAUTIONS and ADDITIONAL NOTES:
  7464.           
  7465.             fun -  fun can only be SET for form setup, or XEQ for 
  7466.                    immediate execution.  When called with SET, valid 
  7467.                    arguments for both "frm" and "fld" must be specified.  
  7468.                    frm is the field pointer returned from wn_frmopn(), and 
  7469.                    fld is the field sequence number in the form for this 
  7470.                    field.  When called with XEQ frm must be NFRM and fld 
  7471.                    must be NFLD.
  7472.  
  7473.             Refer to "SAMPLE.C" for example(s) of usage.
  7474.  
  7475.  
  7476.  
  7477.  
  7478.  
  7479.  
  7480.  
  7481.  
  7482.  
  7483.  
  7484.  
  7485.  
  7486.  
  7487.  
  7488.  
  7489.  
  7490.  
  7491.  
  7492.  
  7493.  
  7494.  
  7495.  
  7496.  
  7497.                                                            Page: 122
  7498.                                                      The Window BOSS
  7499.  
  7500.  
  7501.  
  7502.         11.54. wn_iemsg -- display input error message
  7503.  
  7504.         USAGE
  7505.  
  7506.            wn_iemsg(msg)
  7507.           
  7508.               (char *)   msg - pointer to message to be displayed.
  7509.           
  7510.         RETURNS:
  7511.           
  7512.               NULL if error, else TRUE
  7513.           
  7514.         CAUTIONS and ADDITIONAL NOTES:
  7515.           
  7516.             This routine should be modified or replaced with code to suit 
  7517.             your application's specific needs.  It hooks to wn_g???? 
  7518.             such that whenever the field validation fails wn_g???? calls 
  7519.             wn_iemsg to display an error message for the field in 
  7520.             question.  The hooks in wn_g????? are of the form:
  7521.           
  7522.                 if(validation failed) wn_iemsg(msg);
  7523.           
  7524.             This routine displays a single line of text on the 25th line 
  7525.             and waits for a key to be struck before returning to accept 
  7526.             new data for the field in question.
  7527.           
  7528.             The error message can be a maximum of 80 characters, and must 
  7529.             not contain any formatting directives (\n\t...).
  7530.           
  7531.             Some wn_g???? functions (i.e. wn_gtext) have no provision to 
  7532.             validate data and therefore never attempt to call this 
  7533.             routine.
  7534.  
  7535.             WN_IEMSG.C is provided in source form.
  7536.  
  7537.  
  7538.  
  7539.  
  7540.  
  7541.  
  7542.  
  7543.  
  7544.  
  7545.  
  7546.  
  7547.  
  7548.  
  7549.  
  7550.  
  7551.  
  7552.  
  7553.  
  7554.  
  7555.  
  7556.  
  7557.  
  7558.                                                            Page: 123
  7559.                                                      The Window BOSS
  7560.  
  7561.  
  7562.  
  7563.         11.55. wn_ihmsg -- display input help message
  7564.           
  7565.         USAGE
  7566.           
  7567.            wn_ihmsg(msg)
  7568.           
  7569.               (char *)   msg - pointer to message to be displayed.
  7570.           
  7571.         RETURNS:
  7572.           
  7573.             NULL if error, else TRUE
  7574.           
  7575.         CAUTIONS and ADDITIONAL NOTES:
  7576.           
  7577.             This routine should be modified or replaced with code to suit 
  7578.             your application's specific needs.  It hooks to wn_input 
  7579.             such that whenever the HELP key is pressed wn_input calls 
  7580.             wn_ihmsg to display a help message for the field in question.  
  7581.             The hooks in wn_input are of the form:
  7582.           
  7583.                 if(key_struck == HELP) wn_ihmsg(msg);
  7584.           
  7585.             The F1 key is the default HELP key.  This can be changed by 
  7586.             calling the wns_shkey() function.
  7587.  
  7588.             This routine displays a single line of help on the 25th line 
  7589.             and waits for a key to be struck before returning.
  7590.           
  7591.             The help message can be a maximum of 80 characters, and must 
  7592.             not contain any formatting directives (\n\t...).
  7593.  
  7594.             WN_IHMSG is provided in source form.
  7595.  
  7596.  
  7597.         11.56. wn_shkey -- set HELP key code
  7598.  
  7599.         USAGE
  7600.  
  7601.             wn_shkey(code)
  7602.             unsigned int code;
  7603.  
  7604.               code - scancode of the key to be defined as the HELP key.
  7605.  
  7606.             F1 is the default HELP key.  The scancode for F1 is 0x3B00.              
  7607.  
  7608.         RETURNS
  7609.  
  7610.              Nothing.
  7611.  
  7612.         CAUTIONS and ADDITIONAL NOTES:
  7613.  
  7614.              SCANCODE.C can be used to determine the scancodes for any 
  7615.              and all keys.
  7616.  
  7617.  
  7618.  
  7619.                                                            Page: 124
  7620.                                                      The Window BOSS
  7621.  
  7622.  
  7623.  
  7624.         11.57. wn_popup -- display and act on popup menu
  7625.  
  7626.         USAGE
  7627.  
  7628.           wn_popup(page,row,col,width,height,atrib,batrib,mx,cflag)
  7629.           int page, row, col, width, height, cflag;
  7630.           unsigned int atrib, batrib;
  7631.           struct pmenu *mx;
  7632.  
  7633.              page -    video page (Always 0)
  7634.              row  -    row of origin 
  7635.              col  -    col of origin 
  7636.              width -   width (inside dimension)
  7637.              height -  height (inside dimension)
  7638.              atrib -   window attribute
  7639.              batrib -  border attribute
  7640.              mx -      pointer to menu structure
  7641.              cflag -   close on return flag (FALSE to leave open)
  7642.  
  7643.           The pmenu structure is defined in "windows.h" (replicated here 
  7644.           for clarity) and must be initialized prior to calling wn_popup.
  7645.  
  7646.           struct mitem {              /* POPUP menu item template */
  7647.             int r;                    /* row */
  7648.             int c;                    /* col */
  7649.             char *t;                  /* text */
  7650.             int rv;                   /* return value */
  7651.           };
  7652.  
  7653.           struct pmenu {              /* POPUP menu structure */
  7654.             WINDOWPTR wpsave;         /* place to hold window id */
  7655.             int winopn;               /* leave window open flag */
  7656.             int lndx;                 /* last index */
  7657.             int fm;                   /* first menu item index */
  7658.             int lm;                   /* last menu item index */
  7659.             struct mitem scrn[WN_MXROWS*4]; /* a bunch of menu items */
  7660.           };                          /* NOTE RELATIVE LIMIT */
  7661.  
  7662.         RETURNS:
  7663.  
  7664.           The return code for the menu item selected or 99 if ESCape is 
  7665.           pressed.
  7666.  
  7667.         CAUTIONS and ADDITIONAL NOTES:
  7668.  
  7669.           None.
  7670.  
  7671.         SEE ALSO
  7672.  
  7673.           Popup menu basics.
  7674.  
  7675.  
  7676.  
  7677.  
  7678.  
  7679.  
  7680.                                                            Page: 125
  7681.                                                      The Window BOSS
  7682.  
  7683.  
  7684.  
  7685.         11.58. wn_qpopup -- display quick popup window
  7686.  
  7687.         USAGE
  7688.  
  7689.           WINDOPTR wn_qpopup(page,row,col,width,height,atrib,batrib,mx)
  7690.           int page, row, col, width, height, cflag;
  7691.           unsigned int atrib, batrib;
  7692.           struct pmenu *mx;
  7693.  
  7694.              page -    video page (Always 0)
  7695.              row  -    row of origin (0 to WN_MAXROWS)
  7696.              col  -    col of origin (0 to WN_MAXCOLS)
  7697.              width -   width (inside dimension)
  7698.              height -  height (inside dimension)
  7699.              atrib -   window attribute
  7700.              batrib -  border attribute
  7701.              mx -      pointer to menu structure
  7702.  
  7703.           The pmenu structure is defined in "windows.h" (replicated here 
  7704.           for clarity) and must be initialized prior to calling wn_popup.
  7705.  
  7706.           struct mitem {              /* POPUP menu item template */
  7707.             int r;                    /* row */
  7708.             int c;                    /* col */
  7709.             char *t;                  /* text */
  7710.             int rv;                   /* return value */
  7711.           };
  7712.  
  7713.           struct pmenu {              /* POPUP menu structure */
  7714.             WINDOWPTR wpsave;         /* place to hold window id */
  7715.             int winopn;               /* leave window open flag */
  7716.             int lndx;                 /* last index */
  7717.             int fm;                   /* first menu item index */
  7718.             int lm;                   /* last menu item index */
  7719.             struct mitem scrn[WN_MXROWS*4]; /* a bunch of menu items */
  7720.           };                          /* NOTE RELATIVE LIMIT */
  7721.  
  7722.         RETURNS:
  7723.  
  7724.           A WINDOWPTR to the popup window that has been displayed.
  7725.  
  7726.         CAUTIONS and ADDITIONAL NOTES:
  7727.  
  7728.           None.
  7729.  
  7730.         SEE ALSO
  7731.  
  7732.           Popup menu basics.
  7733.  
  7734.  
  7735.  
  7736.  
  7737.  
  7738.  
  7739.  
  7740.  
  7741.                                                            Page: 126
  7742.                                                      The Window BOSS
  7743.  
  7744.  
  7745.  
  7746.         11.59. wh_hlinit -- initialize help system
  7747.  
  7748.         USAGE
  7749.  
  7750.           wn_hlinit(row, col, width, height, atrib, batrib, file)
  7751.           int page, row, col, width, height, atrib, batrib;
  7752.           char *file;
  7753.  
  7754.                 row  -  row of upper left hand corner of the window
  7755.                 col  -  column of upper left hand corner of the window
  7756.                 width - INSIDE dimension (max value is 78 for a 80 column 
  7757.                         wide display)
  7758.                 height- INSIDE dimension (max value is 23 for a 25 row 
  7759.                         high display)
  7760.                 atrib - attribute to be used IN the window
  7761.                 batrib- attribute to be used for the border
  7762.                 file  - help file name (assumes ".HLP" extension)
  7763.           
  7764.           Unless you modify the code in WN_HELP.C, wn_hlint calls should 
  7765.           always take the form of:
  7766.  
  7767.             wn_hlinit(0,0,78,23,(BLUE<<4|WHITE),(BLUE<<4|WHITE),file);
  7768.                       |                                       |  | 
  7769.                       +--------------\/-----------------------+  |
  7770.                                   Use as is                      |
  7771.                                                                  |
  7772.                                     YOUR ".HLP" file's name -----+                                                    
  7773.  
  7774.           Unless you modify the code in WN_HELP.C, "HLP" files should be 
  7775.           formatted according to the following convention:
  7776.  
  7777.              %key_word%  - max 25 characters, ALWAYS begin in position 1,
  7778.                            always enclosed within percent signs.
  7779.  
  7780.              text        - starts in column 3, ends in 76, contains a                  
  7781.                            maximum of 20 lines per screen. Text, 
  7782.                            including any leading and/or trailing blank 
  7783.                            lines and/or spaces is always immediately 
  7784.                            preceded by a key word or the .cp command. 
  7785.                            (Use blank lines at the top to center 
  7786.                            vertically.  Use spaces at the left of each 
  7787.                            line to center horizontally.)
  7788.  
  7789.              .cp         - starts in column 1. Command that signals end 
  7790.                            of screen in a series of 2 or more help 
  7791.                            screens.  Precedes or succeeds text.
  7792.  
  7793.              *END*       - starts in column 1. Command that signals end
  7794.                            of help. Succeeds text.
  7795.  
  7796.  
  7797.  
  7798.  
  7799.  
  7800.  
  7801.  
  7802.                                                            Page: 127
  7803.                                                      The Window BOSS
  7804.  
  7805.  
  7806.  
  7807.         wn_hlinit - continued.
  7808.  
  7809.  
  7810.  
  7811.           A typical HLP file would look something like.
  7812.  
  7813.              00000...............................................77778
  7814.              12345...............................................67890
  7815.  
  7816.              %subject 1%
  7817.                            Title of Screen 1 - Subject 1
  7818.              
  7819.                This is a sample help screen for screen number 1 
  7820.                of a multi screen message.
  7821.              .cp
  7822.                            Title of Screen 2 - Subject 1
  7823.  
  7824.                This the second screen of a multi screen help 
  7825.                message for subject1.
  7826.              *END*
  7827.  
  7828.              %subject 2%
  7829.                            Title of Screen 1 - Subject 2     
  7830.  
  7831.                This is a sample help screen for a single screen 
  7832.                help message.
  7833.              *END*
  7834.  
  7835.           Later, when wn_help is called, text will be sequentially 
  7836.           displayed a screen at a time from the subject keyword through 
  7837.           any number of .cp delimited screens through and including the 
  7838.           screen delimited by *END*.  The system allows for forward and 
  7839.           reverse display via the PgUp and PgDn keys.  The .cp signals 
  7840.           the end of a single screen in a series of 2 or more screens.  
  7841.           When .cp is detected, the message  "Esc to quit help, PgUp for 
  7842.           previous screen, any other key to continue..." will be 
  7843.           displayed.  When *END* is detected, the message "End of help, 
  7844.           PgUp for previous screen, any other key to continue..." is 
  7845.           displayed.  
  7846.  
  7847.         RETURNS:
  7848.  
  7849.           TRUE if all is well.
  7850.  
  7851.           FALSE the help file (.HLP) or its index file (.NDX) could not 
  7852.           be found or open.  A FALSE return can also be caused by a lack 
  7853.           of free memory for the memory resident file index or the file 
  7854.           buffers themselves.
  7855.  
  7856.  
  7857.  
  7858.  
  7859.  
  7860.  
  7861.  
  7862.  
  7863.                                                            Page: 128
  7864.                                                      The Window BOSS
  7865.  
  7866.  
  7867.  
  7868.         wn_hlinit - continued.
  7869.  
  7870.  
  7871.  
  7872.         CAUTIONS and ADDITIONAL NOTES:
  7873.  
  7874.           wn_hlinit requires both the ".HLP" and ".NDX" files to be 
  7875.           present when called. "NDX" files are produced by GENINDEX.  The 
  7876.           source to GENINDEX can be found in GENINDEX.C.  
  7877.  
  7878.           As implemented, the help system is configured to provide a full 
  7879.           screen text message, subject keys are limited to 25 characters, 
  7880.           and there is a limit of 255 subject keys per file.  This can be 
  7881.           changed by modifying the functions found in "wn_help.c"  THERE 
  7882.           IS A DIRECT CORRELATION BETWEEN THE PARAMETERS USED TO 
  7883.           INITIALIZE THE HELP SYSTEM AND THE LAYOUT OF THE ASCII TEXT 
  7884.           FILE READ BY THE GENINDEX PROGRAM.  If you modify the code be 
  7885.           sure to modify the location and text of the messages to be 
  7886.           displayed when .cp and/or *END* are dectected.
  7887.  
  7888.         SEE ALSO
  7889.  
  7890.           Help system basics, wn_help
  7891.  
  7892.  
  7893.  
  7894.  
  7895.  
  7896.  
  7897.  
  7898.  
  7899.  
  7900.  
  7901.  
  7902.  
  7903.  
  7904.  
  7905.  
  7906.  
  7907.  
  7908.  
  7909.  
  7910.  
  7911.  
  7912.  
  7913.  
  7914.  
  7915.  
  7916.  
  7917.  
  7918.  
  7919.  
  7920.  
  7921.  
  7922.  
  7923.  
  7924.                                                            Page: 129
  7925.                                                      The Window BOSS
  7926.  
  7927.  
  7928.  
  7929.         11.60. wn_help -- display help message 
  7930.  
  7931.         USAGE
  7932.  
  7933.           wn_help(key_word)
  7934.           char *key_word;
  7935.  
  7936.              char *key_word - valid keyword contained in help file named 
  7937.                               in the call to wn_hlinit.
  7938.  
  7939.           The text associated with the key_word will be sequentially 
  7940.           displayed a screen at a time from the subject keyword through 
  7941.           any number of .cp delimited screens through and including the 
  7942.           screen delimited by *END*.  The system allows for forward and 
  7943.           reverse display via the PgUp and PgDn keys.  The .cp signals 
  7944.           the end of a single screen in a series of 2 or more screens.  
  7945.           When .cp is detected, the message  "Esc to quit help, PgUp for 
  7946.           previous screen, any other key to continue..." will be 
  7947.           displayed.  When *END* is detected, the message "End of help, 
  7948.           PgUp for previous screen, any other key to continue..." is 
  7949.           displayed.  
  7950.  
  7951.         RETURNS:
  7952.                                
  7953.           TRUE if all is well. 
  7954.  
  7955.           FALSE if system has not been initialzied, the . HLP file can 
  7956.           not be found,  or the keyword passed could not be found in the 
  7957.           memory resident index.
  7958.  
  7959.         CAUTIONS and ADDITIONAL NOTES:
  7960.  
  7961.           None.
  7962.  
  7963.         SEE ALSO
  7964.  
  7965.           wn_hlinit
  7966.  
  7967.  
  7968.  
  7969.  
  7970.  
  7971.  
  7972.  
  7973.  
  7974.  
  7975.  
  7976.  
  7977.  
  7978.  
  7979.  
  7980.  
  7981.  
  7982.  
  7983.  
  7984.  
  7985.                                                            Page: 130
  7986.                                                      The Window BOSS
  7987.  
  7988.  
  7989.  
  7990.         11.61. wn_sleftj -- (string) left justify 
  7991.  
  7992.         USAGE
  7993.  
  7994.              wn_sleftj(str)
  7995.  
  7996.                   (char *) str - string to left justify
  7997.           
  7998.         RETURNS:
  7999.  
  8000.              Pointer to str.
  8001.           
  8002.         CAUTIONS and ADDITIONAL NOTES:
  8003.  
  8004.              The string str is left justified in place. 
  8005.  
  8006.              This funtion should not be used with literal character 
  8007.              strings (e.g. wn_sleft(" left justify this");).
  8008.  
  8009.              Leading white space is converted to trailing white space.
  8010.  
  8011.  
  8012.         11.62. wn_srightj -- (string) right justify 
  8013.  
  8014.         USAGE
  8015.  
  8016.              wn_srightj(str)
  8017.  
  8018.                   (char *) str - string to right justify.
  8019.  
  8020.         RETURNS:
  8021.  
  8022.              Pointer to str.
  8023.  
  8024.         CAUTIONS and ADDITIONAL NOTES:
  8025.  
  8026.              The string str is right justified in place.  
  8027.  
  8028.              This funtion should not be used with literal character 
  8029.              strings (e.g. wn_srightj("right justify this   ");).
  8030.  
  8031.              Trailing white space is converted to leading white space.
  8032.  
  8033.  
  8034.  
  8035.  
  8036.  
  8037.  
  8038.  
  8039.  
  8040.  
  8041.  
  8042.  
  8043.  
  8044.  
  8045.  
  8046.                                                            Page: 131
  8047.                                                      The Window BOSS
  8048.  
  8049.  
  8050.  
  8051.         11.63. wn_scenter -- (string) center 
  8052.  
  8053.         USAGE
  8054.  
  8055.              wn_scenter(sr,tr,w)
  8056.  
  8057.                   (char *) sr - the string to center - source
  8058.                   (char *) tr - the centered string  - target
  8059.                                 tr contains the results of centering
  8060.                   int w       - desired width of centered string 
  8061.           
  8062.         RETURNS:
  8063.  
  8064.              Pointer to tr.
  8065.           
  8066.         CAUTIONS and ADDITIONAL NOTES:
  8067.  
  8068.              tr must be a pointer to a character array of at least
  8069.              w+1 in size.
  8070.  
  8071.              The source string pointed to by sr is not altered in any 
  8072.              way.
  8073.  
  8074.              Both leading and trailing white space of the source string 
  8075.              are considered part of the string to be centered.
  8076.                                       
  8077.                                       Desired Width (W)
  8078.                         |------------------------------------------|
  8079.  
  8080.                   source "this is a simple example"
  8081.                   target|         this is a simple example         |
  8082.  
  8083.                   source "        this is an example toooo"
  8084.                   target|             this is an example toooo     |
  8085.  
  8086.              This fuction is intended to deal with strings that do not 
  8087.              have leading or trailing white space.  WN_SDELSPC can be 
  8088.              called to prepare the string for centering.
  8089.  
  8090.  
  8091.  
  8092.  
  8093.  
  8094.  
  8095.  
  8096.  
  8097.  
  8098.  
  8099.  
  8100.  
  8101.  
  8102.  
  8103.  
  8104.  
  8105.  
  8106.  
  8107.                                                            Page: 132
  8108.                                                      The Window BOSS
  8109.  
  8110.  
  8111.  
  8112.         11.64. wn_sdelspc -- (string) delete leading/trailing spaces
  8113.  
  8114.         USAGE
  8115.  
  8116.              wn_sdelspc(str, code)
  8117.  
  8118.                   char *str - string to be treated
  8119.                   int code  - operation code:
  8120.                                 1 = delete leading
  8121.                                 2 = delete trailing
  8122.                                 3 = delete both
  8123.           
  8124.         RETURNS:
  8125.  
  8126.              Pointer to str.
  8127.  
  8128.         CAUTIONS and ADDITIONAL NOTES:
  8129.  
  8130.              All operations are performed in place.
  8131.  
  8132.              This funtion should not be used with literal character 
  8133.              strings (e.g. wn_sdelspc(" mumble fratz  ", 3);).
  8134.  
  8135.  
  8136.         11.65. wn_strndx -- (string) return index of s2 in s1
  8137.  
  8138.         USAGE
  8139.  
  8140.              wn_strndx(s1,s2,off)
  8141.  
  8142.                   (char *) s1 - pointer to string s1
  8143.                   (char *) s2 - pointer to string s2
  8144.                   int off     - s1 offset for search start
  8145.                     
  8146.         RETURNS:
  8147.  
  8148.              The index (a.k.a. subscript or offset) of where s2 begins in 
  8149.              s1, or (-1) if s2 could not be found in s1.
  8150.  
  8151.  
  8152.         CAUTIONS and ADDITIONAL NOTES:
  8153.  
  8154.              A value for "off" must be provided. 
  8155.  
  8156.  
  8157.  
  8158.  
  8159.  
  8160.  
  8161.  
  8162.  
  8163.  
  8164.  
  8165.  
  8166.  
  8167.  
  8168.                                                            Page: 133
  8169.                                                      The Window BOSS
  8170.  
  8171.  
  8172.  
  8173.         11.66. mo_reset -- reset/init mouse
  8174.  
  8175.         USAGE
  8176.  
  8177.              ms = (MOUSEPTR) mo_reset()
  8178.              MOUSEPTR ms;
  8179.  
  8180.                   ms - mouse handle 
  8181.  
  8182.              mo_reset() must be the 1st mouse function called.
  8183.  
  8184.              Low level and applications level interface function.
  8185.  
  8186.         RETURNS
  8187.  
  8188.              mo = mouse handle or MOLPTR (null) if error
  8189.  
  8190.         CAUTIONS and ADDITIONAL NOTES
  8191.  
  8192.              Any program that uses a mouse must first initialize it in 
  8193.              order to avoid dealing with the mouse in an unknown state.  
  8194.              This function clears the mouse status to a "power on" state, 
  8195.              places the mouse's cursor in the center of the screen 
  8196.              (although hidden) and sets the mouse's active region to the 
  8197.              full screen.
  8198.  
  8199.              Requires "windows.h" to be "#include"d.
  8200.  
  8201.              MOUSEPTR is defined in "windows.h"     
  8202.  
  8203.              Example:
  8204.  
  8205.                   #include "windows.h"
  8206.                   main()
  8207.                   {
  8208.                   MOUSEPTR ms;
  8209.                        ms=mo_reset();           /* init mouse */
  8210.                        if(ms) {
  8211.                             .....               /* do other things */
  8212.                             exit(0);            /* finito */
  8213.                        }
  8214.                        else {
  8215.                             ... no mouse
  8216.                        }
  8217.                   }
  8218.                   /* End */
  8219.  
  8220.  
  8221.  
  8222.  
  8223.  
  8224.  
  8225.  
  8226.  
  8227.  
  8228.  
  8229.                                                            Page: 134
  8230.                                                      The Window BOSS
  8231.  
  8232.  
  8233.  
  8234.         11.67. mo_show -- show mouse
  8235.  
  8236.         USAGE
  8237.  
  8238.              mo_show(ms)
  8239.              MOUSEPTR ms;
  8240.  
  8241.                   ms - mouse handle
  8242.  
  8243.              Display (show, unhide) the mouse cursor.  
  8244.              
  8245.              Low level and applications level interface function.
  8246.  
  8247.         RETURNS
  8248.  
  8249.              Nothing.     
  8250.  
  8251.         CAUTIONS and ADDITIONAL NOTES
  8252.  
  8253.              Example:
  8254.  
  8255.                   #include "windows.h"
  8256.                   main()
  8257.                   {
  8258.                   MOUSEPTR ms;
  8259.                        ms=mo_reset();           /* init mouse */
  8260.                        if(ms) {
  8261.                             mo_show(ms);        /* show mouse */
  8262.                             .....               /* do other things */
  8263.                             exit(0);            /* finito */
  8264.                        }
  8265.                        else {
  8266.                             ... no mouse
  8267.                        }
  8268.                   }
  8269.                   /* End */
  8270.  
  8271.              Failure to call mo_show() will cause the mouse to never be 
  8272.              displayed.  mo_show() is usually called after mo_reset().
  8273.  
  8274.  
  8275.  
  8276.  
  8277.  
  8278.  
  8279.  
  8280.  
  8281.  
  8282.  
  8283.  
  8284.  
  8285.  
  8286.  
  8287.  
  8288.  
  8289.  
  8290.                                                            Page: 135
  8291.                                                      The Window BOSS
  8292.  
  8293.  
  8294.  
  8295.         11.68. mo_hide -- hide mouse
  8296.  
  8297.         USAGE
  8298.  
  8299.              mo_hide(ms)
  8300.              MOUSEPTR ms;
  8301.  
  8302.                   ms - mouse handle
  8303.  
  8304.              Hide (unshow, make invisible) the mouse cursor.  
  8305.  
  8306.              Low level and applications level interface function.
  8307.  
  8308.         RETURNS
  8309.  
  8310.              Nothing.
  8311.  
  8312.         CAUTIONS and ADDITIONAL NOTES
  8313.  
  8314.              The only way to display the mouse cursor after it is hidden 
  8315.              is by calling mo_show().
  8316.  
  8317.              Example:
  8318.  
  8319.                   #include "windows.h"
  8320.                   main()
  8321.                   {
  8322.                   MOUSEPTR ms;
  8323.                        ms=mo_reset();           /* init mouse */
  8324.                        if(ms) {
  8325.                             mo_show(ms);        /* show mouse */
  8326.                             v_getch();          /* wait for key hit */
  8327.                             mo_hide(ms);        /* hide mouse */
  8328.                             exit(0);            /* finito */
  8329.                        }
  8330.                        else {
  8331.                             ... no mouse
  8332.                        }
  8333.                   }
  8334.                   /* End */
  8335.  
  8336.  
  8337.  
  8338.  
  8339.  
  8340.  
  8341.  
  8342.  
  8343.  
  8344.  
  8345.  
  8346.  
  8347.  
  8348.  
  8349.  
  8350.  
  8351.                                                            Page: 136
  8352.                                                      The Window BOSS
  8353.  
  8354.  
  8355.  
  8356.         11.69. mo_pos -- get mouse pixel position & status
  8357.  
  8358.         USAGE
  8359.  
  8360.              mo_pos(ms)
  8361.              MOUSEPTR ms;
  8362.  
  8363.                   ms - mouse handle
  8364.  
  8365.              This function updates the mouse control block with current 
  8366.              mouse status information - physical location and button 
  8367.              status.  This information is provided in real time and in 
  8368.              the mouse's 640 x 200 pixel array corrdinate system.
  8369.  
  8370.              Low level interface function.
  8371.  
  8372.         RETURNS
  8373.  
  8374.              Nothing. 
  8375.  
  8376.              Updates - Members of the mouse control block:
  8377.  
  8378.                ms->bstat - bit 0 set if left button is CURRENTLY down 
  8379.                            bit 1 set if right button is CURRENTLY down
  8380.                            bit 2 set if center button is CURRENTLY down
  8381.                                       
  8382.                ms->row   - mouse pixel row location 
  8383.                ms->col   - mouse pixel col location
  8384.  
  8385.         CAUTIONS and ADDITIONAL NOTES
  8386.  
  8387.              All information is reported in real time.  If the mouse is 
  8388.              in the process of being moved, the information returned may 
  8389.              not be indicative of the final destination. 
  8390.  
  8391.              This funtion is typically used in graphics mode (which The 
  8392.              Window BOSS does not support).  It is handy for "etch-a-
  8393.              sketch" type pixel drawing programs.  
  8394.  
  8395.              Making infrequent calls to this routine can cause your 
  8396.              program to miss button clicks. 
  8397.  
  8398.              Text (80x25) row and column coordinates can be determined by 
  8399.              dividing m->row and m->col by 8.
  8400.  
  8401.              The recommended way to obtain accurate information in a more 
  8402.              useful format is by using mo_wait in conjunction with 
  8403.              mo_rcpos.
  8404.  
  8405.  
  8406.              Also see "mo_rcpos", "mo_wait".
  8407.  
  8408.  
  8409.  
  8410.  
  8411.  
  8412.                                                            Page: 137
  8413.                                                      The Window BOSS
  8414.  
  8415.  
  8416.  
  8417.         11.70. mo_move -- move mouse pixel cursor
  8418.  
  8419.         USAGE
  8420.  
  8421.              mo_move(ms, row, col)
  8422.              MOUSEPTR ms;
  8423.              int row,col;
  8424.  
  8425.                   ms -  mouse handle
  8426.                   row - new pixel row value 
  8427.                   col - new pixel col value
  8428.  
  8429.              This function moves the mouse to a new physical location in 
  8430.              the mouse's 640 x 200 pixel array coordinate system.
  8431.  
  8432.              Low level interface function.
  8433.  
  8434.         RETURNS
  8435.  
  8436.              Nothing.
  8437.  
  8438.         CAUTIONS and ADDITIONAL NOTES
  8439.  
  8440.              Pixel row and column coordinates can be determined by 
  8441.              multiplying the text (80x25) coordinates by 8.  
  8442.  
  8443.              Also see "mo_locate".
  8444.  
  8445.  
  8446.  
  8447.  
  8448.  
  8449.  
  8450.  
  8451.  
  8452.  
  8453.  
  8454.  
  8455.  
  8456.  
  8457.  
  8458.  
  8459.  
  8460.  
  8461.  
  8462.  
  8463.  
  8464.  
  8465.  
  8466.  
  8467.  
  8468.  
  8469.  
  8470.  
  8471.  
  8472.  
  8473.                                                            Page: 138
  8474.                                                      The Window BOSS
  8475.  
  8476.  
  8477.  
  8478.         11.71. mo_pbinfo -- get pressed mouse botton status
  8479.  
  8480.         USAGE
  8481.  
  8482.              mo_pbinfo(ms,button)
  8483.              MOUSEPTR ms;
  8484.              int button;
  8485.  
  8486.                   ms     -  mouse handle
  8487.                   button -  button of interest (MO_LEFT or MO_RIGHT)
  8488.  
  8489.              Low level interface function.
  8490.  
  8491.         RETURNS
  8492.  
  8493.              Nothing. 
  8494.  
  8495.              Updates - Members of the mouse control block:
  8496.  
  8497.                ms->bstat  - bit 0 set if left button is CURRENTLY down 
  8498.                             bit 1 set if right button is CURRENTLY down
  8499.                             bit 2 set if center button is CURRENTLY down
  8500.                ms->nclick - number of times the requseted button has 
  8501.                             been pressed since last call.
  8502.                ms->row    - mouse pixel row location of last press
  8503.                ms->col    - mouse pixel col location of last press
  8504.  
  8505.         CAUTIONS and ADDITIONAL NOTES
  8506.  
  8507.              The mouse device driver is a pretty smart critter.  It keeps 
  8508.              track of a number of things, one of them being the number of 
  8509.              times a particular button has been pressed or released since 
  8510.              the last time someone has asked about it.  This function 
  8511.              returns pressed button information about a specific button 
  8512.              (MO_LEFT or MO_RIGHT), and it also returns the real time 
  8513.              button status in the same format as mo_pos().  
  8514.  
  8515.              The ms->row and ms->column locations in the mouse control 
  8516.              block are from the last press of the specified button.
  8517.  
  8518.              This function, like mo_pos, provides limited value for most 
  8519.              applications programs.  A better choice is mo_rbinfo 
  8520.              (released button information and status), since the mouse 
  8521.              device driver waits for the user to RELEASE the specified 
  8522.              button before it updates the internal counters.
  8523.  
  8524.              MO_LEFT and MO_RIGHT are defined in "windows.h"
  8525.  
  8526.              Calling mo_pbinfo clears the mouse's pressed button history 
  8527.              counters.
  8528.  
  8529.              Also see "mo_press", "mo_release", "mo_rbinfo"
  8530.  
  8531.  
  8532.  
  8533.  
  8534.                                                            Page: 139
  8535.                                                      The Window BOSS
  8536.  
  8537.  
  8538.  
  8539.         11.72. mo_rbinfo -- get released mouse button status
  8540.  
  8541.              mo_rbinfo(ms,button)
  8542.              MOUSEPTR ms;
  8543.              int button;
  8544.  
  8545.                   ms     -  mouse handle
  8546.                   button -  button of interest (MO_LEFT or MO_RIGHT)
  8547.  
  8548.              Low level interface function.
  8549.  
  8550.         RETURNS
  8551.  
  8552.              Nothing. 
  8553.  
  8554.              Updates - Members of the mouse control block:
  8555.  
  8556.                ms->bstat  - bit 0 set if left has been released 
  8557.                             bit 1 set if right button has been released
  8558.                             bit 2 set if center button "   "    "
  8559.                ms->nclick - number of times the requseted button has 
  8560.                             been pressed and released since last call.
  8561.                ms->row    - mouse pixel row location of last release
  8562.                ms->col    - mouse pixel col location of last release 
  8563.  
  8564.         CAUTIONS and ADDITIONAL NOTES
  8565.  
  8566.              The mouse device driver is a pretty smart critter.  It keeps 
  8567.              track of a number of things, one of them being the number of 
  8568.              times a particular button has been pressed or released since 
  8569.              the last time someone has asked about it.  This function 
  8570.              returns released button information about a specific button 
  8571.              (MO_LEFT or MO_RIGHT), and it also returns the real time 
  8572.              button status in the same format as mo_pos().  
  8573.  
  8574.              The ms->row and ms->column locations in the mouse control 
  8575.              block are from the last button release  of the specified 
  8576.              button.
  8577.  
  8578.              The mouse device driver waits for the user to RELEASE the 
  8579.              specified button before it updates the internal counters.
  8580.  
  8581.              MO_LEFT and MO_RIGHT are defined in "windows.h"
  8582.  
  8583.              Calling mo_rbinfo clears the mouse's pressed button history 
  8584.              counters.
  8585.  
  8586.              Also see "mo_release", "mo_press", "mo_pbinfo"
  8587.  
  8588.  
  8589.  
  8590.  
  8591.  
  8592.  
  8593.  
  8594.  
  8595.                                                            Page: 140
  8596.                                                      The Window BOSS
  8597.  
  8598.  
  8599.  
  8600.         11.73. mo_clim -- set mouse min/max pixel column limits
  8601.  
  8602.         USAGE
  8603.  
  8604.              mo_clim(ms,min,max)
  8605.              MOUSEPTR ms;
  8606.              int min, mix;
  8607.  
  8608.                   ms   - mouse handle
  8609.                   min  - column minimum in pixels (0 to 639)
  8610.                   max  - column maximum in pixels (0 to 639)
  8611.  
  8612.              mo_clim and mo_rlim limit the operational area of the mouse.  
  8613.              Together they define the mouse's hot area, or if you prefer, 
  8614.              they establish a fence/cage around the mouse. 
  8615.  
  8616.              Low level interface function.
  8617.  
  8618.         RETURNS
  8619.  
  8620.              Nothing.
  8621.  
  8622.         CAUTIONS and ADDITIONAL NOTES
  8623.  
  8624.              min and max are not range checked, 0 is on the left.
  8625.  
  8626.              Also see "mo_reigon"
  8627.  
  8628.         11.74. mo_rlim -- set mouse min/max pixel row limits
  8629.  
  8630.         USAGE
  8631.  
  8632.              mo_clim(ms,min,max)
  8633.              MOUSEPTR ms;
  8634.              int min, mix;
  8635.  
  8636.                   ms   - mouse handle
  8637.                   min  - row minimum in pixels (0 to 199)
  8638.                   max  - row maximum in pixels (0 to 199)
  8639.  
  8640.              mo_clim and mo_rlim limit the operational area of the mouse.  
  8641.              Together they define the mouse's hot area, or if you prefer, 
  8642.              they establish a fence/cage around the mouse. 
  8643.  
  8644.              Low level interface function.
  8645.  
  8646.         RETURNS
  8647.  
  8648.              Nothing.
  8649.  
  8650.         CAUTIONS and ADDITIONAL NOTES
  8651.  
  8652.              min and max are not range checked, 0 is at the top.
  8653.  
  8654.  
  8655.  
  8656.                                                            Page: 141
  8657.                                                      The Window BOSS
  8658.  
  8659.  
  8660.  
  8661.         11.75. mo_sgcursor -- set mouse graphics cursor
  8662.  
  8663.         USAGE
  8664.  
  8665.              mo_sgcursor(ms, hhot, vhot, seg, off)
  8666.              MOUSEPTR ms;
  8667.              int hhot, vhot;
  8668.              unsigned int seg, off;
  8669.  
  8670.                   ms         - mouse handle
  8671.                   hhot, vhot - X & Y relative coordinates of hot spot
  8672.                   seg, off   - segment and offset of mask set
  8673.  
  8674.              Low level interface function.
  8675.  
  8676.         RETURNS
  8677.  
  8678.              Nothing.
  8679.  
  8680.         CAUTIONS and ADDITIONAL NOTES
  8681.  
  8682.              This is an unsupported function that is useful in graphics 
  8683.              mode only.  
  8684.  
  8685.              This function is not to be used in conjunction with The 
  8686.              Window BOSS or Data Clerk.
  8687.  
  8688.              Refer to the Microsoft and/or Logitech API manuals for a 
  8689.              complete description of mouse function 9.
  8690.  
  8691.              Use "mo_scursor" or "mo_setptr" to set the mouse cursor.
  8692.  
  8693.  
  8694.  
  8695.  
  8696.  
  8697.  
  8698.  
  8699.  
  8700.  
  8701.  
  8702.  
  8703.  
  8704.  
  8705.  
  8706.  
  8707.  
  8708.  
  8709.  
  8710.  
  8711.  
  8712.  
  8713.  
  8714.  
  8715.  
  8716.  
  8717.                                                            Page: 142
  8718.                                                      The Window BOSS
  8719.  
  8720.  
  8721.  
  8722.         11.76. mo_scursor -- set mouse cursor
  8723.  
  8724.         USAGE
  8725.  
  8726.              mo_scursor(ms, type, start, stop)
  8727.              MOUSEPTR ms;
  8728.              int type, start, stop;
  8729.  
  8730.                   ms    - mouse pointer
  8731.                   type  - cursor type: 
  8732.                             MO_HDW for hardware
  8733.                             MO_SFT for software
  8734.                   start - start scan line
  8735.                   stop  - stop scan line
  8736.  
  8737.              When using a mouse, you can choose between two types of text 
  8738.              cursors, which are hardware or software.  The hardware 
  8739.              (MO_HDW) cursor puts the video adapters text cursor under 
  8740.              control of the mouse.  This results in a single cursor 
  8741.              appearing on the screen for both the mouse and text.  The 
  8742.              software cursor (MO_SFT) allows two cursors to appear on the 
  8743.              screen, the normal text cursor and a mouse cursor that can 
  8744.              take on a user defined shape and attribute.  The software 
  8745.              cursor is the default and is a simple full-cell inverse 
  8746.              video cursor.
  8747.  
  8748.              Using the hardware cursor type MO_HDW:
  8749.  
  8750.                   start - start scan line (usually 0)
  8751.                   stop  - stop scan line:
  8752.                             monochrome max = 12
  8753.                             non mon    max =  7
  8754.  
  8755.              Using the software cursor type MO_SFT:
  8756.  
  8757.                Option 1 (user defined):
  8758.                   
  8759.                   start - 0x00 
  8760.                   stop  - display attributes in upper 8 bits.
  8761.                           ASCII character to be used as cursor in lower 8 
  8762.                           bits.
  8763.  
  8764.                   For example, to set the software cursor to a white 
  8765.                   happy face on a black background:
  8766.  
  8767.                        mo_scursor(ms, MO_SFT, 0x00, 0x0703);     
  8768.  
  8769.  
  8770.                                                      continued...    
  8771.  
  8772.  
  8773.  
  8774.  
  8775.  
  8776.  
  8777.  
  8778.                                                            Page: 143
  8779.                                                      The Window BOSS
  8780.  
  8781.  
  8782.  
  8783.         mo_scursor - continued.
  8784.  
  8785.  
  8786.  
  8787.                Option 2 (see through rectangle):
  8788.  
  8789.                   start - 0x77ff
  8790.                   stop  - 0x00
  8791.  
  8792.                   For example, to set the software cursor to a see 
  8793.                   through block:
  8794.  
  8795.                        mo_scursor(ms, MO_SOFT, 0x77ff, 7700);     
  8796.  
  8797.              Low level interface function.
  8798.  
  8799.         RETURNS
  8800.  
  8801.              Nothing.
  8802.  
  8803.         CAUTIONS and ADDITIONAL NOTES
  8804.  
  8805.              See also "mo_setptr".
  8806.  
  8807.  
  8808.  
  8809.  
  8810.  
  8811.  
  8812.  
  8813.  
  8814.  
  8815.  
  8816.  
  8817.  
  8818.  
  8819.  
  8820.  
  8821.  
  8822.  
  8823.  
  8824.  
  8825.  
  8826.  
  8827.  
  8828.  
  8829.  
  8830.  
  8831.  
  8832.  
  8833.  
  8834.  
  8835.  
  8836.  
  8837.  
  8838.  
  8839.                                                            Page: 144
  8840.                                                      The Window BOSS
  8841.  
  8842.  
  8843.  
  8844.         11.77. mo_motion  -- get mouse motion counters
  8845.  
  8846.         USAGE
  8847.  
  8848.              mo_motion(ms)
  8849.              MOUSEPTR ms;
  8850.  
  8851.                   ms - mouse handle
  8852.  
  8853.              Low level interface function.
  8854.  
  8855.         RETURNS
  8856.  
  8857.              Nothing.
  8858.  
  8859.              Updates - Members of the mouse control block:
  8860.  
  8861.                ms->vmove - vertical move counter since last call
  8862.                ms->hmove - horizontal move counter since last call
  8863.  
  8864.         CAUTIONS and ADDITIONAL NOTES
  8865.  
  8866.              The mouse motion counters are reset after each call.
  8867.  
  8868.  
  8869.  
  8870.  
  8871.  
  8872.  
  8873.  
  8874.  
  8875.  
  8876.  
  8877.  
  8878.  
  8879.  
  8880.  
  8881.  
  8882.  
  8883.  
  8884.  
  8885.  
  8886.  
  8887.  
  8888.  
  8889.  
  8890.  
  8891.  
  8892.  
  8893.  
  8894.  
  8895.  
  8896.  
  8897.  
  8898.  
  8899.  
  8900.                                                            Page: 145
  8901.                                                      The Window BOSS
  8902.  
  8903.  
  8904.  
  8905.         11.78. mo_task -- define mouse event handler
  8906.  
  8907.         USAGE
  8908.  
  8909.              mo_task(m, mask, seg, off)
  8910.              WINDOWPTR m;
  8911.              unsigned int mask, seg, off;
  8912.  
  8913.                   m    - mouse handle
  8914.                   mask - event mask
  8915.                             BIT            EVENT
  8916.                              0             Mouse cursor moved
  8917.                              1             Left Button pressed
  8918.                              2             Left button released
  8919.                              3             Right button pressed
  8920.                              4             Right button released
  8921.                              5             Middle button pressed
  8922.                              6             Middle button released
  8923.                   seg  - segment address of handler routine
  8924.                   off  - offset portion of handler routine address
  8925.  
  8926.              This function, if properly implemented, can keep your code 
  8927.              free of frequent mouse checks.  The basic notion is to 
  8928.              "attach" a function in your program to the mouse device 
  8929.              driver.  This function would be invoked whenever any one of 
  8930.              the above events took place.  Your function would then 
  8931.              execute at interrupt level.  There are a few shortcomings, 
  8932.              however, your function can not perform any I/O, make any 
  8933.              calls to DOS or call any of the ROM BIOS routines.  What can 
  8934.              it do?  Actually not much other than record the fact than an 
  8935.              event took place and dismiss the interupt.  Your program can 
  8936.              then process the event at its convenience.  
  8937.  
  8938.              The difficulty with using this function is due to the fact 
  8939.              that your function MUST look like an interupt service 
  8940.              routine in both the way it beings and finishes executing.  
  8941.              This form of code generation is something most "C" compilers 
  8942.              are not very good at, and as a result most of these handler 
  8943.              routines have to be written in assembly language.  This 
  8944.              function is provided as a convenience to those who are 
  8945.              familar with writing these types of programs - it is not 
  8946.              supported by Star Guidance.
  8947.  
  8948.         RETURNS
  8949.  
  8950.              Nothing.
  8951.  
  8952.         CAUTIONS and ADDITIONAL NOTES
  8953.  
  8954.              This is an unsupported function.
  8955.  
  8956.              Refer to the Microsoft and/or Logitech API manuals for a 
  8957.              complete description of mouse function 12.
  8958.  
  8959.  
  8960.  
  8961.                                                            Page: 146
  8962.                                                      The Window BOSS
  8963.  
  8964.  
  8965.  
  8966.         11.79. mo_lpon -- mouse light pen emulation on
  8967.         11.80. mo_lpoff -- mouse light pen emulation off
  8968.  
  8969.         USAGE
  8970.  
  8971.              mo_lpon(ms)
  8972.              MOUSEPTR ms;
  8973.  
  8974.              mo_lpoff(ms)
  8975.              MOUSEPTR ms;
  8976.  
  8977.                   ms - mouse handle
  8978.  
  8979.              These functions allow software that exepects to find a light 
  8980.              pen to respond (or not to respond) to the mouse as if it 
  8981.              were a light pen.  By default, light pen emluation is 
  8982.              enabled - mo_reset() automatically turns on light pen 
  8983.              emulation.
  8984.  
  8985.              Low level and applications level interface function.
  8986.  
  8987.         RETURNS
  8988.  
  8989.              Nothing.
  8990.  
  8991.         CAUTIONS and ADDITIONAL NOTES
  8992.  
  8993.              None.
  8994.  
  8995.  
  8996.         11.81. mo_ratio -- set motion to pixel ratio
  8997.  
  8998.         USAGE
  8999.  
  9000.              mo_ratio(ms)
  9001.              MOUSEPTR ms;
  9002.  
  9003.                   ms - mouse handle
  9004.  
  9005.              Set the motion to pixel ratio (graphics mode).
  9006.  
  9007.              Low level interface function.
  9008.  
  9009.         RETURNS
  9010.  
  9011.              Nothing.
  9012.  
  9013.         CAUTIONS and ADDITIONAL NOTES
  9014.  
  9015.              This is an unsupported function.
  9016.  
  9017.              Refer to the Microsoft and/or Logitech API manuals for a 
  9018.              complete description of mouse function 15.
  9019.  
  9020.  
  9021.  
  9022.                                                            Page: 147
  9023.                                                      The Window BOSS
  9024.  
  9025.  
  9026.  
  9027.         11.82. mo_rcpos -- return current position of mouse
  9028.  
  9029.         USAGE
  9030.  
  9031.              mo_rcpos(ms, status, row, col)
  9032.              MOUSEPTR ms;
  9033.              int *status, *row, *col;
  9034.  
  9035.                   ms      - mouse handle
  9036.                   *status - pointer to int to receive mouse status
  9037.                               bit 0 set if left button is CURRENTLY down 
  9038.                               bit 1 set if right button is CURRENTLY down
  9039.                               bit 2 set if center button is CURRENTLY down
  9040.                   *row    - pointer to int to receive position
  9041.                             of mouse row (0-25)
  9042.                   *col    - pointer to int to receive position
  9043.                             of mouse column (0-79)
  9044.  
  9045.              Applications level interface function.
  9046.  
  9047.         RETURNS
  9048.  
  9049.              Nothing.
  9050.  
  9051.              Updates - Members of the mouse control block:
  9052.  
  9053.                ms->bstat - bit 0 set if left button is CURRENTLY down 
  9054.                            bit 1 set if right button is CURRENTLY down
  9055.                            bit 2 set if center button is CURRENTLY down
  9056.                                       
  9057.                ms->row   - mouse pixel row location 
  9058.                ms->col   - mouse pixel col location
  9059.  
  9060.  
  9061.                                                      continued....
  9062.  
  9063.  
  9064.  
  9065.  
  9066.  
  9067.  
  9068.  
  9069.  
  9070.  
  9071.  
  9072.  
  9073.  
  9074.  
  9075.  
  9076.  
  9077.  
  9078.  
  9079.  
  9080.  
  9081.  
  9082.  
  9083.                                                            Page: 148
  9084.                                                      The Window BOSS
  9085.  
  9086.  
  9087.  
  9088.         mo_rcpos - continued.
  9089.  
  9090.  
  9091.  
  9092.              CAUTIONS and ADDITIONAL NOTES
  9093.  
  9094.              Example:
  9095.  
  9096.                   #include "windows.h"
  9097.                   main()
  9098.                   {
  9099.                   MOUSEPTR ms;
  9100.                   int st, row, col;
  9101.                        ms=mo_reset();           /* init mouse */
  9102.                        if(ms) {
  9103.                                                 /* fetch status */
  9104.                             mo_rcpos(ms, &st, &row, &col);
  9105.                             mo_show(ms);        /* show mouse */
  9106.                             v_getch();          /* wait for key hit */
  9107.                             mo_hide(ms);        /* hide mouse */
  9108.                             exit(0);            /* finito */
  9109.                        }
  9110.                        else {
  9111.                             ... no mouse
  9112.                        }
  9113.                   }
  9114.                   /* End */
  9115.  
  9116.              Note the use of pointers.
  9117.  
  9118.              All information is reported in real time.  If the mouse is 
  9119.              in the process of being moved the information returned may 
  9120.              not be indicative of the final destination. 
  9121.  
  9122.              Making infrequent calls to this routine can cause your 
  9123.              program to miss button clicks. 
  9124.  
  9125.              The recommended way to obtain accurate information is by 
  9126.              using mo_wait in conjunction with mo_rcpos.
  9127.  
  9128.              See also mo_pos(), mo_wait()
  9129.  
  9130.  
  9131.  
  9132.  
  9133.  
  9134.  
  9135.  
  9136.  
  9137.  
  9138.  
  9139.  
  9140.  
  9141.  
  9142.  
  9143.  
  9144.                                                            Page: 149
  9145.                                                      The Window BOSS
  9146.  
  9147.  
  9148.  
  9149.         11.83. mo_locate -- locate (position) mouse cursor
  9150.  
  9151.         USAGE
  9152.  
  9153.              mo_locate(ms, row, col)
  9154.              MOUSEPTR ms;
  9155.              int row, col;
  9156.  
  9157.                   ms   - mouse handle
  9158.                   row  - destination row (0-24)
  9159.                   col  - destination column (0-79)
  9160.  
  9161.              mo_locate positions the mouse to the row and column 
  9162.              specified.
  9163.  
  9164.              Applications level interface function.
  9165.  
  9166.         RETURNS
  9167.  
  9168.              Nothing.
  9169.  
  9170.         CAUTIONS and ADDITIONAL NOTES
  9171.  
  9172.              Example:
  9173.  
  9174.                   #include "windows.h"
  9175.                   main()
  9176.                   {
  9177.                   MOUSEPTR ms;
  9178.                   int st, row, col;
  9179.                        ms=mo_reset();           /* init mouse */
  9180.                        if(ms) {
  9181.                                                 /* fetch status */
  9182.                             mo_rcpos(ms, &st, &row, &col);
  9183.                             if(row != 0)        /* home the mouse ?? */
  9184.                               mo_locate(ms, 0, 0);
  9185.                             mo_show(ms);        /* show mouse */
  9186.                             v_getch();          /* wait for key hit */
  9187.                             mo_hide(ms);        /* hide mouse */
  9188.                             exit(0);            /* finito */
  9189.                        }
  9190.                        else {
  9191.                             ... no mouse
  9192.                        }
  9193.                   }
  9194.                   /* End */
  9195.  
  9196.              Values are not range checked.
  9197.  
  9198.  
  9199.  
  9200.  
  9201.  
  9202.  
  9203.  
  9204.  
  9205.                                                            Page: 150
  9206.                                                      The Window BOSS
  9207.  
  9208.  
  9209.  
  9210.         11.84. mo_press -- get mouse button press status
  9211.  
  9212.         USAGE
  9213.  
  9214.              mo_press(ms, button, status, nclick, row, col)
  9215.              MOUSEPTR ms;
  9216.              int button;
  9217.              int *status, *nclick, *row, *col;
  9218.  
  9219.                   ms      - mouse handle
  9220.                   button  - button of interest (MO_LEFT or MO_RIGHT)
  9221.                   status  - pointer to int to receive status information.
  9222.                               bit 0 set if left button is CURRENTLY down 
  9223.                               bit 1 set if right button is CURRENTLY down
  9224.                               bit 2 set if center button is CURRENTLY down
  9225.                   nclick  - pointer to int to receive number of times the 
  9226.                             mouse button specified by button has been 
  9227.                             pressed since last call. Zero indicates the 
  9228.                             button has not been pressed since the last 
  9229.                             call.
  9230.                   row     - pointer to int to receive row (0-24) of last 
  9231.                             button press.
  9232.                   col     - pointer to int to receive column (0-79) of 
  9233.                             last button press.
  9234.  
  9235.              Applications level interface function.
  9236.  
  9237.         RETURNS
  9238.  
  9239.              Nothing.
  9240.  
  9241.              Updates - Members of the mouse control block:
  9242.  
  9243.                ms->bstat  - bit 0 set if left button is CURRENTLY down 
  9244.                             bit 1 set if right button is CURRENTLY down
  9245.                             bit 2 set if center button is CURRENTLY down
  9246.                ms->nclick - number of times the requested button has been 
  9247.                             pressed since last call.
  9248.                ms->row    - mouse pixel row location of last press
  9249.                ms->col    - mouse pixel col location of last press
  9250.  
  9251.  
  9252.                                                      continued....
  9253.  
  9254.  
  9255.  
  9256.  
  9257.  
  9258.  
  9259.  
  9260.  
  9261.  
  9262.  
  9263.  
  9264.  
  9265.  
  9266.                                                            Page: 151
  9267.                                                      The Window BOSS
  9268.  
  9269.  
  9270.  
  9271.         mo_press - continued.
  9272.  
  9273.  
  9274.  
  9275.         CAUTIONS and ADDITIONAL NOTES
  9276.  
  9277.              Example:
  9278.  
  9279.                   #include "windows.h"
  9280.                   main()
  9281.                   {
  9282.                   MOUSEPTR ms;
  9283.                   int st, row, col;
  9284.                        ms=mo_reset();           /* init mouse */
  9285.                        if(ms) {
  9286.                                                 /* fetch status */
  9287.                           mo_rcpos(ms, &st, &row, &col);
  9288.                           if(row != 0)          /* home the mouse ?? */
  9289.                             mo_locate(ms, 0, 0);
  9290.                           mo_show(ms);          /* show mouse */
  9291.                           do {                  /* loop till press */
  9292.                             mo_wait(ms);        /* let mouse settle */
  9293.                             mo_press(ms, MO_LEFT, &st, &nc, &row, &col);
  9294.                           } while(!nc); 
  9295.                           mo_hide(ms);          /* hide mouse */
  9296.                           exit(0);              /* finito */
  9297.                        }
  9298.                        else {
  9299.                             ... no mouse
  9300.                        }
  9301.                   }
  9302.                   /* End */
  9303.  
  9304.              Note use of POINTERS.
  9305.  
  9306.              MO_LEFT and MO_RIGHT are defined in "windows.h"
  9307.  
  9308.              Calling mo_press clears the mouse's pressed button history 
  9309.              counters.
  9310.  
  9311.              Since mo_release waits for the mouse button to be released 
  9312.              before updating the device drivers internal tables, it is a 
  9313.              better choice for most applications.
  9314.  
  9315.              Also see "mo_pbinfo"
  9316.  
  9317.  
  9318.  
  9319.  
  9320.  
  9321.  
  9322.  
  9323.  
  9324.  
  9325.  
  9326.  
  9327.                                                            Page: 152
  9328.                                                      The Window BOSS
  9329.  
  9330.  
  9331.  
  9332.         11.85. mo_release -- get mouse button release status
  9333.  
  9334.         USAGE
  9335.  
  9336.              mo_release(ms, button, status, nclick, row, col)
  9337.              MOUSEPTR ms;
  9338.              int button;
  9339.              int *status, *nclick, *row, *col;
  9340.  
  9341.                   ms      - mouse handle
  9342.                   button  - button of interest (MO_LEFT or MO_RIGHT)
  9343.                   status  - pointer to int to receive status information.
  9344.                               bit 0 set if left button has been pressed 
  9345.                               and released.
  9346.                               bit 1 set if right button has been pressed 
  9347.                               and released.
  9348.                               bit 2 set if center button has been pressed 
  9349.                               and released.
  9350.                   nclick  - pointer to int to receive number of times the 
  9351.                             mouse button specified by button has been 
  9352.                             pressed and released since last call. Zero 
  9353.                             indicates the button has not been released
  9354.                             since the last call.
  9355.                   row     - pointer to int to receive row (0-24) of last 
  9356.                             button release.
  9357.                   col     - pointer to int to receive column (0-79) of 
  9358.                             last button release.
  9359.  
  9360.              Applications level interface function.
  9361.  
  9362.         RETURNS
  9363.  
  9364.              Nothing. 
  9365.  
  9366.              Updates - Members of the mouse control block:
  9367.  
  9368.                ms->bstat  - bit 0 set if left has been released 
  9369.                             bit 1 set if right button has been released
  9370.                             bit 2 set if center button "   "    "
  9371.                ms->nclick - number of times the requested button has been 
  9372.                             pressed and released since last call.
  9373.                ms->row    - mouse pixel row location of last release
  9374.                ms->col    - mouse pixel col location of last release 
  9375.  
  9376.  
  9377.                                                 continued....
  9378.  
  9379.  
  9380.  
  9381.  
  9382.  
  9383.  
  9384.  
  9385.  
  9386.  
  9387.  
  9388.                                                            Page: 153
  9389.                                                      The Window BOSS
  9390.  
  9391.  
  9392.  
  9393.         mo_release - continued.
  9394.  
  9395.  
  9396.  
  9397.         CAUTIONS and ADDITIONAL NOTES
  9398.  
  9399.              Example:
  9400.  
  9401.                   #include "windows.h"
  9402.                   main()
  9403.                   {
  9404.                   MOUSEPTR ms;
  9405.                   int st, nc, row, col;
  9406.                        ms=mo_reset();           /* init mouse */
  9407.                        if(ms) {
  9408.                                                 /* fetch status */
  9409.                           mo_rcpos(ms, &st, &row, &col);
  9410.                           if(row != 0)          /* home the mouse ?? */
  9411.                             mo_locate(ms, 0, 0);
  9412.                           mo_show(ms);          /* show mouse */
  9413.                           do {                  /* loop till release */
  9414.                             mo_wait(ms);        /* let mouse settle */
  9415.                             mo_release(ms, MO_LEFT, &st, &nc, &row, &col);
  9416.                           } while(!nc); 
  9417.                           mo_hide(ms);          /* hide mouse */
  9418.                           exit(0);              /* finito */
  9419.                        }
  9420.                        else {
  9421.                             ... no mouse
  9422.                        }
  9423.                   }
  9424.                   /* End */
  9425.  
  9426.              Note use of POINTERS.
  9427.  
  9428.              The mouse device driver waits for the user to RELEASE the 
  9429.              specified button before it updates the internal counters.
  9430.  
  9431.              MO_LEFT and MO_RIGHT are defined in "windows.h"
  9432.  
  9433.              Calling mo_release clears the mouse's pressed button history 
  9434.              counters.
  9435.  
  9436.              Also see "mo_rbinfo", "mo_pbinfo", "mo_press"
  9437.  
  9438.  
  9439.  
  9440.  
  9441.  
  9442.  
  9443.  
  9444.  
  9445.  
  9446.  
  9447.  
  9448.  
  9449.                                                            Page: 154
  9450.                                                      The Window BOSS
  9451.  
  9452.  
  9453.  
  9454.         11.86. mo_reigon -- set mouse region
  9455.  
  9456.         USAGE
  9457.  
  9458.              mo_reigon(ms, row, col, width, height)
  9459.              MOUSEPTR ms;
  9460.              int row, col, width, height;
  9461.  
  9462.                   ms     - mouse pointer
  9463.                   row    - upper left hand corner row
  9464.                   col    - upper left hand corner column
  9465.                   width  - width of region (# of columns 1 to 80)
  9466.                   height - height of region (# of rows 1 to 25)
  9467.  
  9468.              mo_reigon defines the boundaries of where the mouse may 
  9469.              move.  Establishes a fence/cage around the mouse.
  9470.  
  9471.         RETURNS
  9472.  
  9473.              Nothing.
  9474.  
  9475.         CAUTIONS and ADDITIONAL NOTES
  9476.  
  9477.              Example:
  9478.  
  9479.                   #include "windows.h"
  9480.                   main()
  9481.                   {
  9482.                   MOUSEPTR ms;
  9483.                   int st, nc, row, col;
  9484.                        ms=mo_reset();           /* init mouse */
  9485.                        if(ms) {
  9486.                                                 /* fetch status */
  9487.                           mo_rcpos(ms, &st, &row, &col);
  9488.                           if(row != 0)          /* home the mouse ?? */
  9489.                             mo_locate(ms, 0, 0);
  9490.                           mo_reigon(ms, 0, 0, 40, 12); /* 40x12 */
  9491.                           mo_show(ms);          /* show mouse */
  9492.                           do {                  /* loop till release */
  9493.                             mo_wait(ms);        /* let mouse settle */
  9494.                             mo_release(ms, MO_LEFT, &st, &nc, &row, &col);
  9495.                           } while(!nc); 
  9496.                           mo_hide(ms);          /* hide mouse */
  9497.                           exit(0);              /* finito */
  9498.                        }
  9499.                        else {
  9500.                             ... no mouse
  9501.                        }
  9502.                   }
  9503.                   /* End */
  9504.  
  9505.  
  9506.  
  9507.  
  9508.  
  9509.  
  9510.                                                            Page: 155
  9511.                                                      The Window BOSS
  9512.  
  9513.  
  9514.  
  9515.         11.87. mo_setptr -- set mouse pointer and attributes
  9516.  
  9517.         USAGE
  9518.  
  9519.              mo_setptr(ms, tchar, atrib)
  9520.              MOUSEPTR ms;
  9521.              unsigned int tchar, atrib;
  9522.  
  9523.                   ms    - mouse handle
  9524.                   tchar - character to be used as the mouse cursor, valid 
  9525.                           range is 0 to 255 although a value of 0 makes 
  9526.                           no sense at all!
  9527.                   atrib - attribute to be used.  The attribute byte 
  9528.                           contains the background specific data in the 
  9529.                           upper 4 bits and the foreground specific data 
  9530.                           in the lower 4 bits.  Color and bit definitions 
  9531.                           can be found in windows.h. You can use a 
  9532.                           statement as follows to set atrib:
  9533.  
  9534.                             atrib = (bground << 4 | fground);
  9535.  
  9536.         RETURNS
  9537.  
  9538.              Nothing.
  9539.  
  9540.         CAUTIONS and ADDITIONAL NOTES
  9541.  
  9542.              To set the mouse cursor to a white happy face on a backgound 
  9543.              use the following:
  9544.  
  9545.                   atrib = BLACK<<4 | WHITE;
  9546.                   mo_setptr(ms, 0x03, atrib);
  9547.  
  9548.              Attributes are defined in windows.h.
  9549.  
  9550.  
  9551.  
  9552.  
  9553.  
  9554.  
  9555.  
  9556.  
  9557.  
  9558.  
  9559.  
  9560.  
  9561.  
  9562.  
  9563.  
  9564.  
  9565.  
  9566.  
  9567.  
  9568.  
  9569.  
  9570.  
  9571.                                                            Page: 156
  9572.                                                      The Window BOSS
  9573.  
  9574.  
  9575.  
  9576.         11.88. mo_wait -- wait for mouse to settle
  9577.  
  9578.         USAGE
  9579.  
  9580.              mo_wait(ms)
  9581.              MOUSEPTR ms;
  9582.  
  9583.                   ms - mouse handle.
  9584.  
  9585.              Calling mo_wait causes your progam to pause until the mouse 
  9586.              has settled - completely stopped and with its buttons up and 
  9587.              no activity in progress.  
  9588.  
  9589.         RETURNS
  9590.  
  9591.              Nothing.
  9592.  
  9593.         CAUTIONS and ADDITIONAL NOTES
  9594.  
  9595.              Example:
  9596.  
  9597.                   #include "windows.h"
  9598.                   main()
  9599.                   {
  9600.                   MOUSEPTR ms;
  9601.                   int st, nc, row, col;
  9602.                   unsigned atrib;
  9603.                        ms=mo_reset();           /* init mouse */
  9604.                        if(ms) {                 /* fetch status */
  9605.                           mo_rcpos(ms, &st, &row, &col);
  9606.                           if(row != 0)          /* home the mouse ?? */
  9607.                             mo_locate(ms, 0, 0);
  9608.                           mo_reigon(ms, 0, 0, 40, 12); /* 40x12 */
  9609.                           atrib = BLACK<<4 | WHITE;
  9610.                           mo_setptr(ms, 0x03, atrib);
  9611.                           mo_show(ms);          /* show mouse */
  9612.                           do {                  /* loop till release */
  9613.                             mo_wait(ms);        /* let mouse settle */
  9614.                             mo_release(ms, MO_LEFT, &st, &nc, &row, &col);
  9615.                           } while(!nc); 
  9616.                           mo_hide(ms);          /* hide mouse */
  9617.                           exit(0);              /* finito */
  9618.                        }
  9619.                        else {
  9620.                             ... no mouse
  9621.                        }
  9622.                   }
  9623.                   /* End */
  9624.  
  9625.  
  9626.  
  9627.  
  9628.  
  9629.  
  9630.  
  9631.  
  9632.                                                            Page: 157
  9633.                                                      The Window BOSS
  9634.  
  9635.  
  9636.  
  9637.         11.89. mo_nbutt -- get mouse button count
  9638.  
  9639.         USAGE
  9640.  
  9641.              (int) mo_nbutt(ms)
  9642.              MOUSEPTR ms;
  9643.  
  9644.                   ms - mouse handle
  9645.  
  9646.         RETURNS
  9647.  
  9648.              Number of buttons on mouse.
  9649.  
  9650.         CAUTIONS and ADDITIONAL NOTES
  9651.  
  9652.              None.
  9653.  
  9654.  
  9655.  
  9656.  
  9657.  
  9658.  
  9659.  
  9660.  
  9661.  
  9662.  
  9663.  
  9664.  
  9665.  
  9666.  
  9667.  
  9668.  
  9669.  
  9670.  
  9671.  
  9672.  
  9673.  
  9674.  
  9675.  
  9676.  
  9677.  
  9678.  
  9679.  
  9680.  
  9681.  
  9682.  
  9683.  
  9684.  
  9685.  
  9686.  
  9687.  
  9688.  
  9689.  
  9690.  
  9691.  
  9692.  
  9693.                                                            Page: 158
  9694.                                                      The Window BOSS
  9695.  
  9696.  
  9697.  
  9698.         11.90. _getca -- get character and attribute
  9699.  
  9700.         USAGE
  9701.  
  9702.           unsigned int _getca(page, row, col)
  9703.           int page, row, col;
  9704.  
  9705.  
  9706.                 page - video page #
  9707.                 row -  row value (0-24)
  9708.                 col -  column value (0-79)
  9709.  
  9710.           _getca fetches the character and attribute at the screen 
  9711.           coordinates defined by row and column.  _getca is a general 
  9712.           purpose routine and can be used outside of the window 
  9713.           environment.
  9714.  
  9715.         RETURNS
  9716.  
  9717.           The character and attribute as an unsigned int.  The attribute 
  9718.           is in the upper byte, the character is in the lower byte.
  9719.  
  9720.         CAUTIONS and ADDITIONAL NOTES
  9721.  
  9722.           None.
  9723.  
  9724.  
  9725.  
  9726.         11.91. _putca -- put character and attribute 
  9727.  
  9728.         USAGE
  9729.  
  9730.           _putca(page, atch, row, col);
  9731.           int page, row, col;
  9732.           unsigned atch;
  9733.  
  9734.                 page - video page #
  9735.                 atch - attribute and character
  9736.                          attribute in high order byte
  9737.                          character in low order byte
  9738.                 row -  row position for character (0-24)
  9739.                 col -  column position for character (0-79)
  9740.  
  9741.           _putch is a general purpose routine that can be used outside of 
  9742.           the window environment.
  9743.  
  9744.         RETURNS
  9745.  
  9746.           Nothing.
  9747.  
  9748.         CAUTIONS and ADDITIONAL NOTES
  9749.  
  9750.           None.
  9751.  
  9752.  
  9753.  
  9754.                                                            Page: 159
  9755.                                                      The Window BOSS
  9756.  
  9757.  
  9758.  
  9759.         11.92. _vidblt -- video block transfer
  9760.  
  9761.         USAGE
  9762.  
  9763.           _vidblt(sseg, soff, dseg, doff, n);
  9764.           unsigned sseg, soff, dseg, doff;
  9765.           int n;
  9766.  
  9767.                 sseg - source segment
  9768.                 soff - source offset
  9769.                 dseg - destination segment
  9770.                 doff - destination offset
  9771.                 n -    number of bytes to BLT
  9772.  
  9773.           _vidblt is similar to the lattice movedata() function except 
  9774.           that it waits for the video retrace signal before performing 
  9775.           the block transfer.
  9776.  
  9777.           _vidblt is a general purpose function that can be used outside 
  9778.           of the window environment.
  9779.  
  9780.         RETURNS
  9781.  
  9782.           Nothing
  9783.  
  9784.         CAUTIONS and ADDITIONAL NOTES
  9785.  
  9786.           For use in color systems only.
  9787.  
  9788.           _vidblt references wn_sbit.
  9789.  
  9790.  
  9791.  
  9792.         11.93. v_spage -- set active display page
  9793.  
  9794.         USAGE
  9795.  
  9796.           v_spage(page)
  9797.           int page;
  9798.  
  9799.                 page - video page to switch the display to
  9800.  
  9801.           v_spage is a general purpose routine that can be used outside 
  9802.           of the window environment.  
  9803.  
  9804.         RETURNS
  9805.  
  9806.           Nothing.
  9807.  
  9808.         CAUTIONS and ADDITIONAL NOTES
  9809.  
  9810.           Color card only.
  9811.  
  9812.  
  9813.  
  9814.  
  9815.                                                            Page: 160
  9816.                                                      The Window BOSS
  9817.  
  9818.  
  9819.  
  9820.         11.94. v_cls -- clear entire video screen 
  9821.  
  9822.         USAGE
  9823.  
  9824.           v_cls(atrib)
  9825.           int atrib;
  9826.  
  9827.                 atrib - attribute to be used 
  9828.  
  9829.           v_cls clears the entire video screen to the specified attribute 
  9830.           and places the cursor in the upper left hand corner of the 
  9831.           screen.
  9832.  
  9833.           v_cls is a general purpose routine that can be used outside of 
  9834.           the window environment.
  9835.  
  9836.           Attributes are defined in windows.h.
  9837.  
  9838.         RETURNS
  9839.  
  9840.           Nothing.
  9841.  
  9842.         CAUTIONS and ADDITIONAL NOTES
  9843.  
  9844.           References Window BOSS globals defined in "windows.ext".
  9845.  
  9846.  
  9847.  
  9848.         11.95. v_smode -- set video mode
  9849.  
  9850.         USAGE
  9851.  
  9852.           v_smode(mode)
  9853.           int mode;
  9854.  
  9855.                 mode - mode to set the display to
  9856.  
  9857.           v_smode is a general purpose routine which can be used outside 
  9858.           of the window environment.
  9859.  
  9860.           Modes are defined in windows.h.
  9861.  
  9862.         RETURNS
  9863.  
  9864.           Nothing.
  9865.  
  9866.         CAUTIONS and ADDITIONAL NOTES
  9867.  
  9868.           None.
  9869.  
  9870.  
  9871.  
  9872.  
  9873.  
  9874.  
  9875.  
  9876.                                                            Page: 161
  9877.                                                      The Window BOSS
  9878.  
  9879.  
  9880.  
  9881.         11.96. v_wca -- write character and attribute
  9882.  
  9883.         USAGE
  9884.  
  9885.           v_wca(page, char, atrib, count);
  9886.           int page, char, atrib, count;
  9887.  
  9888.                 page -  video page #
  9889.                 char -  character to write
  9890.                 atrib - attribute to use
  9891.                 count - number of times to repeat
  9892.  
  9893.           v_wca writes the character defined by char count times starting 
  9894.           at the current cursor location.     
  9895.  
  9896.           v_wca is a general purpose routine that can be used outside of 
  9897.           the window environment. 
  9898.  
  9899.           Attributes are defined in windows.h.
  9900.  
  9901.         RETURNS
  9902.  
  9903.           Nothing.
  9904.  
  9905.         CAUTIONS and ADDITIONAL NOTES
  9906.  
  9907.           None.
  9908.  
  9909.  
  9910.  
  9911.         11.97. v_wtty -- write character TTY mode
  9912.  
  9913.         USAGE
  9914.  
  9915.           v_wtty(char);
  9916.           int  char;
  9917.  
  9918.                 char -  character to write
  9919.  
  9920.         v_wtty writes the character defined by char at the current cursor 
  9921.         location.  
  9922.  
  9923.           v_wtty is a general purpose routine that can be used outside of 
  9924.           the window environment. 
  9925.  
  9926.         RETURNS
  9927.  
  9928.           Nothing.
  9929.  
  9930.         CAUTIONS and ADDITIONAL NOTES
  9931.  
  9932.           None.
  9933.  
  9934.  
  9935.  
  9936.  
  9937.                                                            Page: 162
  9938.                                                      The Window BOSS
  9939.  
  9940.  
  9941.  
  9942.         11.98. v_locate -- locate (position) cursor
  9943.  
  9944.         USAGE
  9945.  
  9946.           v_locate(page, row, col);
  9947.           int page, row, col;
  9948.  
  9949.                 page - video page #
  9950.                 row  - row to position to
  9951.                 col  - column to position to
  9952.           
  9953.           v_locate positions the cursor to the absolute coordinates 
  9954.           specified by row and col on the specified page.  The upper left 
  9955.           hand corner of the screen is (0,0).
  9956.  
  9957.           v_locate is a general purpose routine that can be used outside 
  9958.           of the window environment.
  9959.  
  9960.           Row and Col are range checked.  You CAN position the cursor 
  9961.           slightly (25,80) off the screen.
  9962.  
  9963.         RETURNS
  9964.  
  9965.           Nothing.
  9966.  
  9967.         CAUTIONS and ADDITIONAL NOTES
  9968.  
  9969.           References Window BOSS globals defined in "windows.ext".
  9970.  
  9971.  
  9972.  
  9973.         11.99. v_hidec -- hide cursor
  9974.  
  9975.         USAGE
  9976.  
  9977.           v_hidec();
  9978.  
  9979.           The physical cursor is located off the screen.
  9980.  
  9981.           This function does not affect any virtual cursor coordinates, 
  9982.           it simply hides the physical cursor from view.
  9983.  
  9984.         RETURNS
  9985.  
  9986.           Nothing.
  9987.  
  9988.         CAUTIONS and ADDITIONAL NOTES
  9989.  
  9990.           References Window BOSS globals defined in "windows.ext".
  9991.  
  9992.  
  9993.  
  9994.  
  9995.  
  9996.  
  9997.  
  9998.                                                            Page: 163
  9999.                                                      The Window BOSS
  10000.  
  10001.  
  10002.  
  10003.         11.100. v_sctype -- set cursor type (style)
  10004.  
  10005.         USAGE
  10006.  
  10007.           v_sctype(type, start, end);
  10008.           int type, start, end;
  10009.  
  10010.                 type -  cursor style code 
  10011.                         (0=hidden, 1=normal, 2=slow, 3=fast)
  10012.                 start - start scan line
  10013.                 end -   end scan line
  10014.  
  10015.           As an example, to set a slow flashing block style cursor invoke 
  10016.           this function with type=1, start=6, and end=12 (color card).
  10017.  
  10018.         RETURNS
  10019.  
  10020.           Nothing.
  10021.  
  10022.         CAUTIONS and ADDITIONAL NOTES
  10023.  
  10024.           Color and Monochrome adapters only. 
  10025.           Not for use on the 3270 PC or Enhanced Graphics Adapters.
  10026.  
  10027.  
  10028.         11.101. v_sapu -- scroll active display page up
  10029.  
  10030.         USAGE
  10031.  
  10032.           v_sapu(nl, rul, cul, rlr, clr, atrib);
  10033.           int nl, rul, cul, rlr, clr, atrib;
  10034.  
  10035.                 nl  - number of lines to scroll
  10036.                 rul - row of upper left hand corner of scroll area
  10037.                 cul - column of upper left hand corner of scroll area
  10038.                 rlr - row of lower right corner of scroll area
  10039.                 clr - column of lower right corner of scroll area
  10040.                 atrib - attribute to be used for blanking
  10041.  
  10042.           A value of 0 for nl scrolls (blanks) the entire area.  To clear 
  10043.           the entire video screen use v_sapu(0, 0, 0, 24, 79, NORMAL).
  10044.  
  10045.           v_sapu is a general purpose routine that can be used outside of 
  10046.           the window environment.  
  10047.  
  10048.           Attributes are defined in windows.h.
  10049.  
  10050.         RETURNS
  10051.  
  10052.           Nothing.
  10053.  
  10054.         CAUTIONS and ADDITIONAL NOTES
  10055.  
  10056.           None.
  10057.  
  10058.  
  10059.                                                            Page: 164
  10060.                                                      The Window BOSS
  10061.  
  10062.  
  10063.  
  10064.         11.102. v_sapd -- scroll active display page down
  10065.  
  10066.         USAGE
  10067.  
  10068.           v_sapd(nl, rul, cul, rlr, clr, atrib);
  10069.           int nl, rul, cul, rlr, clr, atrib;
  10070.  
  10071.                 nl  - number of lines to scroll
  10072.                 rul - row of upper left hand corner of scroll area
  10073.                 cul - column of upper left hand corner of scroll area
  10074.                 rlr - row of lower right corner of scroll area
  10075.                 clr - column of lower right corner of scroll area
  10076.                 atrib - attribute to be used for blanking
  10077.  
  10078.           v_sapd is a general purpose routine that can be used outside of 
  10079.           the window environment.  
  10080.  
  10081.           A value of 0 for nl scrolls (blanks) the entire area.  To clear 
  10082.           the entire video screen use v_sapd(0, 0, 0, 24, 79, NORMAL).
  10083.  
  10084.           Attributes are defined in windows.h.
  10085.  
  10086.         RETURNS
  10087.  
  10088.           Nothing.
  10089.  
  10090.         CAUTIONS and ADDITIONAL NOTES
  10091.  
  10092.           None.
  10093.  
  10094.  
  10095.         11.103. v_rcpos -- return current cursor position
  10096.  
  10097.         USAGE
  10098.  
  10099.           v_rcpos(page, row, col);
  10100.           int page;
  10101.           int *row, *col;       /* POINTERS */
  10102.  
  10103.                 int page - video page #     
  10104.                 int *row - pointer to int to receive row value
  10105.                 int *col - pointer to int to receive column value
  10106.  
  10107.           v_rcpos is a general purpose routine that can be used outside 
  10108.           of the window environment.  
  10109.  
  10110.         RETURNS
  10111.  
  10112.           Nothing.
  10113.  
  10114.         CAUTIONS and ADDITIONAL NOTES
  10115.  
  10116.           None.
  10117.  
  10118.  
  10119.  
  10120.                                                            Page: 165
  10121.                                                      The Window BOSS
  10122.  
  10123.  
  10124.  
  10125.         11.104. v_rcvs -- return current video state
  10126.  
  10127.         USAGE
  10128.  
  10129.           v_rcvs(page, vm, cols);
  10130.           int *page, *vm, *cols;        /* POINTERS */
  10131.  
  10132.                 int *page - pointer to int to receive current video page #
  10133.                 int *vm   - pointer to int to receive current video mode
  10134.                 int *cols - pointer to int to receive current screen width
  10135.           
  10136.           v_rcvs is a general purpose routine that can be used outside of 
  10137.           the window environment.
  10138.  
  10139.           Modes are defined in windows.h.
  10140.  
  10141.         RETURNS
  10142.  
  10143.           Nothing.
  10144.  
  10145.         CAUTIONS and ADDITIONAL NOTES
  10146.  
  10147.           None.
  10148.  
  10149.  
  10150.  
  10151.         11.105. v_getch -- get keyboard character and scan code
  10152.  
  10153.         USAGE
  10154.  
  10155.           v_getch();
  10156.  
  10157.           v_getch is a general purpose routine that can be used outside 
  10158.           of the window environment.
  10159.  
  10160.         RETURNS
  10161.  
  10162.           The character and scan code.  The character is in the low order 
  10163.           byte, the scan code in the high order byte.
  10164.  
  10165.         CAUTIONS and ADDITIONAL NOTES
  10166.  
  10167.           v_getch waits for a key to be struck.
  10168.  
  10169.  
  10170.  
  10171.  
  10172.  
  10173.  
  10174.  
  10175.  
  10176.  
  10177.  
  10178.  
  10179.  
  10180.  
  10181.                                                            Page: 166
  10182.                                                      The Window BOSS
  10183.  
  10184.  
  10185.  
  10186.         11.106. v_kstat -- get keyboard status
  10187.  
  10188.         USAGE
  10189.  
  10190.           v_kstat();
  10191.  
  10192.           v_kstat is a general purpose routine that can be used outside 
  10193.           of the window environment.
  10194.  
  10195.         RETURNS
  10196.  
  10197.           TRUE if a character is available, FALSE if not.
  10198.  
  10199.         CAUTIONS and ADDITIONAL NOTES
  10200.  
  10201.           None.
  10202.  
  10203.  
  10204.  
  10205.         11.107. v_kflush -- flush keyboard buffer
  10206.  
  10207.         USAGE
  10208.  
  10209.           v_kflush();
  10210.  
  10211.           v_kflush clears the keyboard buffer of any pending input.
  10212.  
  10213.         RETURNS
  10214.  
  10215.           Nothing.
  10216.  
  10217.         CAUTIONS and ADDITIONAL NOTES
  10218.  
  10219.           None.
  10220.  
  10221.  
  10222.  
  10223.         11.108. v_border -- set border color
  10224.  
  10225.         USAGE
  10226.  
  10227.           v_border(color)
  10228.           int color;
  10229.  
  10230.              Set overscan border to specified color. 
  10231.  
  10232.         RETURNS
  10233.  
  10234.           Nothing.
  10235.  
  10236.         CAUTIONS and ADDITIONAL NOTES
  10237.  
  10238.           None.
  10239.  
  10240.  
  10241.  
  10242.                                                            Page: 167
  10243.                                                      The Window BOSS
  10244.  
  10245.  
  10246.  
  10247.         12. Registration Form
  10248.  
  10249.  
  10250.  
  10251.  
  10252.  
  10253.                                 Registration Form
  10254.  
  10255.                             Star Guidance Consulting
  10256.                                  273 Windy Drive 
  10257.                           Waterbury, Connecticut 06705
  10258.                                  (203) 574-2449
  10259.  
  10260.  
  10261.            Company Name:       _______________________________________
  10262.  
  10263.            Name:               _______________________________________
  10264.  
  10265.            Address:            _______________________________________
  10266.  
  10267.                                _______________________________________
  10268.  
  10269.            City, State, Zip:   _______________________________________
  10270.  
  10271.            Country:            _______________________________________
  10272.  
  10273.            Phone:              _______________________________________  
  10274.  
  10275.  
  10276.                   ___ Library Source @ $55.00 USD      $________._____
  10277.                   ___ Shareware      @ $20.00 USD      $________._____
  10278.                       Shipping (Outside USA) $5.00 USD $________._____
  10279.                       Shipping (USA)         $4.00 USD $________._____
  10280.                       Connecticut Sales Tax 8.0%       $_______4.40___ *
  10281.                       (Connecticut residents only)  * 
  10282.                                            TOTAL ------>________._____
  10283.  
  10284.  
  10285.            MasterCard/Visa: ______________________ Exp Date: ____/____
  10286.            (Circle one)
  10287.  
  10288.            Printed Name:    ______________________
  10289.            (On Card)
  10290.                    
  10291.            Signature:       ______________________ Date:____/____/____
  10292.            (Of Card Holder)
  10293.  
  10294.            All funds must be in US Dollars, Call for UPS COD (USA only),
  10295.            Personal and Company Checks Accepted. All checks must be drawn 
  10296.            against a US Bank and payable in US Dollars.
  10297.  
  10298.  
  10299.  
  10300.  
  10301.  
  10302.  
  10303.                                                            Page: 168
  10304.                                                      The Window BOSS
  10305.  
  10306.  
  10307.  
  10308.  
  10309.         A
  10310.         ASMFILES.LZH, 31, 32
  10311.         Aztec C, 54
  10312.         AZTEC.LZH, 31, 32
  10313.         azvlib.asm, 64
  10314.  
  10315.         B
  10316.         Bad Handle Exits, 46
  10317.         Basics
  10318.           Forms, 4
  10319.           Mouse, 19
  10320.           Windows, 4
  10321.         BIOS, 48
  10322.         Borland Turbo C, 50
  10323.         Borland Turbo C++, 50
  10324.         BOSS_DOC.LZH, 26, 27
  10325.         BOSS_LB1.LZH, 26, 27, 29, 41
  10326.         BOSS_LB2.LZH, 26, 27, 29
  10327.         BOSS_LB3, 30
  10328.         BOSS_LB3.LZH, 26, 27
  10329.         BOSS_LB4, 30
  10330.         BOSS_LB4.LZH, 26, 27
  10331.         BOSS_LB5, 30
  10332.         BOSS_LB5.LZH, 27
  10333.         BOSS_SUP.LZH, 26, 27, 29, 41
  10334.         Bulletin Board
  10335.           Files, 26
  10336.           Support, 26
  10337.  
  10338.         C
  10339.         C86.LZH, 31, 32
  10340.         CFILES.LZH, 31, 33, 34
  10341.         CSM.BAT, 42
  10342.  
  10343.         D
  10344.         Data Entry (Basics), 6
  10345.         Datalight C, 53
  10346.         DEMO.LZH, 31
  10347.         DLC.LZH, 31, 36
  10348.         dlvlib.asm, 64
  10349.         DOC.LZH, 31
  10350.         dos.mac, 64
  10351.  
  10352.         E
  10353.         Express C, 53
  10354.  
  10355.         F
  10356.         fields, 23
  10357.         Fixup Errors, 45
  10358.         FLASH, 48
  10359.         forms, 23
  10360.           closing, 23
  10361.         Forms (Basics), 7
  10362.  
  10363.  
  10364.                                                            Page: 169
  10365.                                                      The Window BOSS
  10366.  
  10367.  
  10368.  
  10369.  
  10370.         G
  10371.         GENINDEX, 14, 15, 17, 129
  10372.         Globals, 48
  10373.  
  10374.         H
  10375.         Help System
  10376.           Basics, 14
  10377.           Notes, 16, 17
  10378.  
  10379.         I
  10380.         INCLUDE Files, 42, 43
  10381.  
  10382.         L
  10383.         Lattice C, 53
  10384.         LC3.LZH, 31, 35
  10385.         LC6.LZH, 35
  10386.         LDATA, 64
  10387.         LHARC.DOC, 31
  10388.         LHARC.EXE, 31
  10389.         LHAR_DOC.LZH, 26
  10390.         LPROG, 64
  10391.         LWIN.LIB, 41
  10392.         LZH Files, 26
  10393.  
  10394.         M
  10395.         macros.asm, 64
  10396.         Microsoft C, 49
  10397.         Microsoft Quick C, 49
  10398.         mitem, 9
  10399.         Mix Power C, 50
  10400.         MIX.LZH, 31, 35
  10401.         model.h, 64
  10402.         Mouse (Basics), 19, 20, 21
  10403.         mo_clim, 141
  10404.         mo_hide, 136
  10405.         mo_locate, 150
  10406.         mo_lpoff, 147
  10407.         mo_lpon, 147
  10408.         mo_motion, 145
  10409.         mo_move, 138
  10410.         mo_nbutt, 158
  10411.         mo_pbinfo, 139
  10412.         mo_pos, 137
  10413.         mo_press, 151
  10414.         mo_ratio, 147
  10415.         mo_rbinfo, 140
  10416.         mo_rcpos, 148
  10417.         mo_reigon, 155
  10418.         mo_release, 153
  10419.         mo_reset, 134
  10420.         mo_rlim, 141
  10421.         mo_scursor, 143
  10422.         mo_setptr, 156
  10423.  
  10424.  
  10425.                                                            Page: 170
  10426.                                                      The Window BOSS
  10427.  
  10428.  
  10429.  
  10430.         mo_sgcursor, 142
  10431.         mo_show, 135
  10432.         mo_task, 146
  10433.         mo_wait, 157
  10434.         MS5.LZH, 31, 37
  10435.         MS6.LZH, 31, 37
  10436.         MSQC.LZH, 31
  10437.         MSQC20.LZH, 38
  10438.         MSQC25.LZH, 38
  10439.         msvlib.asm, 64
  10440.         MWIN.MIX, 41
  10441.  
  10442.         O
  10443.         Offset Errors, 45
  10444.  
  10445.         P
  10446.         PAINT, 48
  10447.         pcvlib.asm, 64
  10448.         pmenu, 9, 10, 11
  10449.         Popup Menus (Basics), 8
  10450.  
  10451.         R
  10452.         REVHST.LZH, 31
  10453.  
  10454.         S
  10455.         Shareware Diskette, 26
  10456.         Source Diskette, 26
  10457.         Support, 2
  10458.         Support Services, 2
  10459.         SWIN.LIB, 41
  10460.  
  10461.         T
  10462.         TC2.LZH, 31, 36
  10463.         TCPP.LZH, 36
  10464.         tcvlib.asm, 63
  10465.         TopSpeed C, 51, 52, 60
  10466.         TSC.LZH, 31, 40
  10467.         Turbo C++, 63
  10468.  
  10469.         U
  10470.         Unresolved Externals, 45
  10471.  
  10472.         V
  10473.         video attributes, 22
  10474.         vlib.asm, 64
  10475.         v_border, 167
  10476.         v_cls, 161
  10477.         v_getch, 166
  10478.         v_hidec, 163
  10479.         v_kflush, 167
  10480.         v_kstat, 167
  10481.         v_locate, 163
  10482.         v_rcpos, 165
  10483.         v_rcvs, 166
  10484.  
  10485.  
  10486.                                                            Page: 171
  10487.                                                      The Window BOSS
  10488.  
  10489.  
  10490.  
  10491.         v_sapd, 165
  10492.         v_sapu, 164
  10493.         v_sctype, 164
  10494.         v_smode, 161
  10495.         v_spage, 160
  10496.         v_wca, 162
  10497.         v_wtty, 162
  10498.  
  10499.         W
  10500.         Watcom C, 53
  10501.         WATCOM.LZH, 31, 39
  10502.         wcvlib.asm, 64
  10503.         window handles, 22
  10504.         window origin, 22
  10505.         windows
  10506.           closing, 23
  10507.           overlapping, 24
  10508.           tiled, 24
  10509.         Windows (Basics), 5
  10510.         WINDOWS.C, 48
  10511.         WINDOWS.EXT, 42, 43, 48
  10512.         WINDOWS.FN5, 42
  10513.         WINDOWS.FN6, 42
  10514.         WINDOWS.FNS, 42, 43
  10515.         WINDOWS.FNT, 42
  10516.         WINDOWS.FNZ, 42
  10517.         WINDOWS.H, 42, 43
  10518.         wns_escape, 48
  10519.         wn_activate, 83
  10520.         wn_boxset, 88
  10521.         wn_close, 75
  10522.         wn_clr, 83
  10523.         wn_color, 84
  10524.         wn_dborder, 89
  10525.         wn_delrow, 82
  10526.         wn_dma, 87
  10527.         wn_dmaflg, 48
  10528.         wn_dmode, 48, 69
  10529.         wn_dtext, 122
  10530.         wn_exit, 68
  10531.         wn_fixcsr, 87
  10532.         wn_frmcls, 97
  10533.         wn_frmget, 96
  10534.         wn_frmopn, 95
  10535.         wn_gatext, 104
  10536.         wn_gbool, 120
  10537.         wn_gdate, 98
  10538.         wn_gdouble, 118
  10539.         wn_gets, 80
  10540.         wn_gfloat, 116
  10541.         wn_gint, 108
  10542.         wn_glong, 112
  10543.         wn_gltext, 104
  10544.         wn_gphone, 102
  10545.  
  10546.  
  10547.                                                            Page: 172
  10548.                                                      The Window BOSS
  10549.  
  10550.  
  10551.  
  10552.         wn_gpword, 106
  10553.         wn_gtext, 104
  10554.         wn_gtime, 100
  10555.         wn_guint, 110
  10556.         wn_gulong, 114
  10557.         wn_gutext, 104
  10558.         wn_help, 130
  10559.         wn_hlinit, 14, 15, 127
  10560.         wn_iemsg, 123
  10561.         wn_ihmsg, 124
  10562.         wn_init, 68
  10563.         wn_input, 90
  10564.         wn_insrow, 82
  10565.         wn_locate, 77
  10566.         wn_move, 76
  10567.         wn_natrib, 88
  10568.         wn_open, 70
  10569.         wn_pmenu, 12
  10570.         wn_popup, 8, 11, 125
  10571.         wn_printf, 78
  10572.         wn_psinit, 68
  10573.         wn_putc, 79
  10574.         wn_putca, 81
  10575.         wn_puts, 79
  10576.         wn_putsa, 81
  10577.         wn_qpopup, 8, 12, 126
  10578.         wn_restore, 76
  10579.         wn_save, 75
  10580.         wn_sbit, 48
  10581.         wn_scenter, 132
  10582.         wn_scroll, 48, 86
  10583.         wn_sdelspc, 133
  10584.         wn_shkey, 90, 91, 124
  10585.         wn_sleftj, 131
  10586.         wn_srightj, 131
  10587.         wn_stitla, 74
  10588.         wn_stitle, 73
  10589.         wn_strndx, 133
  10590.         wn_sync, 85
  10591.         wn_titla, 72
  10592.         wn_title, 72
  10593.         wn_wrap, 85
  10594.  
  10595.         X
  10596.         XMWIN.LIB, 41
  10597.  
  10598.         Z
  10599.         Zortec C, 50
  10600.         Zortech, 53
  10601.         ZTC.LZH, 31, 39
  10602.  
  10603.  
  10604.  
  10605.  
  10606.  
  10607.  
  10608.                                                            Page: 173
  10609.                                                      The Window BOSS
  10610.  
  10611.  
  10612.  
  10613.         _
  10614.         _getca, 159
  10615.         _putca, 159
  10616.         _vidblt, 160
  10617.  
  10618.  
  10619.  
  10620.  
  10621.  
  10622.  
  10623.  
  10624.  
  10625.  
  10626.  
  10627.  
  10628.  
  10629.  
  10630.  
  10631.  
  10632.  
  10633.  
  10634.  
  10635.  
  10636.  
  10637.  
  10638.  
  10639.  
  10640.  
  10641.  
  10642.  
  10643.  
  10644.  
  10645.  
  10646.  
  10647.  
  10648.  
  10649.  
  10650.  
  10651.  
  10652.  
  10653.  
  10654.  
  10655.  
  10656.  
  10657.  
  10658.  
  10659.  
  10660.  
  10661.  
  10662.  
  10663.  
  10664.  
  10665.  
  10666.  
  10667.  
  10668.  
  10669.                                                            Page: 174
  10670. 
  10671.