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

  1. /****************************************/
  2. /*    Developer Helper Object Set       */
  3. /*  (C) 1994-95 Thomas E. Bednarz, Jr.  */
  4. /*     All rights reserved              */
  5. /***************************************/
  6.  
  7. /* $Id: edittext.h 1.5 1995/08/13 03:21:12 teb Exp $ */
  8.  
  9. #ifndef __EDITTEXT_H__
  10. #define __EDITTEST_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 EditTxtAttr 
  23. {
  24.    BOOL anyChar;
  25.    BOOL autoScroll;
  26.    BOOL autoTab;
  27.    justification lcr;
  28.    BOOL margin;
  29.    BOOL readOnly;
  30.    BOOL unreadable;
  31.    PSZ initialText;
  32.    LONG charLimit;
  33.    LONG minSel;
  34.    LONG maxSel;
  35. };
  36.  
  37.  
  38.  
  39. class TEditText: public TControl
  40. {
  41.       HWND hwndEntryField;     // is non-null if not constructed via resource.
  42.    public:
  43.       TEditText(TWinBase *parent, ULONG resource);
  44.       TEditText(TWinBase *parent, EditTxtAttr *etr, LONG xPos, LONG yPos, 
  45.                   LONG xWidth, LONG yHeight);
  46.       virtual ~TEditText();
  47.  
  48.       virtual const char *getClassName();
  49.       void getControlText(PCH buff, ULONG buf_len);
  50.       void setControlText(PCH text);
  51.       LONG getTextLength();
  52.       void showControl();
  53. };
  54.  
  55.  
  56. #endif
  57.  
  58.