home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / ool_main.zip / ool / include / xvaluset.h < prev    next >
Text File  |  1998-04-06  |  3KB  |  57 lines

  1. #ifndef __OOL_XVALUESET_H__
  2. #define __OOL_XVALUESET_H__
  3.  
  4. /*===========================================================================*/
  5. /* OOL ------------------- the Open Object Library ------------------- r 1.0 */
  6. /*===========================================================================*/
  7. /*                              class: XValueSet                             */
  8. /*                       derived from: XControl                              */
  9. /*                        last update: 12/96                                 */
  10. /*                      programmed by: Stefan von Brauk (sbrauk@gwdg.de)     */
  11. /*===========================================================================*/
  12.  
  13.  
  14. #include "xcontrol.h"
  15.  
  16. #ifdef OOL_FOR_OS2_X86
  17.    #define VA_BITMAP          0x0001
  18.    #define VA_ICON            0x0002
  19.    #define VA_TEXT            0x0004
  20.    #define VA_COLOR           0x0008
  21.    #define VA_BORDER          0x0020
  22.    #define VA_ITEMBORDER      0x0040
  23.    #define VA_SCALEBITMAPS    0x0080
  24.    #define VA_RIGHTTOLEFT     0x0100
  25. #endif
  26.  
  27. class XIcon;
  28. class XBitmap;
  29. class XSize;
  30.  
  31. class _export_ XValueSet: public XControl{
  32.       friend void BuildChilds( HWND );
  33.    private:
  34.       XValueSet( const OOL_WINDOWHANDLE hwnd): XControl(hwnd){;}
  35.    public:
  36.       XValueSet( const XWindow * owner, const XRect& rec=XRect(), const USHORT id = 0, const ULONG style = VA_TEXT|WIN_VISIBLE|VA_BORDER, const char * font = NULL);
  37.       virtual ~XValueSet() { ;}
  38.       void GetSelection( SHORT& row, SHORT& col) const;
  39.       void GetItem( const SHORT row, const SHORT col, XString * s) const;
  40.       void GetItem( const SHORT row, const SHORT col, LONG& ) const;
  41.       void GetItem( const SHORT row, const SHORT col, XColor * color) const;
  42.       LONG GetItemAttribute( const SHORT row, const SHORT col) const ;
  43.       void GetItemSize( XSize*) const;
  44.       void GetItemSpacing( XSize*) const;
  45.       void SelectItem( const SHORT row, const SHORT col) const ;
  46.       void SetDimensions( const SHORT rows, const SHORT cols);
  47.       void SetItem( const SHORT row, const SHORT col, const char * text) const ;
  48.       void SetItem( const SHORT row, const SHORT col, const XColor * color) const ;
  49.       void SetItem( const SHORT row, const SHORT col, const XIcon *) const ;
  50.       void SetItem( const SHORT row, const SHORT col, const XBitmap *) const ;
  51.       void SetItemAttribute( const SHORT row, const SHORT col, const SHORT attr, const BOOL enable = TRUE) const ;
  52.       void SetItemSize( const XSize*) const ;
  53.       void SetItemSpacing( const XSize*) const ;
  54. };
  55.  
  56. #endif
  57.