home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / igpb1.zip / ADIALOG4.HPP < prev    next >
Text File  |  1994-03-01  |  3KB  |  54 lines

  1. #ifndef ATEXTDIALOG_HPP
  2. #define ATEXTDIALOG_HPP
  3. /******************************************************************************/
  4. /* HELLO WORLD SAMPLE PROGRAM - Version 4: ATextDialog Class  (ADIALOG4.HPP)  */
  5. /*                                                                            */
  6. /* COPYRIGHT: Copyright (C) International Business Machines Corp., 1992,1993. */
  7. /*                                                                            */
  8. /* DISCLAIMER OF WARRANTIES:                                                  */
  9. /*   The following [enclosed] code is sample code created by IBM              */
  10. /*   Corporation.  This sample code is not part of any standard IBM product   */
  11. /*   and is provided to you solely for the purpose of assisting you in the    */
  12. /*   development of your applications.  The code is provided "AS IS",         */
  13. /*   without warranty of any kind.  IBM shall not be liable for any damages   */
  14. /*   arising out of your use of the sample code, even if they have been       */
  15. /*   advised of the possibility of such damages.                              */
  16. /******************************************************************************/
  17.  
  18. //**************************************************************************
  19. // The entire file was created at version 4                                *
  20. //**************************************************************************
  21.  
  22. #include <iframe.hpp>                   //IFrameWindow Class (Parent)
  23. #include <inotebk.hpp>
  24. #include <icmdhdr.hpp>                  //ICommandHandler (Parent)
  25.  
  26. class IEntryField;
  27.  
  28. //**************************************************************************
  29. // Class:   ATextDialog                                                    *
  30. //                                                                         *
  31. // Purpose: Dialog window for the C++ Hello World sample application.      *
  32. //          It is a subclass of IFrameWindow, ICommandHandler              *
  33. //                                                                         *
  34. //**************************************************************************
  35. class ATextDialog : public IFrameWindow, public ICommandHandler
  36. {
  37. public:
  38.   ATextDialog (IString & textString, IWindow * ownerWnd) ;
  39.   ~ATextDialog();
  40.  
  41. protected:
  42.   virtual Boolean
  43.     command(ICommandEvent& cmdevt);     //Process the dialog command events
  44.  
  45. private:
  46.   IEntryField * textField ;             //Entry Field to Edit Hello Text
  47.   IString & textValue ;                 //String Value for in/out of dialog
  48.   INotebook notebook;
  49.   IFrameWindow dlgFrame;
  50.  
  51. }; // TextDialog
  52.  
  53. #endif
  54.