home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c003 / 1.ddi / DEMOS / WFC_FLY.DOC < prev    next >
Encoding:
Text File  |  1986-11-26  |  8.1 KB  |  169 lines

  1.  
  2.                OVERVIEW OF WINDOWS FOR C
  3.  
  4.     Windows for C provides an integrated set of window-based functions that
  5.     simplify all common screen display tasks.
  6.  
  7.     Capabilities include:
  8.  
  9.            * Unlimited windows and files
  10.            * Horizontal and vertical scrolling
  11.            * Pop-up windows, menus, and help files
  12.            * Status line management
  13.            * Off-screen buffers
  14.            * Rapid screen changes
  15.            * Frugal memory use
  16.            * Logical video attributes
  17.            * Color-control
  18.            * Highlighting
  19.            * Window names
  20.            * String output with word wrap and auto scroll
  21.            * Formatted string output
  22.            * Print windows
  23.            * Keyboard input
  24.            * Read screen attributes and characters
  25.            * Plus a library of over 80 building
  26.          block subroutines
  27.  
  28.     Managing windows:  There is no limit to the number of windows that can
  29.     be established.  Each window is controlled by a C-language structure
  30.     that contains all the information needed for managing the window.
  31.     Reference to the window structure substitutes for long parameter lists
  32.     in function calls.    This simplifies coding, reduces errors, and saves
  33.     time.
  34.  
  35.     Displaying files:  Routines are provided for reading ASCII files into
  36.     memory and viewing them through windows.  A cursor-pad interpreter
  37.     permits scrolling through the file horizontally or vertically.  These
  38.     routines, for which source is provided, will be especially helpful for
  39.     providing users with access to help files.    Context-sensitive help
  40.     systems are easily implemented.
  41.  
  42.     Pop-up windows:  Windows can either pop-up onto or overwrite the
  43.     screen.  Pop-up windows are implemented simply by setting a switch in
  44.     the window structure.  Underlying screen contents are automatically
  45.     saved and restored for pop-up windows.
  46.  
  47.     Pop-up menus:  Ready-to-use routines are provided for pop-up menus.
  48.     The menu can be larger than the window.  The cursor keys are used to
  49.     select an item.  Selections are highlighted.  Source is provided so
  50.     that the routines can be modified and enhanced to meet individual
  51.     needs.
  52.  
  53.     Status-line management:  Status lines are easily maintained as
  54.     single-line windows.  Special options in the string output functions
  55.     simplify the task of updating information in the status line.
  56.  
  57.     Off-screen buffers:  Facilities are provided for managing and
  58.     displaying memory files.  These files, which can be of any size, can be
  59.     updated dynamically.  They provide a superior alternative to virtual
  60.     screens for the capture and display of real-time information.
  61.  
  62.     Display speed:  Writing to the screen is done via our own interface
  63.     routines that have been designed to achieve speed without sacrificing
  64.     clarity.
  65.  
  66.     Memory usage:  The only memory initially required by a window is that
  67.     required by the window structure -- about 50 bytes.
  68.  
  69.      Memory is used only when needed.  All functions are in separate
  70.      modules; so only those used are linked into the executable
  71.      program.  Because of efficient design, the code is compact.
  72.      Typically, programs that make extensive use of the Windows library
  73.      will increase in size by 15 to 20 kilobytes.
  74.  
  75.      Memory is allocated for window buffers only when off-screen
  76.      storage of window contents is needed, such as when a pop-up window
  77.      is displayed.    Only the amount of memory needed at the moment is
  78.      allocated.  When no longer needed, buffer memory is released.
  79.  
  80.     Logical video attributes:  Professional programmers will appreciate the
  81.     availability of logical video attributes in Windows for C.    A single
  82.     program can be written that uses the full color capabilities of the IBM
  83.     Enhanced Graphics Adapter and the more limited colors available with
  84.     the standard Color/Graphics adapter, while still being completely
  85.     legible on monochrome displays.
  86.  
  87.     Color-control:  Functions provide complete control over color
  88.     capabilities of the IBM PC family.    The colors of window borders and
  89.     contents can be set individually.  A Window will automatically be
  90.     cleared to the background attribute specified for that window.
  91.  
  92.     Highlighting:  Highlighting is easily accomplished using a function
  93.     that changes the attribute without affecting the character contents of
  94.     specified portions of a window.
  95.  
  96.     Writing to windows:  A variety of string and character output functions
  97.     are available.  Switches are provided to control word wrap, auto
  98.     scrolling on full screen, automatic updating of the cursor, screen
  99.     cursor placement, and auto clearing to the end of a row.
  100.  
  101.     Formatted output:  Formatted string output, equivalent to printf(), is
  102.     provided.  Screen output is much faster than that provided by
  103.     compiler-supplied printf() routines, which utilize DOS function calls
  104.     to write to the screen.
  105.  
  106.     Printing windows:  Contents of windows can be copied to standard ASCII
  107.     files or to the printer.  The print-window function simplifies printing
  108.     text in unusual formats.
  109.  
  110.     Reading the keyboard:  A function is provided that reads the keyboard
  111.     and returns the entire IBM Extended ASCII key set with a single call.
  112.     The keyboard buffer can also be checked for an available keystroke.
  113.  
  114.     Reading the screen:  Characters and attributes can be read
  115.     singly, or the character-attribute contents of specified parts of a
  116.     window can be read in a single call.
  117.  
  118.     TopView Compatibility:  Programs that rely on Windows for C for screen
  119.     output are fully compatible with TopView, IBM's multi-tasking operating
  120.     system.  The programs can operate in background mode under TopView and
  121.     can make use of TopView's windowing functions.
  122.  
  123.     IBM Enhanced Graphics Adapter support:  A global variable is set when
  124.     the IBM EGA is the active display adapter.    When the EGA is active,
  125.     output to the screen in color modes is as fast as with the Monochrome
  126.     Display Adapter.
  127.  
  128.     Building blocks:  A library of over 65 building-block subroutines
  129.     allows you to modify the supplied modules and to construct new
  130.     integrated routines to suit your needs.
  131.  
  132.     PRACTICAL ROUTINES AND LEARNING AIDS
  133.  
  134.     In addition to tutorials and code examples included in the reference
  135.     manual, several integrated routines are provided that can be used
  136.     without modification to accomplish common tasks of window management.
  137.     These routines are incorporated in demonstration programs that
  138.     illustrate their use and serve as teaching tools for the use of Window
  139.     functions.    C source to the library level is provided for these
  140.     programs.
  141.  
  142.        * demo_wn reads multiple ASCII files into memory, displays them in
  143.      multiple windows, and provides the user with cursor-pad control
  144.      for viewing the files.  Complete C source is provided for the
  145.      file-input and cursor-control routines.
  146.  
  147.        * dem_menu reads an ASCII file into memory and provides the user
  148.      with the ability to call up a menu and select an item.  Cursor pad
  149.      commands are used to move through the menu, which can be larger
  150.      than the menu-display window.    Menu items pointed to are
  151.      highlighted with reverse video.  After selection, the menu is
  152.      automatically removed and the original screen contents replaced.
  153.      The item selected is reported on a status line.
  154.  
  155.        * dem_cmov demonstrates the color management and window storage
  156.      and movement capabilities of Windows for C.  Colored windows are
  157.      moved rapidly around the screen.  The movement of images is useful
  158.      for games, but the rapid speed with which windows can be stored
  159.      and restored is also valuable for business applications.
  160.  
  161.        * prt_labl reads addresses stored sequentially in a file and
  162.      places them on the screen in side-by-side format.  A print-window
  163.      function is then used to print the windows in this format.  This
  164.      program illustrates how Window functions can be use to simplify
  165.      printing in unusual formats.
  166.  
  167.        * dem_grph illustrates the use of the graphing functions included
  168.      in Windows for C.  Vertical and horizontal bar graphs are drawn.
  169.