The Text Display Class

The text display class provides a general means for text entry. It can be used wherever a note pad is needed in applications. Any character vector can be displayed in this class. Once an object of this class has focus, editing can begin. New lines are created during text entry by pressing the Enter key, which then appears in the character vector as the character `char10 (newline); this is the only control character that should be used in the text. APL characters can be entered.

There are no user actions that begin and end edit mode; consequently, when the text is entered the underlying character vector may not be automatically updated (see the save attribute). However, even if the character vector is not updated, the current text on the screen can be obtained as the value of the buffer attribute.

Visual Representation

     t"    Note to File  07/12/00 No. 4"
                         Could start with the empty vector
     `t has (`shelltitle `title;('text';'text'))
     show `t is `text

Attributes
See the "Display Attributes" chapter for details concerning all the attributes that apply to objects in the text display class, as well as lists of colors and fonts. The keys in the Table of All Display Attributes that pertain to this class are X, ALL, CNFT, NFT, and TOP.

The attributes that are meaningful for the text display class (other than the print... attributes) are:

active
ancestors
arrowdown
arrowkeys
arrowleft
arrowlist
arrowright
arrowup
at
atsector
b
bg
bound
buffer
class
clear
cols
cursor
deiconized
doc
downto
dynamic
eval
evaluate
exit
extent
f1-f12
fg
fkeys
focus
followers
followertree
font
foot
freeze
fullscreen
h
H
has
head
hide
hl
hlthickness
icon
iconic
iconized
icontitle
incurrentworkspace
is
l
leader
leftto
literal
lower
mapped
naturalsize
notify
outofcurrentworkspace
parent
pin
preset
primary
r
raise
realize
refresh
request
resize
resizeable
rightto
rows
save
script
sensitive
set
settings
shadowthickness
shell
shelltitle
show
state
stateself
syncshow
t
tabfrom
tablist
tabto
title
titlefg
titlefont
titlejustify
upto
vcol
vcols
verify
vrow
vrows
w
W
ws
x
X
xs
y
Y
ys
yx
YX
yxs
(Point the mouse cursor to an attribute to display a short description at the bottom of the screen)


doc@aplusdev.org© Copyright 1995–2008 Morgan Stanley Dean Witter & Co. All rights reserved.