home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Source Code 1993 July / THE_SOURCE_CODE_CD_ROM.iso / X / mit / doc / Xaw / TextCustom < prev    next >
Encoding:
Text File  |  1989-12-22  |  2.3 KB  |  55 lines

  1. .NH 2
  2. Customizing the Text Widget
  3. .LP
  4. .XS
  5.     Customizing the Text Widget
  6. .XE
  7. .IN "Text widget" "customizing" "@DEF@" 
  8. .LP
  9. The remainder of this chapter will describe customizing the Text
  10. widget.  The Text widget may be customized by subclassing, or by
  11. creating new sources and sinks.  Subclassing is described in
  12. detail in Chapter 7, this section will describe only those things that
  13. are specific to the Text widget.  Attributes of the Text widget base
  14. class and creating new sources and sinks will be discussed.
  15. .LP
  16. The Text widget is made up of a number of different pieces, with the
  17. Text widget as the base widget class.  It and the AsciiText widget are
  18. the only true "widgets" in the Text widget family.  The other pieces
  19. (sources and sinks) are X Toolkit objects and have no window
  20. associated with them.  No source or sink is useful unless assigned to
  21. a Text widget.
  22. .LP
  23. Each of the following pieces of the Text widget has a specific purpose,
  24. and will be, or has been, discussed in detail in this chapter:
  25. .IN "Text widget" ""
  26. .IP \fBText\fP 15 
  27. This is the glue that binds everything else together.  This widget reads
  28. the text data from the source, and displays the information in the sink.
  29. All translations and actions are handled in the Text widget itself.
  30. .IN "TextSink object" ""
  31. .IP \fBTextSink\fP 15 
  32. This object is responsible for displaying and clearing the drawing area.
  33. It also reports the configuration of the window that contains the
  34. drawing area.  The TextSink does not have its own window, instead it does
  35. its drawing on the Text widget's window. 
  36. .IN "TextSrc object" ""
  37. .IP \fBTextSrc\fP 15 
  38. This object is responsible for reading, editing and searching through the
  39. text buffer.  This buffer can be any source of information that this
  40. particular TextSrc knows how to read. 
  41. .IN "AsciiSink object" ""
  42. .IP \fBAsciiSink\fP 15
  43. This object is a subclass of the TextSink and knows how to display
  44. ASCII text.  Support has been added to display 8-bit characters.
  45. .IN "AsciiSrc object" ""
  46. .IP \fBAsciiSrc\fP 15
  47. This object is a subclass of the TextSrc and knows how to read strings
  48. and files.
  49. .IN "AsciiText widget" ""
  50. .IP \fBAsciiText\fP 15
  51. This widget is a subclass of the Text widget that automatically attaches
  52. an AsciiSrc and AsciiSink to itself at creation time.  This widget
  53. provides the simplest interface to the Athena Text widgets.
  54.  
  55.