home *** CD-ROM | disk | FTP | other *** search
/ Amiga ISO Collection / AmigaUtilCD2.iso / Programming / C / BK-SC1_4.DMS / in.adf / MUIClass.Lha / Include / Classes / TWiMUI / Button.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-06-16  |  1.5 KB  |  71 lines

  1. //
  2. //  $VER: NButton.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_BUTTON_H
  23. #define CPP_TWIMUI_BUTTON_H
  24.  
  25. #ifndef CPP_TWIMUI_TEXT_H
  26. #include <classes/twimui/text.h>
  27. #endif
  28.  
  29. class MUIButton : public MUIText
  30.     {
  31.     public:
  32.         MUIButton(const STRPTR name)
  33.             :   MUIText(
  34.                     MUIA_Frame, MUIV_Frame_Button,
  35.                     MUIA_InputMode, MUIV_InputMode_RelVerify,
  36.                     MUIA_Background, MUII_ButtonBack,
  37.                     MUIA_Text_Contents, name,
  38.                     MUIA_Text_PreParse, MUIX_C,
  39.                     TAG_DONE)
  40.             { };
  41.         MUIButton(const STRPTR name, const UBYTE cc)
  42.             :   MUIText(
  43.                     MUIA_Frame, MUIV_Frame_Button,
  44.                     MUIA_ControlChar, cc,
  45.                     MUIA_InputMode, MUIV_InputMode_RelVerify,
  46.                     MUIA_Background, MUII_ButtonBack,
  47.                     MUIA_Text_Contents, name,
  48.                     MUIA_Text_PreParse, MUIX_C,
  49.                     MUIA_Text_HiChar, cc,
  50.                     TAG_DONE)
  51.             { };
  52.         MUIButton(MUIButton &p) : MUIText(p) { };
  53.         virtual ~MUIButton();
  54.         MUIButton &operator= (MUIButton &);
  55.     };
  56.  
  57. class MUILabButton
  58.     :   public MUILabelHelp,
  59.         public MUIButton
  60.     {
  61.     public:
  62.         MUILabButton(const STRPTR lab)
  63.             :   MUILabelHelp(lab),
  64.                 MUIButton(MUILabelHelp::gLab(),MUILabelHelp::gCC())
  65.             { };
  66.         virtual ~MUILabButton();
  67.         MUILabButton &operator= (MUILabButton &);
  68.     };
  69.  
  70. #endif
  71.