The View Display Class

The view class is for simple character matrices that are somewhat larger than labels. It is used, for example, to display reports. If the matrix is large, then by default only a subarray is presented on the screen, and the display is provided with scrollbars. Users control the particular subarray that appears in the value area with the scrollbars; programmers use settings of the attributes firstrow, firstcol, rows and cols.

It is recommended that you avoid the use of matrices that contain tabs, backspaces, linefeeds, etc., as these can sometimes produce anomalous results. In general, avoid ASCII control-type characters in any array to be bound to the view class.

Views cannot be edited. Only fixed-width (monospaced) fonts should be used for horizontal scrolling.

Visual Representation
     tūsys.readmat 'GettingStarted'
     `t is `view
     `t has (`shelltitle;'text')
     `t has (`title;'The Getting Started Tutorial')
     show `t
A Display of Two-Dimensional Text:

Attributes
See the "Display Attributes" chapter for details concerning all the attributes that apply to objects in the view 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 V, ALL, CNFT, NFT, and TOP.

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

acceptfocus
active
ancestors
arrowdown
arrowkeys
arrowleft
arrowlist
arrowright
arrowup
at
atsector
b
bg
bound
class
clear
col
colors
cols
colsep
cycle
deiconized
doc
downto
dynamic
eval
evaluate
exit
extent
f1-f12
fg
firstcol
firstrow
fkeys
focus
followers
followertree
font
foot
freeze
fullscreen
h
H
has
head
hide
hl
hlthickness
hscrollsize
hscrollwith
icon
iconic
iconized
icontitle
incurrentworkspace
index
is
l
leader
leftto
literal
lower
mapped
naturalsize
notify
outofcurrentworkspace
parent
pin
preset
primary
r
raise
realize
refer
refresh
request
resize
resizeable
rightto
row
rowbg
rows
rowsep
script
scrollbg
scrollsize
select
selectbg
selected
selectionmode
sensitive
set
setcol
setfirstcol
setfirstrow
setrow
settings
shadowthickness
shell
shelltitle
show
size
state
stateself
syncshow
t
tabfrom
tablist
tabto
title
titlefg
titlefont
titlejustify
upto
vcol
vcols
verify
vrow
vrows
vscrollsize
vscrollwith
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.