home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / ool.zip / OOL / include / xstext.h < prev    next >
Text File  |  1997-02-23  |  1KB  |  36 lines

  1. #ifndef __OOL_XSTEXT_H__
  2. #define __OOL_XSTEXT_H__
  3.  
  4. /*===========================================================================*/
  5. /* OOL ------------------- the Open Object Library ------------- OS/2 Beta 1 */
  6. /*===========================================================================*/
  7. /*                              class: XStaticText                           */
  8. /*                       derived from: XStatic                               */
  9. /*                        last update: 1/97                                  */
  10. /*                      programmed by: Stefan von Brauk (sbrauk@gwdg.de)     */
  11. /*===========================================================================*/
  12.  
  13.  
  14. #include "xstatic.h"
  15.  
  16. #define TX_TOP        DT_TOP
  17. #define TX_VCENTER    DT_VCENTER
  18. #define TX_BOTTOM     DT_BOTTOM
  19. #define TX_LEFT       DT_LEFT
  20. #define TX_CENTER     DT_CENTER
  21. #define TX_RIGHT      DT_RIGHT
  22. #define TX_WORDBREAK  DT_WORDBREAK
  23.  
  24. class _export_ XStaticText: public XStatic
  25. {
  26.       friend void BuildChilds( HWND );
  27.    private:
  28.       LONG color;
  29.       XStaticText( const HWND hwnd):XStatic(hwnd) {;}
  30.    public:
  31.       XStaticText( XWindow * w, const char * text = NULL, const XRect * p=NULL, const LONG style = TX_LEFT | ST_AUTOSIZE | TX_VCENTER | WS_VISIBLE, const LONG id = 0, char * font = NULL);
  32.       virtual ~XStaticText() {;}
  33. };
  34.  
  35. #endif
  36.