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

  1. /****************************************/
  2. /*    Developer Helper Object Set       */
  3. /*  (C) 1994-95 Thomas E. Bednarz, Jr.  */
  4. /*     All rights reserved              */
  5. /***************************************/
  6.  
  7. /* $Id: mledtext.h 1.2 1995/08/13 03:21:12 teb Exp $ */
  8.  
  9. #ifndef __MLEDTEXT_H__
  10. #define __MLEDTEXT_H__
  11.  
  12.  
  13.  
  14. #define INCL_WIN
  15. #include<os2.h>
  16.  
  17. #include<object.h>
  18. #include<winbase.h>
  19. #include<control.h>
  20.  
  21.  
  22. struct MultiLineEditTxtAttr 
  23. {
  24.    BOOL Border;
  25.    BOOL horizScroll;
  26.    BOOL vertScroll;
  27.    BOOL ignoreTab;
  28.    BOOL wordWrap;
  29.    BOOL readOnly;
  30. };
  31.  
  32.  
  33.  
  34. class TMultiLineEditText : public TControl
  35. {
  36.  
  37.    public:
  38.       TMultiLineEditText(TWinBase *parent, ULONG resource);
  39.       TMultiLineEditText(TWinBase *parent, LONG x, LONG y, 
  40.                          LONG cx, LONG cy, MultiLineEditTxtAttr fMLEattr);
  41.  
  42.       virtual ~TMultiLineEditText();
  43.  
  44.       virtual const char *getClassName();
  45.       void getControlText(PCH buff, ULONG buf_len);
  46.       void setControlText(PCH text, ULONG bytes);
  47.       LONG getTextLength();
  48.       void showControl();
  49.       
  50. };
  51.  
  52.  
  53. #endif
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.  
  71.  
  72.  
  73.  
  74.  
  75.  
  76.  
  77.  
  78.  
  79.  
  80.  
  81.  
  82.  
  83.  
  84.  
  85.  
  86.  
  87.  
  88.  
  89.  
  90.  
  91.  
  92.  
  93.  
  94.  
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.