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

  1. /*
  2.   Radio button group.  This is handled by having an array of Controls.
  3.   They are assumed to be within a GROUP, so that setting one automatically
  4.   unsets the others, etc.
  5. */
  6. #ifndef _RBUTTON_INC
  7. #define _RBUTTON_INC
  8. #include "control.h"
  9.  
  10.  
  11. class Rbutton
  12.    {
  13.     private:
  14.             Control *pControls;
  15.             int num_buttons;
  16.     public:
  17.                      Rbutton (HWND,ULONG *);
  18.                      Rbutton (HWND,ULONG *,char **, SHORT=0, SHORT=0,
  19.                               SHORT=100, SHORT=100);
  20.                     ~Rbutton ();
  21.            BOOL      Hide();
  22.            BOOL      Show();
  23.            VOID      SetPos(SHORT, SHORT, SHORT, SHORT);
  24.                      operator ULONG ();
  25.            VOID      SetState(ULONG);
  26.    };
  27. #endif
  28.