home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c083 / 19.ddi / OWLINC.PAK / INPUTDIA.H < prev    next >
Encoding:
C/C++ Source or Header  |  1993-12-02  |  1.5 KB  |  59 lines

  1. //----------------------------------------------------------------------------
  2. // ObjectWindows - (C) Copyright 1991, 1993 by Borland International
  3. //   include\owl\inputdia.h
  4. //   Definition of TInputDialog class
  5. //----------------------------------------------------------------------------
  6. #if !defined(__OWL_INPUTDIA_H)
  7. #define __OWL_INPUTDIA_H
  8.  
  9. #if !defined(__OWL_DIALOG_H)
  10.   #include <owl\dialog.h>
  11. #endif
  12. #include <owl\inputdia.rh>
  13.  
  14. class _OWLCLASS TValidator;
  15.  
  16. //
  17. //  class TInputDialog
  18. //  ----- ------------
  19. //
  20. class _OWLCLASS TInputDialog : public TDialog {
  21.   public:
  22.     char far* Prompt;
  23.     char far* Buffer;
  24.     int       BufferSize;
  25.  
  26.     TInputDialog(TWindow*        parent,
  27.                  const char far* title,
  28.                  const char far* prompt,
  29.                  char far*       buffer,
  30.                  int             bufferSize,
  31.                  TModule*        module = 0,
  32.                  TValidator*     valid = 0);  // Optional validator
  33.  
  34.    ~TInputDialog();
  35.  
  36.     //
  37.     // Override TWindow virtual member functions
  38.     //
  39.     void TransferData(TTransferDirection);
  40.  
  41.  
  42.   protected:
  43.     //
  44.     // Override TWindow virtual member functions
  45.     //
  46.     void SetupWindow();
  47.  
  48.   private:
  49.     //
  50.     // hidden to prevent accidental copying or assignment
  51.     //
  52.     TInputDialog(const TInputDialog&);
  53.     TInputDialog& operator=(const TInputDialog&);
  54.  
  55.   DECLARE_STREAMABLE(_OWLCLASS, TInputDialog, 1);
  56. };
  57.  
  58. #endif  // __OWL_INPUTDIA_H
  59.