Abstract: An application may create multiple text windows, which can be displayed in a top-level window, flame, canvas, or another text widget. The content of a text widget is addressed by line and character location. The text widget content is maintained as a set of lists. Each list consists of the text string to display, along with any tags, marks, image annotations, and window annotations associated with this text string. Text widgets are created the same way as other widgets, with a command that returns the specified widget name. The text widget supports multiple fonts, multiple colors for foreground and background, varying margins, varying line spacing, binding actions to characters or strings, including images and other Tk widgets in text HTML. It is currently the most portable protocol for distributing formatted text, and the odds are good that HTML will continue to be important for many years. The text widget tags make it possible to use the text widget to display HTML text with little work. The htmllib, tcl library provides a set of procedures that will render HTML into a text widget. Images are inserted into the HTML document with the HMset_image and associated HMgot_image procedures.
Publication Year: 2003
Publication Date: 2003-01-01
Language: en
Type: book-chapter
Indexed In: ['crossref']
Access and Citation
AI Researcher Chatbot
Get quick answers to your questions about the article from our AI researcher chatbot