home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / ool_main.zip / ool / include / xbubble.h < prev    next >
C/C++ Source or Header  |  1997-08-12  |  2KB  |  47 lines

  1. #ifndef __OOL_XBUBLE_H__
  2. #define __OOL_XBUBLE_H__
  3.  
  4. /*===========================================================================*/
  5. /* OOL ------------------- the Open Object Library ------------------- r 1.0 */
  6. /*===========================================================================*/
  7. /*                              class: XBubbleHelp                           */
  8. /*                       derived from: XUserWindow                           */
  9. /*                        last update: 9/96                                  */
  10. /*                      programmed by: Stefan von Brauk (sbrauk@gwdg.de)     */
  11. /*===========================================================================*/
  12.  
  13.  
  14. #include "XfrmWnd.h"
  15. #include "xuserwnd.h"
  16. #include "xtext.h"
  17.  
  18. class XBitmap;
  19. class XGraphicDevice;
  20. class XResource;
  21.  
  22. class _export_ XBubbleHelp: public XUserWindow
  23. {
  24.       friend class bubbletimer;
  25.       friend class bubblehandler;
  26.       friend class bhandler;
  27.    private:
  28.       XGraphicDevice * dev;
  29.       XBitmap * map1, * map2, *map3;
  30.       BOOL isActive;
  31.       XText * text;
  32.       bubbletimer * timer;
  33.       void Draw( void );
  34.       void Show( const BOOL s = TRUE);
  35.       XWindow * aktWin;
  36.    public:
  37.       XBubbleHelp( XWindow *);
  38.       ~XBubbleHelp();
  39.       void Enable( const BOOL enable = TRUE) { isActive = enable; }
  40.       XText * GetTextObject(void) { return text; }
  41.       XGraphicDevice * GetGraphicDevice() { return dev; }
  42.       virtual BOOL SetMsgText( ULONG ) { return FALSE; }
  43.       void SetText( const char * t) { text->SetText( (char*)t); }
  44. };
  45.  
  46. #endif
  47.