home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD2.mdf / c / library / dos / tvision / vlstde / demo2.hpp < prev    next >
Encoding:
C/C++ Source or Header  |  1992-02-12  |  1.0 KB  |  55 lines

  1. // demo2.hpp            BROWSE RECORD EDIT WINDOW
  2. //    written by Gregory K. Miskin
  3. //    COPYRIGHT (C) 1992.  All Rights Reserved.
  4. //    Gregory K. Miskin, Orem, Utah  USA
  5.  
  6. #ifndef _demo2_hpp
  7. #define _demo2_hpp
  8.  
  9. #include <tv.h>
  10. #include "formatln.hpp"
  11. #include "d4all.h"
  12.  
  13. class TEditRecord : public TDialog
  14. {
  15. public:
  16.      CodeBase     *cBase;
  17.      DataIndex    *name;
  18.      Field        *Fld;
  19.  
  20.      TEditRecord(long rec);
  21.      ~TEditRecord();
  22.      virtual void handleEvent(TEvent& event);
  23.  
  24. protected:
  25.     long RecordNo;
  26.  
  27.     void Initialize();
  28.     void SaveFile();
  29.     void Quit();
  30.     void Delete();
  31.     void UnDelete();
  32.     void WriteRecord();
  33.     void GetStr(int field_num, char *fld);
  34.     void PutStr(int field_num, char *fld);
  35.     void GetAllFields();
  36.  
  37.     TFormatLine *e_store;
  38.     TFormatLine *e_count;
  39.     TFormatLine *e_recno;
  40.     TFormatLine *e_fname;
  41.     TFormatLine *e_lname;
  42.     TFormatLine *e_street;
  43.     TFormatLine *e_city;
  44.     TFormatLine *e_state;
  45.     TFormatLine *e_zip;
  46.     TFormatLine *e_phone;
  47.     TFormatLine *e_bday;
  48.  
  49.     TButton        *e_save;
  50.     TButton        *e_del;
  51.     TButton        *e_undel;
  52.     TButton        *e_quit;
  53. };
  54. #endif
  55.