home *** CD-ROM | disk | FTP | other *** search
/ Amiga Times / AmigaTimes.iso / demos / programme / StormC / Mui-Class-Lib / Include / Classes / TWiMUI / Numericbutton.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-10-06  |  1.8 KB  |  73 lines

  1. //
  2. //  $VER: Numericbutton.h 1.0 (16 Jun 1996)
  3. //
  4. //    c 1996 Thomas Wilhelmi
  5. //
  6. //
  7. // Address : Taunusstrasse 14
  8. //           61138 Niederdorfelden
  9. //           Germany
  10. //
  11. //  E-Mail : willi@twi.rhein-main.de
  12. //
  13. //   Phone : +49 (0)6101 531060
  14. //   Fax   : +49 (0)6101 531061
  15. //
  16. //
  17. //  $HISTORY:
  18. //
  19. //  16 Jun 1996 :   1.0 : first public Release
  20. //
  21.  
  22. #ifndef CPP_TWIMUI_NUMERICBUTTON_H
  23. #define CPP_TWIMUI_NUMERICBUTTON_H
  24.  
  25. #ifndef CPP_TWIMUI_NUMERIC_H
  26. #include <classes/twimui/numeric.h>
  27. #endif
  28.  
  29. class MUINumericbutton : public MUINumeric
  30.     {
  31.     public:
  32.         MUINumericbutton(const struct TagItem *t) : MUINumeric(MUIC_Numericbutton) { init(t); };
  33.         MUINumericbutton(const Tag, ...);
  34.         MUINumericbutton(const STRPTR form, const ULONG min, const ULONG max) : MUINumeric(MUIC_Numeric)
  35.             {
  36.             init(MUIA_Frame, MUIV_Frame_Button,
  37.                 MUIA_Background, MUII_ButtonBack,
  38.                 MUIA_Numeric_Min, min,
  39.                 MUIA_Numeric_Max, max,
  40.                 MUIA_Numeric_Format, form,
  41.                 TAG_DONE)
  42.             };
  43.         MUINumericbutton(const STRPTR form, const ULONG min, const ULONG max, const UBYTE cc) : MUINumeric(MUIC_Numeric)
  44.             {
  45.             init(MUIA_Frame, MUIV_Frame_Button,
  46.                 MUIA_Background, MUII_ButtonBack,
  47.                 MUIA_ControlChar, cc,
  48.                 MUIA_Numeric_Min, min,
  49.                 MUIA_Numeric_Max, max,
  50.                 MUIA_Numeric_Format, form,
  51.                 TAG_DONE)
  52.             };
  53.         MUINumericbutton() : MUINumeric(MUIC_Numericbutton) { };
  54.         MUINumericbutton(MUINumericbutton &p) : MUINumeric(p) { };
  55.         virtual ~MUINumericbutton();
  56.         MUINumericbutton &operator= (MUINumericbutton &);
  57.     };
  58.  
  59. class MUILabNumericbutton
  60.     :   public MUILabelHelp,
  61.         public MUINumericbutton
  62.     {
  63.     public:
  64.         MUILabNumericbutton(const STRPTR lab, const STRPTR form, const ULONG min, const ULONG max)
  65.             :   MUILabelHelp(lab),
  66.                 MUINumericbutton(form, min, max, MUILabelHelp::gCC())
  67.             { };
  68.         virtual ~MUILabNumericbutton();
  69.         MUILabNumericbutton &operator= (MUILabNumericbutton &);
  70.     };
  71.  
  72. #endif
  73.