Skip to Main Content
Volume 7A: XView Programming Manual
book

Volume 7A: XView Programming Manual

by Dan Heller
October 1994
Intermediate to advanced content levelIntermediate to advanced
770 pages
22h 58m
English
O'Reilly Media, Inc.
Content preview from Volume 7A: XView Programming Manual
8
Text Subwindows
This chapter describes the TEXTSW package, which allows a user or client to display and edit
a sequence of ASCII characters. Figure 8-1 shows an example of a text subwindow. The text
contains a vertical scrollbar but may not contain a horizontal scrollbar. The vertical scrollbar
can be used to split views into several views (see Chapter 5, Canvases and Openwin). The
font used by the text can be specified using the TEXTSW_FONT attribute, but only one font per
text subwindow can be used, regardless of how many views there may be.
The contents of a text subwindow are stored in a file or in memory on the client side, not on
the X server. Whether the source of the text is stored on disk or in memory is transparent to
the user. When the user types characters in the text subwindow, the source might be changed
immediately or synchronized later depending on how the text subwindow is configured. The
TEXTSW package provides basic text editing features such as inserting arbitrary text into a
file. It also provides complex operations such as searching for and replacing a string of text.
Figure 8-1. A sample text subwindow
Text Subwindows
Text Subwindows 215
8.1 Creating Text Subwindows
Applications need to include the file <xview/textsw.h> to use text subwindows. You create a
text subwindow
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Volume 6A: Motif Programming Manual

Volume 6A: Motif Programming Manual

David Brennan, Dan Heller, Paula Ferguson
Java™ Media APIs: Cross-Platform Imaging, Media, and Visualization

Java™ Media APIs: Cross-Platform Imaging, Media, and Visualization

Alejandro Terrazas, John Ostuni, Michael Barlow

Publisher Resources

ISBN: 9780937175873