home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / dho.zip / DHO / SRC / RADIOBTN.H < prev    next >
C/C++ Source or Header  |  1995-08-27  |  2KB  |  77 lines

  1. /****************************************/
  2. /*    Developer Helper Object Set       */
  3. /*  (C) 1994-95 Thomas E. Bednarz, Jr.  */
  4. /*     All rights reserved              */
  5. /***************************************/
  6.  
  7. /* $Id: radiobtn.h 1.2 1995/08/13 03:21:12 teb Exp $ */
  8.  
  9.  
  10. #ifndef __RADIOBTN_H__
  11. #define __RADIOBTN_H__
  12.  
  13.  
  14.  
  15. #include<object.h>
  16. #include<winbase.h>
  17. #include<control.h>
  18.  
  19.  
  20. enum groupType {groupStart, inGroup, standAlone};
  21.  
  22.  
  23. class TBaseButton : public TControl
  24. {
  25.    protected:
  26.       ULONG Style;
  27.       TBaseButton(TWinBase *parent, ULONG resource);
  28.       TBaseButton(TWinBase *parent, groupType gt, 
  29.                      char *text, ULONG cmdId,
  30.                      ULONG x, ULONG y, ULONG cx, ULONG cy);
  31.       ~TBaseButton();
  32.    public:
  33.       void clickButton();
  34.       LONG getClickState();
  35.       void setClickState(BOOL state);
  36.       LONG getGroupSelection();
  37. };
  38.  
  39.  
  40.  
  41. class TRadioButton : public TBaseButton
  42. {
  43.    public:
  44.       TRadioButton(TWinBase *parent, ULONG resource);
  45.       TRadioButton(TWinBase *parent, groupType gt, 
  46.                      char *text, ULONG cmdId,
  47.                      ULONG x, ULONG y, ULONG cx, ULONG cy);
  48.       ~TRadioButton();
  49. };
  50.  
  51.  
  52.  
  53. class TCheckBox : public TBaseButton
  54. {
  55.    public:
  56.       TCheckBox(TWinBase *parent, ULONG resource);
  57.       TCheckBox(TWinBase *parent, groupType gt, 
  58.                      char *text, ULONG cmdId,
  59.                      ULONG x, ULONG y, ULONG cx, ULONG cy);
  60.       ~TCheckBox();
  61. };
  62.  
  63.  
  64. class T3StateButton : public TBaseButton
  65. {
  66.    public:
  67.       T3StateButton(TWinBase *parent, ULONG resource);
  68.       T3StateButton(TWinBase *parent, groupType gt,
  69.                      char *text, ULONG cmdId,
  70.                      ULONG x, ULONG y, ULONG cx, ULONG cy);
  71.       ~T3StateButton();
  72.  
  73. };
  74.  
  75.  
  76. #endif
  77.