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

  1. #ifndef __OOL_BOOKPAGE_H__
  2. #define __OOL_BOOKPAGE_H__
  3.  
  4. /*===========================================================================*/
  5. /* OOL ------------------- the Open Object Library ------------------- r 1.0 */
  6. /*===========================================================================*/
  7. /*                              class: XBookPage                             */
  8. /*                       derived from: XWindow                               */
  9. /*                        last update: 12/96                                 */
  10. /*                      programmed by: Stefan von Brauk (sbrauk@gwdg.de)     */
  11. /*===========================================================================*/
  12.  
  13.  
  14. #include  "xnotebk.h"
  15.  
  16. class XColor;
  17. class XBitmap;
  18. class XResource;
  19. class XResourceLibrary;
  20.  
  21. #ifdef OOL_FOR_OS2_X86
  22.    #define BP_LAST         0x0002
  23.    #define BP_FIRST         0x0004
  24.    #define BP_NEXT         0x0008
  25.    #define BP_PREV         0x0010
  26.    #define BP_TOP            0x0020
  27.  
  28.    #define BP_MAJORTAB      0x0001
  29.    #define BP_MINORTAB      0x0002
  30.    #define BP_PAGEBUTTON   0x0100
  31.  
  32.    #define BP_STATUSTEXTON   0x0001
  33.    #define BP_MAJOR         0x0040
  34.    #define BP_MINOR         0x0080
  35. #endif
  36.  
  37.  
  38. class _export_ XNoteBookPage: public XWindow
  39. {
  40.    protected:
  41.       XNoteBook * owner;
  42.       ULONG id;  
  43.    private:
  44.       void CreateBookPage( const XNoteBook*, const ULONG pageID, const USHORT style, const USHORT order, const char * title, const XNoteBookPage * insertBehind, const XResourceLibrary * res, BOOL build);
  45.    public:
  46.       XNoteBookPage( const XNoteBook*, const ULONG pageID, const USHORT style = BP_MAJOR|BP_STATUSTEXTON, const USHORT order = BKA_LAST, const char * title = NULL, const XNoteBookPage * insertBehind=NULL, BOOL build = FALSE);
  47.       XNoteBookPage( const XNoteBook*, const XResource * res, const USHORT style = BP_MAJOR|BP_STATUSTEXTON, const USHORT order = BKA_LAST, const char * title = NULL, const XNoteBookPage * insertBehind=NULL);
  48.       ~XNoteBookPage();
  49.       void GetBackgroundColor ( XColor * col ) const;
  50.       ULONG GetID(void) const { return id; }
  51.       SHORT GetPageCount( void )const ;
  52.       void SetBitmap( const XBitmap * b);
  53.       void SetStatusText( const char * text) const ;
  54.       void SetText( const char * text);
  55.       void SetTop( void ) const;
  56. };
  57.  
  58.  
  59. #endif
  60.