home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Source Code / Visual Basic Source Code.iso / vbsource / powervww / pvlabel.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-01-05  |  1.3 KB  |  47 lines

  1. //  ____________________________________________________
  2. // |                                                    |
  3. // |  Project:     POWER VIEW INTERFACE                 |
  4. // |  File:        PVLABEL.H                            |
  5. // |  Compiler:    WPP386 (10.6)                        |
  6. // |                                                    |
  7. // |  Subject:     Items labels interface               |
  8. // |                                                    |
  9. // |  Author:      Emil Dotchevski                      |
  10. // |____________________________________________________|
  11. //
  12. // E-mail: zajo@geocities.com
  13. // URL:    http://www.geocities.com/SiliconValley/Bay/3577
  14.  
  15. #ifndef _PVLABEL_H
  16. #define _PVLABEL_H
  17.  
  18.   class Tlabel: public Titem
  19.   {
  20.     public:
  21.       Tlabel( char *t, Titem *i );
  22.       virtual ~Tlabel( void );
  23.  
  24.     protected:
  25.       char *title;
  26.       uint shortcut;
  27.       Titem *item;
  28.       virtual void set_palette( void );
  29.       virtual void draw( void );
  30.       virtual void event_handler( Tevent &ev );
  31.   };
  32.  
  33.   class Tbox: public Tlabel
  34.   {
  35.     public:
  36.       Tbox( char *t, Titem *i );
  37.  
  38.     protected:
  39.       virtual boolean check_inside( int _x, int _y );
  40.       virtual void draw( void );
  41.  
  42.     private:
  43.       char title_len;
  44.   };
  45.  
  46. #endif
  47.