home *** CD-ROM | disk | FTP | other *** search
/ Power GUI Programming with VisualAge C++ / powergui.iso / trialva / ibmcppw / samples / ioc / lancelot / lprdinfo.hpp < prev    next >
Encoding:
C/C++ Source or Header  |  1996-02-22  |  2.9 KB  |  70 lines

  1. /******************************************************************************
  2. * .FILE:         lprdinfo.hpp                                                 *
  3. *                                                                             *
  4. * .DESCRIPTION:  Lancelot Sample Program:              Class Definition       *
  5. *                                                                             *
  6. * .CLASSES:      LProdInfoDialog                                              *
  7. *                                                                             *
  8. * .COPYRIGHT:                                                                 *
  9. *    Licensed Material - Program-Property of IBM                              *
  10. *    (C) Copyright IBM Corp. 1992, 1996 - All Rights Reserved                 *
  11. *                                                                             *
  12. * .DISCLAIMER:                                                                *
  13. *   The following [enclosed] code is sample code created by IBM               *
  14. *   Corporation.  This sample code is not part of any standard IBM product    *
  15. *   and is provided to you solely for the purpose of assisting you in the     *
  16. *   development of your applications.  The code is provided 'AS IS',          *
  17. *   without warranty of any kind.  IBM shall not be liable for any damages    *
  18. *   arising out of your use of the sample code, even if they have been        *
  19. *   advised of the possibility of such damages.                               *
  20. *                                                                             *
  21. * .NOTE: WE RECOMMEND USING A FIXED SPACE FONT TO LOOK AT THE SOURCE          *
  22. *                                                                             *
  23. ******************************************************************************/
  24. #include <iframe.hpp>
  25. #include <icmdhdr.hpp>
  26. #include <iiconctl.hpp>
  27. #include <istattxt.hpp>
  28. #include <ipushbut.hpp>
  29. #include <isetcv.hpp>
  30.  
  31. class IWindow;
  32.  
  33. /*************************************************/
  34. /* Class: LProdInfoDialog                         */
  35. /*                                               */
  36. /* Purpose: Encapsulates the Product information */
  37. /*          dialog shown when the user selects   */
  38. /*          Product information from the Help    */
  39. /*          pull-down menu. This class is a      */
  40. /*          subclass of IFrameWindow and         */
  41. /*          ICommandHandler.                     */
  42. /*************************************************/
  43. class LProdInfoDialog : public IFrameWindow,
  44.                        public ICommandHandler
  45. {
  46.   public:
  47.  
  48.     LProdInfoDialog (IWindow *owner);
  49.     ~LProdInfoDialog ();
  50.  
  51.   protected:
  52.     virtual Boolean
  53.       command( ICommandEvent& cmdevt);
  54.  
  55.   private:
  56.     ISetCanvas
  57.       canvas;
  58.     IIconControl
  59.       iconCtl;
  60.     IStaticText
  61.       text1,
  62.       text2,
  63.       text3,
  64.       text4,
  65.       text5;
  66.     IPushButton
  67.       button;
  68. };
  69.  
  70.