You can use the text widget to display read-only text in a compact format. This is especially useful when you are creating hard-copy reports. You can use the VIEW-AS phrase to set up a static text widget. You can use the CREATE widget statement to create dynamic text widgets. For example:



Attributes

ATTR-SPACE attribute AUTO-RESIZE attribute BGCOLOR attribute
BLANK attribute COLUMN attribute DATA-TYPE attribute
DBNAME attribute DCOLOR attribute DEBLANK attribute
DYNAMIC attribute FGCOLOR attribute FONT attribute
FORMAT attribute FRAME attribute FRAME-COL attribute
FRAME-NAME attribute FRAME-ROW attribute FRAME-X attribute
FRAME-Y attribute HANDLE attribute HEIGHT-CHARS attribute
HEIGHT-PIXELS attribute HELP attribute HIDDEN attribute
HTML-CHARSET attribute INDEX attribute INPUT-VALUE attribute
INSTANTIATING-PROCEDURE attribute LABEL attribute LABELS attribute
MANUAL-HIGHLIGHT attribute MODIFIED attribute MOVABLE attribute
NAME attribute NEXT-SIBLING attribute PARENT attribute
PREV-SIBLING attribute PRIVATE-DATA attribute RESIZABLE attribute
ROW attribute SCREEN-VALUE attribute SELECTABLE attribute
SELECTED attribute SENSITIVE attribute SIDE-LABEL-HANDLE attribute
TABLE attribute TOOLTIP attribute TYPE attribute
VISIBLE attribute WIDGET-ID attribute WIDTH-CHARS attribute
WIDTH-PIXELS attribute WINDOW attribute X attribute
Y attribute

Methods

MOVE-TO-BOTTOM( ) method MOVE-TO-TOP( ) method

Events

Developer events General direct manipulation events
Mouse events

Note

You can view a field as text by specifying VIEW-AS TEXT for the field. You can make text the default representation for all fields in a frame by specifying USE-TEXT for the frame.

See also

CREATE widget statement, VIEW-AS phrase