home *** CD-ROM | disk | FTP | other *** search
/ The Pier Shareware 6 / The_Pier_Shareware_Number_6_(The_Pier_Exchange)_(1995).iso / 035 / kwclass.zip / KENTRYFD.HPP < prev    next >
C/C++ Source or Header  |  1994-04-18  |  1KB  |  39 lines

  1. #ifndef _KENTRYFD_
  2. #define _KENTRYFD_
  3.  
  4. #ifndef _IENTRYFD_
  5.   #include <ientryfd.hpp>
  6. #endif
  7.  
  8. class KValidator;
  9.  
  10. class _Export KEntryField : public IEntryField
  11. {
  12.    typedef IEntryField Inherited;
  13.    public:
  14.       KEntryField(unsigned long id,
  15.                   IWindow *wndParent,
  16.                   IWindow *wndOwner,
  17.                   const IRectangle &initial,
  18.                   const IResourceId &resText,
  19.                   const IEntryField::Style style);
  20.       KEntryField(unsigned long id,
  21.                   IWindow *wndParent,
  22.                   IWindow *wndOwner,
  23.                   const IRectangle &initial,
  24.                   const IEntryField::Style style);
  25.       Boolean validate(unsigned long pos=-1);
  26.       KValidator* validator() const;
  27.       KEntryField& setValidator(KValidator *val);
  28.  
  29.       virtual ITextControl& setText(const IResourceId& text);
  30.       virtual ITextControl& setText(const char* text);
  31.  
  32.       virtual IString text() const;
  33.  
  34.    private:
  35.       KValidator* _validator;
  36. };
  37.  
  38. #endif
  39.