home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus Leser 15 / Amiga Plus Leser CD 15.iso / Tools / Development / CIT.v4 / citra / CITRadioButton.h < prev    next >
Encoding:
C/C++ Source or Header  |  2002-03-13  |  1.3 KB  |  60 lines

  1. //
  2. //                    CITRadioButton include
  3. //
  4. //                          StormC
  5. //
  6. //                     version 2002.01.27
  7. //
  8.  
  9. #ifndef CIT_RADIOBUTTON_H
  10. #define CIT_RADIOBUTTON_H TRUE
  11.  
  12. #ifndef CIT_GADGETS_H
  13. #include "CITGadget.h"
  14. #endif
  15.  
  16. #include <gadgets/radiobutton.h>
  17.  
  18. //
  19. // This enum is for internal use only
  20. //
  21. enum
  22. {
  23.   CITRADIOBUTTON_LABELS = 0,
  24.   CITRADIOBUTTON_SPACING,
  25.   CITRADIOBUTTON_SELECTED,
  26.   CITRADIOBUTTON_LABELPLACE,
  27.   CITRADIOBUTTON_LAST
  28. };
  29.  
  30. class CITRadioButton:public CITGadget
  31. {
  32.   public:
  33.     CITRadioButton();
  34.     ~CITRadioButton();
  35.  
  36.     void Labels(char** labels);
  37.     void Labels(List* labels)
  38.            {setTag(CITRADIOBUTTON_LABELS,RADIOBUTTON_Labels,ULONG(labels));}
  39.     void Spacing(WORD spacing)
  40.            {setTag(CITRADIOBUTTON_SPACING,RADIOBUTTON_Spacing,spacing);}
  41.     void Selected(LONG sel)
  42.            {setTag(CITRADIOBUTTON_SELECTED,RADIOBUTTON_Selected,sel);}
  43.     void LabelPlace(WORD place)
  44.            {setTag(CITRADIOBUTTON_LABELPLACE,RADIOBUTTON_LabelPlace,place);}
  45.  
  46.     WORD Selected();
  47.  
  48.   protected:
  49.     virtual BOOL    Create(CITWindow* CITWd,class CITRootClass* parent);
  50.     virtual Object* NewObjectA(TagItem* tags);
  51.  
  52.   private:
  53.     void  setTag(int index,ULONG attr,ULONG val);
  54.  
  55.     TagItem* radioButtonTag;
  56.     CITList  labelList;
  57. };
  58.  
  59. #endif
  60.