_____________________________________________________XawPlus

The AsciiText Widget

Application Header file
Class Header file
Class
Class Name
Superclass
<X11/XawPlus/AsciiText.h>
<X11/XawPlus/AsciiTextP.h>
asciiTextWidgetClass
AsciiText
Text

The AsciiText widget is really a collection of smaller parts. It includes the Text widget, an AsciiSrc, and an AsciiSink. Some of the resources listed below are not actually resources of the AsciiText, but belong to the AsciiSrc or AsciiSink. This is noted in the explanation of each resource where it applies. When specifying these resources in a resource file be sure to use *AsciiText*resource_name instead of *AsciiText.resource_name, since they actually belong to the children of the AsciiText widget, and not the AsciiText widget itself. However, these resources may be set directly on the AsciiText widget at widget creation time, or via XtSetValues().

Differences between Xaw and XawPlus

Since the core extension class Add3dExt is inserted, the AsciiText widget has the additional (but at this time not used) resources highlightColor, shadowColor and buttonBorderWidth. The default background color is now grey75.

Resources

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

Name Class RepType 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
100
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
AsciiSink
AsciiSrc
2
NULL
XawTextWrapNever

Note, that the AsciiText widget class don't add any resources to the Text widget class.

XawPlus_____________________________________________________