home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / dho.zip / DHO / SRC / SOURCE.ZIP / slider.h < prev    next >
C/C++ Source or Header  |  1995-08-27  |  898b  |  41 lines

  1. /****************************************/
  2. /*    Developer Helper Object Set       */
  3. /*  (C) 1994-95 Thomas E. Bednarz, Jr.  */
  4. /*     All rights reserved              */
  5. /***************************************/
  6.  
  7. /* $Id: slider.h 1.5 1995/08/13 03:21:12 teb Exp $ */
  8.  
  9.  
  10. #ifndef __SLIDER_H__
  11. #define __SLIDER_H__
  12.  
  13.  
  14. #include<winbase.h>
  15. #include<control.h>
  16.  
  17. enum Direction {horizontal, vertical};
  18.  
  19. class TSlider : public TControl
  20. {
  21.  
  22.    public:
  23.       TSlider(TWinBase *parent, ULONG resource);
  24.       TSlider(TWinBase *parent, Direction dir, SHORT x, SHORT y, 
  25.                SHORT width, SHORT height);
  26.       virtual ~TSlider();
  27.  
  28.       virtual const char *getClassName();
  29.  
  30.       void placeAtTick(SHORT no);
  31.       void tickSize(SHORT pix);
  32.       void setTickText(SHORT tick, CHAR *text);
  33.  
  34.       ULONG getSliderPos();
  35.  
  36.       void DetentShaftCenter();
  37. };
  38.  
  39. #endif
  40.  
  41.