home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / ool_main.zip / ool / include / xgraphbt.h < prev    next >
Text File  |  1998-04-06  |  2KB  |  48 lines

  1. #ifndef __OOL_XGRAPHICBTN_H__
  2. #define __OOL_XGRAPHICBTN_H__
  3.  
  4. /*===========================================================================*/
  5. /* OOL ------------------- the Open Object Library ------------------- r 1.0 */
  6. /*===========================================================================*/
  7. /*                              class: XGraphicButton                        */
  8. /*                       derived from: XSettingButton                        */
  9. /*                        last update: 12/96                                 */
  10. /*                      programmed by: Stefan von Brauk (sbrauk@gwdg.de)     */
  11. /*===========================================================================*/
  12.  
  13.  
  14.  
  15.  
  16. #include "xsetbtn.h"
  17.  
  18. #ifdef OOL_FOR_OS2_X86
  19.    //syles
  20.    #define GB_TWOSTATE         0x1000
  21.    #define GB_AUTOTWOSTATE     0X2000
  22.    #define GB_ANIMATION        0x4000
  23.    #define GB_AUTOANIMATION    0x8000
  24.    #define GB_DISABLEBITMAP    0x0010
  25.    #define GB_HILITEBITMAP     0x0020
  26.    #define GB_3D_TEXTRECESSED  0x0040
  27.    #define GB_3D_TEXTRAISED    0x0080
  28. #endif
  29.  
  30. class _export_ XGraphicButton: public XSettingButton{
  31.        friend void BuildChilds( HWND );
  32.      private:
  33.        XGraphicButton(HWND hwnd);
  34.      public:
  35.        XGraphicButton( const XWindow * owner, const XRect& rec, const USHORT id, const ULONG style, const char * s, const SHORT bitmapIdCount, const SHORT * bitmapIdList);
  36.        virtual ~XGraphicButton() {;}
  37.        BOOL Animate( const BOOL start = TRUE, const BOOL fromBeginning = TRUE);
  38.        BOOL IsAnimationActive( void );
  39.        BOOL IsSelected( void ) const;
  40.        LONG GetAnimationRate( void) const ;
  41.        void Select( const BOOL select = TRUE);
  42.        BOOL SetAnimationRate( const LONG rate) const ;
  43.        void Toggle( void ) const ;
  44. };
  45.  
  46.  
  47. #endif
  48.