home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / VSCPPv8.zip / VACPP / IBMCPP / samples / VISBUILD / CALCULAT / CPPOV13 / ICLRDSP.HPP < prev    next >
Text File  |  1995-05-15  |  2KB  |  60 lines

  1. //****************************************************************************
  2. // IClearDisplay Class - C++ Header File (iclrdsp.hpp)                       *
  3. //                                                                           *
  4. // COPYRIGHT: Copyright (C) International Business Machines Corp., 1994,1995 *
  5. //                                                                           *
  6. // DISCLAIMER OF WARRANTIES:                                                 *
  7. //   The following [enclosed] code is sample code created by IBM             *
  8. //   Corporation.  This sample code is not part of any standard IBM product  *
  9. //   and is provided to you solely for the purpose of assisting you in the   *
  10. //   development of your applications.  The code is provided "AS IS",        *
  11. //   without warranty of any kind.  IBM shall not be liable for any damages  *
  12. //   arising out of your use of the sample code, even if they have been      *
  13. //   advised of the possibility of such damages.                             *
  14. //****************************************************************************
  15. //NOTE: WE RECOMMEND USING A FIXED-SPACE FONT TO LOOK AT THE SOURCE.
  16. //
  17.  
  18. #include <istring.hpp>
  19. #include <icmdhdr.hpp>   // ICommandHandler
  20.  
  21. #ifndef _IENTRYFD_
  22. #include <ientryfd.hpp>
  23. #endif
  24.  
  25. #ifndef _IPUSHBUT_
  26. #include <ipushbut.hpp>
  27. #endif
  28.  
  29. //**************************************************************************
  30. // Class:   IClearDisplay
  31. //
  32. // Purpose: Clears the entry field using the
  33. //          ICommandHandler class
  34. //
  35. //***************************************************************************
  36.  
  37. class _Export IClearDisplay : public ICommandHandler
  38.  
  39. {
  40. public:
  41.  
  42.   IClearDisplay(IEntryField & theDisplay, IPushButton & theClearPushButton); 
  43.   ~IClearDisplay();     //destructor
  44.  
  45. // Implementor Method Functions                 
  46.  
  47. protected:
  48.  
  49. Boolean command(ICommandEvent& cmdEvent);
  50.  
  51. private:
  52.  
  53. // private member data
  54.  
  55. IEntryField  &display;
  56. IPushButton &clearPushButton;
  57.  
  58. };   //IClearDisplay
  59.  
  60.