_____________________________________________________XawPlus

The Text Widget

Application Header file
Class Header file
Class
Class Name
Superclass
<X11/XawPlus/Text.h>
<X11/XawPlus/TextP.h>
textWidgetClass
Text
Simple

The Text widget is the glue that binds all the other pieces together, it maintains the internal state of the displayed text, and acts as a mediator between the source and sink.

This section lists the resources that are actually part of the Text widget, and explains the functionality provided by each.

Differences between Xaw and XawPlus

Since the core extension class Add3dExt is inserted, the Text widget has the additional (but at this time not used) resources highlightColor, shadowColor and buttonBorderWidth. The default background color is now grey75. Since XawPlus release 1.4 the vertical scrollbar is placed on the right side of the text window if it is visible.

Resources

When creating aa Text widget instance, the following resources are retrieved from the argument list of XtSetValues() or XtVaSetValues() or from the resource database:

Name Class Type Default Value
OBJECT:
destroyCallback Callback Pointer NULL
RECTANGLE:
borderWidth
height
sensitive
width
x
y
BorderWidth
Height
Sensitive
Width
Position
Position
Dimension
Dimension
Boolean
Dimension
Position
Position
0
12
True
12
0
0
CORE:
border
background
mappedWhenManaged
BorderColor
Background
MappedWhenManaged
Pixel
Pixel
Boolean
XtDefaultForeground
grey75
True
ADD3DEXT:
highlightColor
shadowColor
buttonBorderWidth
Background
Background
Width
Pixel
Pixel
Dimension
grey90
grey40
2
SIMPLE:
cursor
cursorName
pointerColor
pointerColorBackground
insensitiveBorder
Cursor
Cursor
Foreground
Background
Insensitive
Cursor
String
Pixel
Pixel
Pixmap
None
NULL
XtDefaultForeground
XtDefaultBackground
NULL
TEXT:
autoFill
bottomMargin
displayPosition
insertPosition
leftMargin
resize
rightMargin
scrollHorizontal
scrollVertical
selectTypes
textSink
textSource
topMargin
unrealizeCallback
wrap
AutoFill
Margin
TextPosition
TextPosition
Margin
Resize
Margin
Scroll
Scroll
SelectTypes
TextSink
TextSource
Margin
Callback
Wrap
Boolean
Position
XawTextPosition
XawTextPosition
Position
XawTextResizeMode
Position
XawTextScrollMode
XawTextScrollMode
Pointer
Widget
Widget
Position
Callback
XawTextWrapMode
False
2
0
0
2
XawTextResizeNever
4
XawtextScrollNever
XawtextScrollNever
see documentation
NULL
NULL
2
NULL
XawTextWrapNever

XawPlus_____________________________________________________