home *** CD-ROM | disk | FTP | other *** search
/ Programmer 7500 / MAX_PROGRAMMERS.iso / VISUAL_B / PROGRAMS / EM_EDIT / MDTMSSGB.H < prev    next >
Encoding:
C/C++ Source or Header  |  1994-04-13  |  1.7 KB  |  67 lines

  1. #if !defined(__mdtmssgb_h)              // Sentry, use file only if it's not already included.
  2. #define __mdtmssgb_h
  3.  
  4. /*  Project emedit
  5.     Early Morning Software
  6.     Copyright ⌐ 1993. All Rights Reserved.
  7.  
  8.     SUBSYSTEM:    emedit.exe Application
  9.     FILE:         mdtmssgb.h
  10.     AUTHOR:       Ted Stockwell
  11.  
  12.  
  13.     OVERVIEW
  14.     ========
  15.     Class definition for emeditMessageBar (TMessageBar).      
  16. */
  17.  
  18. #include <owl\owlpch.h>
  19. #if !defined(__OWL_MESSAGEB_H)
  20.   #include "owl\messageb.h"
  21. #endif
  22. #if !defined(__OWL_TEXTGADG_H)
  23.   #include "owl\textgadg.h"
  24. #endif
  25. #pragma hdrstop
  26.  
  27. #include "emedtapp.rh"            // Definition of all resources.
  28.  
  29.  
  30. //{{TMessageBar = emeditMessageBar}}
  31. class emeditMessageBar : public TMessageBar {
  32. public:
  33.  
  34.     emeditMessageBar (TWindow* parent = 0);
  35.     virtual ~emeditMessageBar ();
  36.  
  37.     void SetInsertIndicator( BOOL );
  38.     void SetModifyIndicator( BOOL on = FALSE );
  39.     BOOL GetInsertIndicator();
  40.     BOOL GetModifyIndicator();
  41.     void GetPositionIndicator( long& X, long& Y, long& Count );
  42.     void SetPositionIndicator( long X= 0, long Y= 0, long cnt= 0 );
  43.  
  44.     struct TSpacing {
  45.       TMargins::TUnits  Units;
  46.       int               Value;
  47.  
  48.       TSpacing() {Units = TMargins::LayoutUnits; Value = 0;}
  49.     };
  50. protected:
  51.     long XPosition, YPosition, Count;
  52.     TTextGadget* PositionGadget;
  53.     TTextGadget* InsertGadget;
  54.     TTextGadget* ModifyGadget;
  55.     TSpacing               Spacing;
  56.  
  57.     TTextGadget* GetIndicatorGadget( int i );
  58.  
  59. //{{emeditMessageBarVIRTUAL_BEGIN}}
  60. public:
  61. //{{emeditMessageBarVIRTUAL_END}}
  62. };    //{{emeditMessageBar}}
  63.  
  64.  
  65. #endif                                      // __mdtmssgb_h sentry.
  66.  
  67.