home *** CD-ROM | disk | FTP | other *** search
/ Power GUI Programming with VisualAge C++ / powergui.iso / trialva / ibmcppw / include / ivbfly.hpp < prev    next >
Encoding:
C/C++ Source or Header  |  1996-02-22  |  3.3 KB  |  99 lines

  1. #ifndef _IVBFLY_
  2. #define _IVBFLY_
  3. /*******************************************************************************
  4. * FILE NAME: ivfly.hpp                                                         *
  5. *                                                                              *
  6. * DESCRIPTION:                                                                 *
  7. *   This file contains the declaration(s) of the class(es):                    *
  8. *     IVBFlyText                                                               *
  9. *                                                                              *
  10. * COPYRIGHT:                                                                   *
  11. *   IBM(R) VisualAge(TM) for C++                                               *
  12. *   (C) Copyright International Business Machines Corporation 1991, 1996       *
  13. *   Licensed Material - Program-Property of IBM - All Rights Reserved.         *
  14. *   US Government Users Restricted Rights - Use, duplication, or disclosure    *
  15. *   restricted by GSA ADP Schedule Contract with IBM Corp.                     *
  16. *                                                                              *
  17. *   This program will not run in DOS mode.                                     *
  18. *                                                                              *
  19. *******************************************************************************/
  20.  
  21. #ifndef _IFLYTEXT_
  22.   #include <iflytext.hpp>
  23. #endif
  24.  
  25. /*-------------------------- Pragma Library Support --------------------------*/
  26. #ifndef __NO_DEFAULT_LIBS__
  27.   #ifdef __OS2__
  28.     #ifdef __IMPORTLIB__
  29.        #pragma library("CPPOOV3I.LIB")
  30.     #else
  31.        #pragma library("CPPOOV3.LIB")
  32.     #endif
  33.   #endif
  34.   #ifdef __WINDOWS__
  35.     #ifdef __IMPORTLIB__
  36.        #pragma library("CPPWOV3I.LIB")
  37.     #else
  38.        #pragma library("CPPWOV3.LIB")
  39.     #endif
  40.   #endif
  41. #endif
  42.  
  43. class IFlyOverHelpHandler;
  44.  
  45. /*----------------------------------------------------------------------------*/
  46. /* Align classes on four byte boundary.                                       */
  47. /*----------------------------------------------------------------------------*/
  48. #pragma pack(4)
  49.  
  50. class IVBFlyText : public IFlyText
  51. {
  52. public:
  53.  
  54. /*------------------------- Constructors -------------------------------------*/
  55.   IVBFlyText         ( IWindow * owner );
  56. virtual
  57.  ~IVBFlyText         ( );
  58.  
  59. /*-------------------------------- Attributes ----------------------------------
  60. ------------------------------------------------------------------------------*/
  61. IFlyOverHelpHandler
  62.  *flyOverHelpHandler ( );
  63.  
  64. IVBFlyText
  65.  &enableFlyOverHelp  ( Boolean        enable = true ),
  66.  &disableFlyOverHelp ( );
  67. Boolean
  68.   isFlyOverHelp      ( ) const;
  69.  
  70. IVBFlyText
  71.  &setLongTextControl ( ITextControl*  longText );
  72. ITextControl
  73.  *longTextControl    ( ) const;
  74.  
  75. virtual IWindow
  76.  &setOwner           ( const IWindow* newOwner );
  77.  
  78. protected:
  79.  
  80. IFlyOverHelpHandler
  81.  *flyOver;
  82.  
  83. private:
  84.  
  85. Boolean
  86.   flyOverHelpEnabled;
  87.  
  88. IWindow
  89.   *ftOwner;
  90.  
  91. } ;
  92.  
  93. /*----------------------------------------------------------------------------*/
  94. /* Resume compiler default packing.                                           */
  95. /*----------------------------------------------------------------------------*/
  96. #pragma pack()
  97.  
  98. #endif
  99.