home *** CD-ROM | disk | FTP | other *** search
- #if !defined (TSTATUSLINE) // To prevent multiple declarations
- #define TSTATUSLINE
-
- // ---- Library Header Files ------------------------------------------------
-
- #include <stdio.h>
- #include <conio.h>
-
-
- // ---- Class Declarations --------------------------------------------------
-
- class tstatusline
- {
- int leftlength ; // Left area length
- int leftbackground ; // Left area background color
- int leftforeground ; // Left area foreground color
- int lefthighlight ; // Left area highlight color
- char huge *leftmessage ; // Left area current message text
-
- int rightlength ; // Right area length
- int rightbackground ; // Right area background color
- int rightforeground ; // Right area foreground color
- int righthighlight ; // Right area highlight color
- char huge *rightmessage ; // Right area current message text
-
- int screenheight ; // Screen size
- int screenwidth ; // Screen size
-
- public:
-
- far tstatusline () ; // Constructor
- far ~tstatusline () ; // Destructor
-
- void far setleftcolors // Set left area colors
- ( int back, // Left area background color
- int fore=BLACK, // Left area foreground color
- int high=RED ) ; // Left area highlight color
- void far setrightcolors // Set right area colors
- ( int back, // right area background color
- int fore=BLACK, // right area foreground color
- int high=RED ) ; // right area highlight color
- void far displayleft // Display msg in left area
- ( char huge *text="" ) ; // Text to be displayed
- void far displayright // Display msg in right area
- ( char huge *text="" ) ; // Text to be displayed
- void far refresh () ; // Redraw the statusline
- } ;
-
-
- // ---- End Header File ----------------------------------------------------
-
- #endif
-