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

  1. #ifndef __OOL_XCIRCSLIDER_H__
  2. #define __OOL_XCIRCSLIDER_H__
  3.  
  4. /*===========================================================================*/
  5. /* OOL ------------------- the Open Object Library ------------------- r 1.0 */
  6. /*===========================================================================*/
  7. /*                              class: XCircularSlider                       */
  8. /*                       derived from: XControl                              */
  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 CS_NOBUTTON            0x0001
  19.    #define CS_NOTEXT               0x0002
  20.    #define CS_NONUMBER            0x0004
  21.    #define CS_POINTSELECT         0x0008
  22.    #define CS_360                  0x0010
  23.    #define CS_MIDPOINT            0x0020
  24.    #define CS_PROPORTIONALTICKS   0x0040
  25.    #define CS_NOTICKS            0x0080
  26.    #define CS_CIRCULARVALUE      0x0100
  27. #endif
  28.  
  29. class _export_ XCircularSlider: public XControl{
  30.       friend void BuildChilds( HWND );
  31.    private:
  32.       XCircularSlider( const OOL_WINDOWHANDLE hwnd): XControl(hwnd) {;}
  33.    public:
  34.       XCircularSlider( const XWindow * owner, const XRect& rec = XRect(), const USHORT id = 0, const ULONG style=WIN_VISIBLE|CS_MIDPOINT, const char*font=NULL);
  35.       virtual ~XCircularSlider() {;}
  36.       SHORT GetValue( void );
  37.       void GetIncremets( SHORT& scrollIncrement, SHORT& tickIncrement );
  38.       void GetLimits( SHORT& lowerLimit, SHORT& upperLimit );
  39.       BOOL SetIncrements( const SHORT ticks, const SHORT steps) const ;
  40.       BOOL SetLimits( const LONG lowerLimit=0, const LONG upperLimit=100) const ;
  41.       BOOL SetValue( const LONG val) const ;
  42. };
  43.  
  44.  
  45. #endif
  46.