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

  1. /****************************************/
  2. /*    Developer Helper Object Set       */
  3. /*  (C) 1994-95 Thomas E. Bednarz, Jr.  */
  4. /*     All rights reserved              */
  5. /***************************************/
  6.  
  7. /* $Id: vset.h 1.10 1995/09/02 22:43:36 teb Exp teb $ */
  8.  
  9. #ifndef __VSET_H__
  10. #define __VSET_H__
  11.  
  12. #define INCL_WIN
  13. #include<os2.h>
  14. #include<pmwrap.h>
  15.  
  16.  
  17. enum setType {colors, bitmaps, icon, text, colorindex};
  18.  
  19.  
  20. struct ValSetAttrib
  21. {
  22.    setType items;
  23.    BOOL itemBorder;
  24.    BOOL setBorder;
  25.    BOOL scaleItems;
  26.    SHORT x;
  27.    SHORT y;
  28.    SHORT width;
  29.    SHORT height;
  30. };
  31.  
  32.  
  33. class TValueSet: public TWinBase
  34. {
  35.       USHORT fRows, fCols;
  36.       VSCDATA vscData;
  37.       ULONG ulVSetStyle;
  38.       ULONG fData;             
  39.       SHORT fX, fY, fcX, fcY;
  40.       ULONG fId;
  41.       TWinBase *fParent;
  42.     
  43.    public:
  44.       ValSetAttrib fVSetAttr;
  45.       TValueSet(ULONG id, TWinBase *parent, USHORT rows, USHORT cols);
  46.       TValueSet(ULONG id, TWinBase *parent);
  47.       ~TValueSet();
  48.       USHORT getNumRows();
  49.       USHORT getNumCols();
  50.       const char *getClassName(void);
  51.       virtual BOOL init();
  52.       void setItem(USHORT row, USHORT col, VOID *item);
  53.       void getSelection(USHORT &row, USHORT &col);
  54.       void setSelection(USHORT row, USHORT col);
  55. };
  56.  
  57.  
  58. #endif
  59.  
  60.  
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.  
  68.