home *** CD-ROM | disk | FTP | other *** search
/ C Programming Starter Kit 2.0 / SamsPublishing-CProgrammingStarterKit-v2.0-Win31.iso / bc45 / owlinc.pak / RADIOBUT.H < prev    next >
C/C++ Source or Header  |  1997-07-23  |  1KB  |  53 lines

  1. //----------------------------------------------------------------------------
  2. // ObjectWindows
  3. // (C) Copyright 1991, 1994 by Borland International, All Rights Reserved
  4. //
  5. //   Defines class TRadioButton.  This defines the basic behavior
  6. //   for all radio buttons.
  7. //----------------------------------------------------------------------------
  8. #if !defined(OWL_RADIOBUT_H)
  9. #define OWL_RADIOBUT_H
  10.  
  11. #if !defined(OWL_CHECKBOX_H)
  12. # include <owl/checkbox.h>
  13. #endif
  14.  
  15. //
  16. //  class TRadioButton
  17. //  ----- ------------
  18. //
  19. class _OWLCLASS TRadioButton : public TCheckBox {
  20.   public:
  21.     TRadioButton(TWindow*        parent,
  22.                  int             id,
  23.                  const char far* title,
  24.                  int x, int y, int w, int h,
  25.                  TGroupBox*      group = 0,
  26.                  TModule*        module = 0);
  27.  
  28.     TRadioButton(TWindow*   parent,
  29.                  int        resourceId,
  30.                  TGroupBox* group = 0,
  31.                  TModule*   module = 0);
  32.  
  33.   protected:
  34.     //
  35.     // child id notification handled at the child
  36.     //
  37.     void       BNClicked();  // BN_CLICKED
  38.  
  39.     char far*  GetClassName();
  40.  
  41.   private:
  42.     //
  43.     // hidden to prevent accidental copying or assignment
  44.     //
  45.     TRadioButton(const TRadioButton&);
  46.     TRadioButton& operator=(const TRadioButton&);
  47.       
  48.   DECLARE_RESPONSE_TABLE(TRadioButton);
  49.   DECLARE_STREAMABLE(_OWLCLASS, TRadioButton, 1);
  50. };
  51.  
  52. #endif  // OWL_RADIOBUT_H
  53.