home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / oclsrc15.zip / OCL / Include / OHelpPopup.hpp < prev    next >
C/C++ Source or Header  |  1996-08-12  |  3KB  |  94 lines

  1. // OCL - OS/2 Class Library
  2. // (c) Cubus 1995
  3. // All Rights Reserved
  4. // OHelpPopup.hpp
  5.  
  6. /*
  7.  * Redistribution and use in source and binary forms, with or without
  8.  * modification, are permitted provided that the following conditions
  9.  * are met:
  10.  * 1. Redistributions of source code must retain the above copyright
  11.  *    notice, this list of conditions and the following disclaimer.
  12.  * 2. Neither the name Cubus nor the name Team OCL may be used to
  13.  *    endorse or promote products derived from this software
  14.  *    without specific prior written permission.
  15.  * 3. See OCL.INF for a detailed copyright notice.
  16.  *
  17.  *              THIS SOFTWARE IS PROVIDED ``AS IS'' AND
  18.  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  19.  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  20.  * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  21.  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  22.  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  23.  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  24.  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  25.  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  26.  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  27.  * SUCH DAMAGE.
  28.  */
  29.  
  30. // $Header: W:/Projects/OCL/Include/rcs/OHelpPopup.hpp 1.50 1996/08/11 23:47:14 B.STEIN Release $
  31.  
  32. #ifndef OHPOPUP_INCLUDED
  33.   #define OHPOPUP_INCLUDED
  34.  
  35. #ifndef OPMEXCEPTION_INCLUDED
  36.   #include <OPMException.hpp>
  37. #endif
  38.  
  39. #ifndef STATUSLINE_INCLUDED
  40.   #include <OStatusLine.hpp>
  41. #endif
  42.  
  43.  
  44.  
  45. // These timers should not affect your application.
  46. // The library has to be recompiled if these macros
  47. // are changed.
  48.  
  49.  
  50. #define OHELP_POPUP_SHOWTIMER   TID_USERMAX - 40
  51. #define OHELP_POPUP_CLOSETIMER  TID_USERMAX - 41
  52.  
  53.  
  54. typedef class OHelpPopup *pOHelpPopup;
  55.  
  56. class __CPP_EXPORT__ OHelpPopup
  57.   : public OStatusLine
  58. {
  59.  protected:
  60.     ULONG                 showTime;
  61.     OString               textToShow;
  62.  
  63.  public:
  64.  
  65.     OHelpPopup            ();
  66.  
  67.     virtual
  68.        ~OHelpPopup        ();
  69.  
  70.     virtual
  71.        PSZ isOfType       () const;
  72.  
  73.     OStatusLine&
  74.        createStatusLine   ();
  75.  
  76.     ULONG showTimeout     () const;   
  77.  
  78.     OHelpPopup
  79.        &setPopupTimeout   (ULONG timeout),
  80.        &startPopupTimer   (),
  81.        &stopPopupTimer    (),
  82.        &timePopup         (PCSZ helpText),
  83.        &showPopup         (PCSZ helpText),
  84.        &hidePopup         ();
  85.  
  86.     virtual
  87.        BOOL OCommand      (ULONG msg, MPARAM mp1, MPARAM mp2); 
  88. };
  89.  
  90. #endif // OHPOPUP_INCLUDED
  91.  
  92.  
  93. // end of source
  94.