home *** CD-ROM | disk | FTP | other *** search
/ Media Share 9 / MEDIASHARE_09.ISO / cprog / ev_201.zip / TSTATUSL.HPP < prev    next >
C/C++ Source or Header  |  1993-07-03  |  2KB  |  78 lines

  1. #if !defined (TSTATUSLINE)           // Prevents multiple declarations errors
  2. #define TSTATUSLINE
  3.  
  4.  
  5. /*
  6.    Module        : TSTATUSLINE.HPP
  7.    Version       : 2.0
  8.    Revision date : July 3rd, 1993
  9.    Author(s)     : Remy Gendron
  10.  
  11.    Description   : Tstatusline's member functions.
  12. */
  13.  
  14.  
  15. // Headers ------------------------------------------------------------------
  16.  
  17. #include <conio.h>
  18. #include <stdio.h>
  19.  
  20.  
  21. // Macros -------------------------------------------------------------------
  22.  
  23. #include "stdmacro.h"                           // Standard macro definitions
  24.  
  25.  
  26. // TypeDefs -----------------------------------------------------------------
  27.  
  28. #include "stdtype.h"                             // Standard type definitions
  29.  
  30.  
  31. // Prototypes ---------------------------------------------------------------
  32.  
  33. class tstatusline
  34. {
  35.    int       stat_backcolor ;                             // Background color
  36.    int       stat_forecolor ;                             // Foreground color
  37.    int       stat_highcolor ;                              // Highlight color
  38.    int       stat_length ;                             // Right areas' length
  39.    int       stat_screenheight ;                    // Current screen's sizes
  40.    int       stat_screenwidth ;
  41.    char huge *stat_message ;                        // Current message's text
  42.  
  43.  
  44. public:
  45.  
  46. far tstatusline () ;                                           // Constructor
  47.  
  48. far ~tstatusline () ;                                           // Destructor
  49.  
  50. void far tstatusline::setcolors                                // Sets colors
  51. (
  52.    int back=LIGHTGRAY,                                    // Background color
  53.    int fore=BLACK,                                        // Foreground color
  54.    int high=RED                                            // Highlight color
  55. ) ;
  56.  
  57. void far tstatusline::display                             // Displays message
  58. (
  59.    char huge *text=NULL                               // Text to be displayed
  60. ) ;
  61.  
  62. char huge* far tstatusline::getmsg () ;                  // Gets last message
  63.  
  64. void far tstatusline::refresh () ;                  // Redraws the statusline
  65.  
  66.  
  67. } ;
  68.  
  69.  
  70. // --------------------------------------------------------------------------
  71.  
  72. extern tstatusline statusline ;  // Reference to the statusline global object
  73.  
  74.  
  75. // End Header File ----------------------------------------------------------
  76.  
  77. #endif
  78.