home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / cl-lib07.zip / pm.zip / usr / include / pm / entryfield.h < prev    next >
C/C++ Source or Header  |  1995-06-27  |  1KB  |  67 lines

  1. #ifndef _ENTRYFIELD_H_
  2. #define _ENTRYFIELD_H_
  3.  
  4. #ifndef _FACTORYWINDOW_H_
  5. #include <pm/FactoryWindow.h>
  6. #endif
  7.  
  8. #ifndef _SELECTION_H_
  9. #include <pm/Selection.h>
  10. #endif
  11.  
  12. #ifndef _VALUE_H_
  13. #include <pm/Value.h>
  14. #endif
  15.  
  16. @interface EntryField : FactoryWindow <Selection,Archiving,Value>
  17. {
  18.   int textLimit;
  19. }
  20.  
  21. - initWithId: (ULONG) anId andFlags: (ULONG) flags in: (Window *) parent;
  22.  
  23. // protocol Selection
  24. - clearSelection;
  25. - copySelection;
  26. - cutSelection;
  27. - pasteSelection;
  28.  
  29. // methods for access to PM messages
  30. - (BOOL) changed;
  31. - (BOOL) readOnly;
  32. - setReadOnly;
  33. - setReadWrite;
  34. - setTextLimit: (int) limit;
  35. - (int) textLimit;
  36.  
  37. /*
  38.  * Methods for querying and setting contents of Entryfield (protocol "Value")
  39.  */
  40.  
  41. - (char *) stringValue;
  42. - (int) intValue;
  43. - (long) longValue;
  44. - (float) floatValue;
  45.  
  46. - setStringValue: (char *) aValue;
  47. - setIntValue: (int) aValue;
  48. - setLongValue: (long) aValue;
  49. - setFloatValue: (float) aValue;
  50.  
  51. /*
  52.  * Methods for protocol "Archiving"
  53.  */
  54.  
  55. - read: (TypedStream *) aStream;
  56. - write: (TypedStream *) aStream;
  57. - awake;
  58.  
  59. - createInPMWindow: (HWND) hwnd;
  60.  
  61. - (MRESULT) handleMessage: (ULONG) msg
  62.             withParams: (MPARAM) mp1 and: (MPARAM) mp2;
  63.  
  64. @end
  65.  
  66. #endif
  67.