home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / ool_main.zip / ool / include / xbutton.h < prev    next >
Text File  |  1997-08-12  |  2KB  |  45 lines

  1. #ifndef __OOL_XBUTTON_H__
  2. #define __OOL_XBUTTON_H__
  3.  
  4. /*===========================================================================*/
  5. /* OOL ------------------- the Open Object Library ------------------- r 1.0 */
  6. /*===========================================================================*/
  7. /*                              class: XButton                               */
  8. /*                       derived from: XWindow                               */
  9. /*                        last update: 12/96                                 */
  10. /*                      programmed by: Stefan von Brauk (sbrauk@gwdg.de)     */
  11. /*===========================================================================*/
  12.  
  13.  
  14.  
  15. #include "xcontrol.h"
  16.  
  17. #ifdef OOL_FOR_OS2_X86
  18.    #define BU_3STATE         5
  19.    #define BU_AUTO3STATE     6
  20.    #define BU_USERBUTTON     7
  21.  
  22.    #define BU_PRIMARYSTYLES  0x000f
  23.    #define BU_TEXT           0x0010
  24.    #define BU_MINIICON       0x0020
  25.    #define BU_BITMAP         0x0040
  26.    #define BU_ICON           0x0080
  27.    #define BU_HELP           0x0100
  28.    #define BU_DEFAULT        0x0400
  29.    #define BU_NOPOINTERFOCUS 0x0800
  30.    #define BU_NOBORDER       0x1000
  31.    #define BU_NOCURSORSELECT 0x2000
  32.    #define BU_AUTOSIZE       0x4000
  33. #endif
  34.  
  35. class _export_ XButton: public XControl
  36. {
  37.    protected:
  38.        XButton(  const XWindow * owner, const XRect * rec, const USHORT id, const ULONG style, const char * s , const unsigned char *classStyle, const char * font=NULL);
  39.        XButton( const HWND hwnd ): XControl(hwnd) {;}
  40.        virtual ~XButton() {;}
  41. };
  42.  
  43.  
  44. #endif
  45.