home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / dovetail.zip / sbutton.h < prev    next >
C/C++ Source or Header  |  1994-04-05  |  875b  |  29 lines

  1. /*
  2.   Spin button.  Supports numeric only or array based spin buttons.
  3.   the conversion LONG operator returns the array index for array
  4.   based buttons, or the value for numeric ones.
  5.  
  6.   There is no support for getting the text out of an array based button,
  7.   only the array index.
  8. */
  9. #ifndef _SBUTTON_INC
  10. #define _SBUTTON_INC
  11. #include "control.h"
  12.  
  13.  
  14. class Sbutton : public virtual Control
  15.    {
  16.     public:
  17.                      Sbutton (HWND,ULONG);
  18.                      Sbutton (HWND,ULONG,SHORT,SHORT,SHORT,SHORT,
  19.               ULONG = SPBS_MASTER |
  20.                       SPBS_NUMERICONLY |
  21.                       SPBS_JUSTRIGHT |
  22.                       SPBS_FASTSPIN);
  23.                      operator LONG ();
  24.            VOID      SetValue(LONG);
  25.            VOID      SetRange(LONG,LONG);
  26.            VOID      SetArray(char **, USHORT);
  27.    };
  28. #endif
  29.