home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c082_122 / 3.ddi / OWLINC.ZIP / RADIOBUT.H < prev    next >
Encoding:
C/C++ Source or Header  |  1992-06-10  |  1.6 KB  |  59 lines

  1. // ObjectWindows - (C) Copyright 1992 by Borland International
  2.  
  3. #ifndef __RADIOBUT_H
  4. #define __RADIOBUT_H
  5.  
  6. #ifndef __CHECKBOX_H
  7. #include <checkbox.h>
  8. #endif
  9.  
  10. #pragma option -Vo-
  11. #if     defined(__BCOPT__) && !defined(_ALLOW_po)
  12. #pragma option -po-
  13. #endif
  14.  
  15. _CLASSDEF(TRadioButton)
  16.  
  17. /* --------------------------------------------------------
  18.   TRadioButton object
  19.   -------------------------------------------------------- */
  20. class _EXPORT TRadioButton : public TCheckBox
  21. {
  22. public:
  23.     TRadioButton(PTWindowsObject AParent, int AnId, LPSTR ATitle,
  24.                int X, int Y, int W, int H, PTGroupBox AGroup,
  25.                PTModule AModule = NULL);
  26.  
  27.     TRadioButton(PTWindowsObject AParent, int ResourceId, PTGroupBox AGroup,
  28.                PTModule AModule = NULL)
  29.               : TCheckBox(AParent, ResourceId, AGroup, AModule){};
  30.  
  31.     static PTStreamable build();
  32.  
  33. protected:
  34.     virtual void BNClicked(RTMessage Msg) = [NF_FIRST + BN_CLICKED];
  35.  
  36.     TRadioButton(StreamableInit) : TCheckBox(streamableInit) {};
  37.  
  38. private:
  39.     virtual const Pchar streamableName() const
  40.         { return "TRadioButton"; }
  41. };
  42.  
  43. inline Ripstream operator >> ( Ripstream is, RTRadioButton cl )
  44.     { return is >> (RTStreamable)cl; }
  45. inline Ripstream operator >> ( Ripstream is, RPTRadioButton cl )
  46.     { return is >> (RPvoid)cl; }
  47.  
  48. inline Ropstream operator << ( Ropstream os, RTRadioButton cl )
  49.     { return os << (RTStreamable)cl; }
  50. inline Ropstream operator << ( Ropstream os, PTRadioButton cl )
  51.     { return os << (PTStreamable)cl; }
  52.  
  53. #pragma option -Vo.
  54. #if     defined(__BCOPT__) && !defined(_ALLOW_po)
  55. #pragma option -po.
  56. #endif
  57.  
  58. #endif
  59.